public class LockServiceDemo extends Object implements LockNotification
| Modifier and Type | Field and Description |
|---|---|
protected JChannel |
ch |
protected LockService |
lock_service |
protected String |
name |
protected String |
props |
| Constructor and Description |
|---|
LockServiceDemo(String props,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaited(String lock_name,
Owner owner) |
void |
awaiting(String lock_name,
Owner owner) |
protected static void |
help() |
void |
lockCreated(String name) |
void |
lockDeleted(String name) |
void |
locked(String lock_name,
Owner owner) |
protected void |
loop() |
static void |
main(String[] args) |
protected static List<String> |
parseLockNames(String line) |
protected void |
printLocks() |
void |
start() |
void |
unlocked(String lock_name,
Owner owner) |
protected String props
protected JChannel ch
protected LockService lock_service
protected String name
public void lockCreated(String name)
lockCreated in interface LockNotificationpublic void lockDeleted(String name)
lockDeleted in interface LockNotificationpublic void locked(String lock_name, Owner owner)
locked in interface LockNotificationpublic void unlocked(String lock_name, Owner owner)
unlocked in interface LockNotificationpublic void awaiting(String lock_name, Owner owner)
awaiting in interface LockNotificationpublic void awaited(String lock_name, Owner owner)
awaited in interface LockNotificationprotected void printLocks()
protected static void help()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.