Java Doc for Lock.java in  » Net » Terracotta » com » tc » objectserver » lockmanager » impl » 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 » Net » Terracotta » com.tc.objectserver.lockmanager.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tc.objectserver.lockmanager.impl.Lock

Lock
public class Lock (Code)


Field Summary
final public static  LockNULL_LOCK
    

Constructor Summary
 Lock(LockID lockID, ServerThreadContext txn, int lockLevel, Sink lockResponseSink, long timeout, LockEventListener[] listeners, int lockPolicy, ServerThreadContextFactory threadContextFactory, L2LockStatsManager lockStatsManager)
    
 Lock(LockID lockID, ServerThreadContext txn, long timeout, LockEventListener[] listeners, int lockPolicy, ServerThreadContextFactory threadContextFactory, L2LockStatsManager lockStatsManager)
    
 Lock(LockID lockID, long timeout, LockEventListener[] listeners)
    

Method Summary
synchronized  voidaddRecalledHolder(ServerThreadContext txn, int lockLevel)
    
synchronized  voidaddRecalledPendingRequest(ServerThreadContext txn, int lockLevel, Sink lockResponseSink)
    
synchronized  voidaddRecalledTryLockPendingRequest(ServerThreadContext txn, int lockLevel, WaitInvocation timeout, Sink lockResponseSink, WaitTimer waitTimer, WaitTimerCallback callback)
    
synchronized  voidaddRecalledWaiter(ServerThreadContext txn, WaitInvocation call, int lockLevel, Sink lockResponseSink, WaitTimer waitTimer, WaitTimerCallback callback)
    
synchronized  voidawardAllReads()
    
synchronized  booleancanAwardGreedilyOnTheClient(ServerThreadContext threadContext, int lockLevel)
    
synchronized  voidcheckAndClearStateOnGreedyAward(ThreadID clientThreadID, NodeID ch, int requestedLevel)
    
synchronized  voidclearStateForNode(NodeID nid)
     This clears out stuff from the pending and wait lists that belonged to a dead session.
static  LockResponseContextcreateLockAwardResponseContext(LockID lockID, ServerThreadID threadID, int level)
    
static  LockResponseContextcreateLockQueriedResponseContext(LockID lockID, ServerThreadID threadID, int level, int lockRequestQueueLength, Collection greedyHolders, Collection holders, Collection waiters)
    
static  LockResponseContextcreateLockRecallResponseContext(LockID lockID, ServerThreadID threadID, int level)
    
static  LockResponseContextcreateLockRejectedResponseContext(LockID lockID, ServerThreadID threadID, int level)
    
static  LockResponseContextcreateLockStatDisableResponseContext(LockID lockID, NodeID nodeID, ThreadID threadID, int level)
    
static  LockResponseContextcreateLockStatEnableResponseContext(LockID lockID, NodeID nodeID, ThreadID threadID, int level, int stackTraceDepth, int statCollectFrequency)
    
static  LockResponseContextcreateLockWaitTimeoutResponseContext(LockID lockID, ServerThreadID threadID, int level)
    
synchronized  voiddisableClientStat(Set statEnabledClients, Sink lockResponseSink)
    
synchronized  voidenableClientStat(Sink lockResponseSink, int stackTraceDepth, int statCollectFrequency)
    
public  booleanequals(Object obj)
    
 CollectiongetHoldersCollection()
    
public synchronized  intgetHoldersCount()
    
public  HoldergetLockHolder(ServerThreadContext threadContext)
    
public  LockIDgetLockID()
    
 intgetLockLevel()
    
 intgetLockPolicy()
    
synchronized  LockMBeangetMBean(DSOChannelManager channelManager)
    
public synchronized  intgetPendingCount()
    
synchronized  intgetWaiterCount()
    
 booleanhasGreedyHolders()
    
synchronized  booleanhasPending()
    
synchronized  booleanhasWaiting()
    
synchronized  booleanhasWaiting(ServerThreadContext threadContext)
    
public  inthashCode()
    
synchronized  booleanholdsGreedyLock(ServerThreadContext threadContext)
    
synchronized  booleanholdsSomeLock(NodeID nodeID)
    
synchronized  voidinterrupt(ServerThreadContext txn)
    
synchronized  booleanisAllPendingLockRequestsFromNode(NodeID nodeID)
    
public  booleanisNull()
    
public synchronized  booleanisRead()
    
public synchronized  booleanisWrite()
    
synchronized  booleannextPending()
    
synchronized  voidnotify(ServerThreadContext txn, boolean all, NotifiedWaiters addNotifiedWaitersTo)
    
 voidnotifyStarted(WaitTimerCallback callback, WaitTimer timer)
    
synchronized  voidqueryLock(ServerThreadContext txn, Sink lockResponseSink)
    
synchronized  booleanrecallCommit(ServerThreadContext threadContext)
    
synchronized  voidreestablishLock(ServerThreadContext threadContext, int requestedLevel, Sink lockResponseSink)
    
synchronized  voidreestablishWait(ServerThreadContext txn, WaitInvocation call, int lockLevel, Sink lockResponseSink)
    
synchronized  booleanremoveCurrentHold(ServerThreadContext threadContext)
     Remove the specified lock hold.
 booleanrequestLock(ServerThreadContext txn, int requestedLockLevel, Sink lockResponseSink)
    
synchronized  booleanrequestLock(ServerThreadContext txn, int requestedLockLevel, Sink lockResponseSink, boolean noBlock, WaitInvocation timeout, WaitTimer waitTimer, WaitTimerCallback callback)
    
 voidsetLockPolicy(int newPolicy)
    
public synchronized  StringtoString()
    
 booleantryRequestLock(ServerThreadContext txn, int requestedLockLevel, WaitInvocation timeout, WaitTimer waitTimer, WaitTimerCallback callback, Sink lockResponseSink)
    
synchronized  voidtryRequestLockTimeout(LockWaitContext context)
    
synchronized  voidwait(ServerThreadContext txn, WaitTimer waitTimer, WaitInvocation call, WaitTimerCallback callback, Sink lockResponseSink)
    
synchronized  voidwaitTimeout(LockWaitContext context)
    

Field Detail
NULL_LOCK
final public static Lock NULL_LOCK(Code)




Constructor Detail
Lock
Lock(LockID lockID, ServerThreadContext txn, int lockLevel, Sink lockResponseSink, long timeout, LockEventListener[] listeners, int lockPolicy, ServerThreadContextFactory threadContextFactory, L2LockStatsManager lockStatsManager)(Code)



Lock
Lock(LockID lockID, ServerThreadContext txn, long timeout, LockEventListener[] listeners, int lockPolicy, ServerThreadContextFactory threadContextFactory, L2LockStatsManager lockStatsManager)(Code)



Lock
Lock(LockID lockID, long timeout, LockEventListener[] listeners)(Code)




Method Detail
addRecalledHolder
synchronized void addRecalledHolder(ServerThreadContext txn, int lockLevel)(Code)



addRecalledPendingRequest
synchronized void addRecalledPendingRequest(ServerThreadContext txn, int lockLevel, Sink lockResponseSink)(Code)



addRecalledTryLockPendingRequest
synchronized void addRecalledTryLockPendingRequest(ServerThreadContext txn, int lockLevel, WaitInvocation timeout, Sink lockResponseSink, WaitTimer waitTimer, WaitTimerCallback callback)(Code)



addRecalledWaiter
synchronized void addRecalledWaiter(ServerThreadContext txn, WaitInvocation call, int lockLevel, Sink lockResponseSink, WaitTimer waitTimer, WaitTimerCallback callback)(Code)



awardAllReads
synchronized void awardAllReads()(Code)



canAwardGreedilyOnTheClient
synchronized boolean canAwardGreedilyOnTheClient(ServerThreadContext threadContext, int lockLevel)(Code)



checkAndClearStateOnGreedyAward
synchronized void checkAndClearStateOnGreedyAward(ThreadID clientThreadID, NodeID ch, int requestedLevel)(Code)



clearStateForNode
synchronized void clearStateForNode(NodeID nid)(Code)
This clears out stuff from the pending and wait lists that belonged to a dead session. It occurs to me that this is a race condition because a request could come in on the connection, then the cleanup could happen, and then the request could be processed. We need to drop requests that are processed after the cleanup
Parameters:
  nid -



createLockAwardResponseContext
static LockResponseContext createLockAwardResponseContext(LockID lockID, ServerThreadID threadID, int level)(Code)



createLockQueriedResponseContext
static LockResponseContext createLockQueriedResponseContext(LockID lockID, ServerThreadID threadID, int level, int lockRequestQueueLength, Collection greedyHolders, Collection holders, Collection waiters)(Code)



createLockRecallResponseContext
static LockResponseContext createLockRecallResponseContext(LockID lockID, ServerThreadID threadID, int level)(Code)



createLockRejectedResponseContext
static LockResponseContext createLockRejectedResponseContext(LockID lockID, ServerThreadID threadID, int level)(Code)



createLockStatDisableResponseContext
static LockResponseContext createLockStatDisableResponseContext(LockID lockID, NodeID nodeID, ThreadID threadID, int level)(Code)



createLockStatEnableResponseContext
static LockResponseContext createLockStatEnableResponseContext(LockID lockID, NodeID nodeID, ThreadID threadID, int level, int stackTraceDepth, int statCollectFrequency)(Code)



createLockWaitTimeoutResponseContext
static LockResponseContext createLockWaitTimeoutResponseContext(LockID lockID, ServerThreadID threadID, int level)(Code)



disableClientStat
synchronized void disableClientStat(Set statEnabledClients, Sink lockResponseSink)(Code)



enableClientStat
synchronized void enableClientStat(Sink lockResponseSink, int stackTraceDepth, int statCollectFrequency)(Code)



equals
public boolean equals(Object obj)(Code)



getHoldersCollection
Collection getHoldersCollection()(Code)



getHoldersCount
public synchronized int getHoldersCount()(Code)



getLockHolder
public Holder getLockHolder(ServerThreadContext threadContext)(Code)



getLockID
public LockID getLockID()(Code)



getLockLevel
int getLockLevel()(Code)



getLockPolicy
int getLockPolicy()(Code)



getMBean
synchronized LockMBean getMBean(DSOChannelManager channelManager)(Code)



getPendingCount
public synchronized int getPendingCount()(Code)



getWaiterCount
synchronized int getWaiterCount()(Code)



hasGreedyHolders
boolean hasGreedyHolders()(Code)



hasPending
synchronized boolean hasPending()(Code)



hasWaiting
synchronized boolean hasWaiting()(Code)



hasWaiting
synchronized boolean hasWaiting(ServerThreadContext threadContext)(Code)



hashCode
public int hashCode()(Code)



holdsGreedyLock
synchronized boolean holdsGreedyLock(ServerThreadContext threadContext)(Code)



holdsSomeLock
synchronized boolean holdsSomeLock(NodeID nodeID)(Code)



interrupt
synchronized void interrupt(ServerThreadContext txn)(Code)



isAllPendingLockRequestsFromNode
synchronized boolean isAllPendingLockRequestsFromNode(NodeID nodeID)(Code)



isNull
public boolean isNull()(Code)



isRead
public synchronized boolean isRead()(Code)



isWrite
public synchronized boolean isWrite()(Code)



nextPending
synchronized boolean nextPending()(Code)



notify
synchronized void notify(ServerThreadContext txn, boolean all, NotifiedWaiters addNotifiedWaitersTo) throws TCIllegalMonitorStateException(Code)



notifyStarted
void notifyStarted(WaitTimerCallback callback, WaitTimer timer)(Code)



queryLock
synchronized void queryLock(ServerThreadContext txn, Sink lockResponseSink)(Code)



recallCommit
synchronized boolean recallCommit(ServerThreadContext threadContext)(Code)



reestablishLock
synchronized void reestablishLock(ServerThreadContext threadContext, int requestedLevel, Sink lockResponseSink)(Code)



reestablishWait
synchronized void reestablishWait(ServerThreadContext txn, WaitInvocation call, int lockLevel, Sink lockResponseSink)(Code)



removeCurrentHold
synchronized boolean removeCurrentHold(ServerThreadContext threadContext)(Code)
Remove the specified lock hold. true if the current hold was an upgrade



requestLock
boolean requestLock(ServerThreadContext txn, int requestedLockLevel, Sink lockResponseSink)(Code)



requestLock
synchronized boolean requestLock(ServerThreadContext txn, int requestedLockLevel, Sink lockResponseSink, boolean noBlock, WaitInvocation timeout, WaitTimer waitTimer, WaitTimerCallback callback)(Code)



setLockPolicy
void setLockPolicy(int newPolicy)(Code)



toString
public synchronized String toString()(Code)



tryRequestLock
boolean tryRequestLock(ServerThreadContext txn, int requestedLockLevel, WaitInvocation timeout, WaitTimer waitTimer, WaitTimerCallback callback, Sink lockResponseSink)(Code)



tryRequestLockTimeout
synchronized void tryRequestLockTimeout(LockWaitContext context)(Code)



wait
synchronized void wait(ServerThreadContext txn, WaitTimer waitTimer, WaitInvocation call, WaitTimerCallback callback, Sink lockResponseSink) throws TCIllegalMonitorStateException(Code)



waitTimeout
synchronized void waitTimeout(LockWaitContext context)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.