Package org.jgroups.demos
Class LockServiceDemo
java.lang.Object
org.jgroups.demos.LockServiceDemo
- All Implemented Interfaces:
LockNotification
Demos the LockService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JChannelprotected LockServiceprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected static voidhelp()voidlockCreated(String lock_name) voidlockDeleted(String name) voidvoidlockRevoked(String lock_name, Owner current_owner) protected voidloop()static voidparseLockNames(String line) protected voidvoidstart()voidvoid
-
Field Details
-
props
-
ch
-
lock_service
-
name
-
-
Constructor Details
-
LockServiceDemo
-
-
Method Details
-
start
- Throws:
Exception
-
start
- Throws:
Exception
-
lockCreated
- Specified by:
lockCreatedin interfaceLockNotification
-
lockDeleted
- Specified by:
lockDeletedin interfaceLockNotification
-
lockRevoked
- Specified by:
lockRevokedin interfaceLockNotification
-
locked
- Specified by:
lockedin interfaceLockNotification
-
unlocked
- Specified by:
unlockedin interfaceLockNotification
-
awaiting
- Specified by:
awaitingin interfaceLockNotification
-
awaited
- Specified by:
awaitedin interfaceLockNotification
-
loop
- Throws:
Exception
-
parseLockNames
-
printLocks
protected void printLocks() -
main
- Throws:
Exception
-
help
protected static void help()
-