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 LockNotification
public void lockDeleted(String name)
lockDeleted
in interface LockNotification
public void locked(String lock_name, Owner owner)
locked
in interface LockNotification
public void unlocked(String lock_name, Owner owner)
unlocked
in interface LockNotification
public void awaiting(String lock_name, Owner owner)
awaiting
in interface LockNotification
public void awaited(String lock_name, Owner owner)
awaited
in interface LockNotification
protected void printLocks()
protected static void help()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.