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