Source Code Cross Referenced for DummyLockManager.java in  » JMX » je » com » sleepycat » je » txn » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » je » com.sleepycat.je.txn 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*-
002:         * See the file LICENSE for redistribution information.
003:         *
004:         * Copyright (c) 2002,2008 Oracle.  All rights reserved.
005:         *
006:         * $Id: DummyLockManager.java,v 1.4.2.6 2008/01/07 15:14:17 cwl Exp $
007:         */
008:
009:        package com.sleepycat.je.txn;
010:
011:        import java.util.Set;
012:
013:        import com.sleepycat.je.DatabaseException;
014:        import com.sleepycat.je.DeadlockException;
015:        import com.sleepycat.je.LockStats;
016:        import com.sleepycat.je.dbi.DatabaseImpl;
017:        import com.sleepycat.je.dbi.EnvironmentImpl;
018:        import com.sleepycat.je.dbi.MemoryBudget;
019:
020:        /**
021:         * DummyLockManager performs no locking for DS mode.
022:         */
023:        public class DummyLockManager extends LockManager {
024:
025:            public DummyLockManager(EnvironmentImpl envImpl)
026:                    throws DatabaseException {
027:
028:                super (envImpl);
029:            }
030:
031:            /**
032:             * @see LockManager#lookupLock
033:             */
034:            protected Lock lookupLock(Long nodeId) throws DatabaseException {
035:
036:                return null;
037:            }
038:
039:            /**
040:             * @see LockManager#attemptLock
041:             */
042:            protected LockAttemptResult attemptLock(Long nodeId, Locker locker,
043:                    LockType type, boolean nonBlockingRequest)
044:                    throws DatabaseException {
045:
046:                return new LockAttemptResult(null, LockGrantType.NEW, true);
047:            }
048:
049:            /**
050:             * @see LockManager#makeTimeoutMsg
051:             */
052:            protected DeadlockException makeTimeoutMsg(String lockOrTxn,
053:                    Locker locker, long nodeId, LockType type,
054:                    LockGrantType grantType, Lock useLock, long timeout,
055:                    long start, long now, DatabaseImpl database) {
056:
057:                return null;
058:            }
059:
060:            /**
061:             * @see LockManager#releaseAndNotifyTargets
062:             */
063:            protected Set releaseAndFindNotifyTargets(long nodeId, Locker locker)
064:                    throws DatabaseException {
065:
066:                return null;
067:            }
068:
069:            /**
070:             * @see LockManager#transfer
071:             */
072:            void transfer(long nodeId, Locker owningLocker, Locker destLocker,
073:                    boolean demoteToRead) throws DatabaseException {
074:
075:            }
076:
077:            /**
078:             * @see LockManager#transferMultiple
079:             */
080:            void transferMultiple(long nodeId, Locker owningLocker,
081:                    Locker[] destLockers) throws DatabaseException {
082:
083:            }
084:
085:            /**
086:             * @see LockManager#demote
087:             */
088:            void demote(long nodeId, Locker locker) throws DatabaseException {
089:
090:            }
091:
092:            /**
093:             * @see LockManager#isLocked
094:             */
095:            boolean isLocked(Long nodeId) {
096:
097:                return false;
098:            }
099:
100:            /**
101:             * @see LockManager#isOwner
102:             */
103:            boolean isOwner(Long nodeId, Locker locker, LockType type) {
104:
105:                return false;
106:            }
107:
108:            /**
109:             * @see LockManager#isWaiter
110:             */
111:            boolean isWaiter(Long nodeId, Locker locker) {
112:
113:                return false;
114:            }
115:
116:            /**
117:             * @see LockManager#nWaiters
118:             */
119:            int nWaiters(Long nodeId) {
120:
121:                return 0;
122:            }
123:
124:            /**
125:             * @see LockManager#nOwners
126:             */
127:            int nOwners(Long nodeId) {
128:
129:                return 0;
130:            }
131:
132:            /**
133:             * @see LockManager#getWriterOwnerLocker
134:             */
135:            Locker getWriteOwnerLocker(Long nodeId) throws DatabaseException {
136:
137:                return null;
138:            }
139:
140:            /**
141:             * @see LockManager#validateOwnership
142:             */
143:            protected boolean validateOwnership(Long nodeId, Locker locker,
144:                    LockType type, boolean flushFromWaiters, MemoryBudget mb)
145:                    throws DatabaseException {
146:
147:                return true;
148:            }
149:
150:            /**
151:             * @see LockManager#dumpLockTable
152:             */
153:            protected void dumpLockTable(LockStats stats)
154:                    throws DatabaseException {
155:
156:            }
157:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.