edu.ksu.cis.projects.bogor.module.value.event
Class DefaultLockEventNotifier

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
      extended by edu.ksu.cis.projects.bogor.module.value.event.DefaultLockEventNotifier
All Implemented Interfaces:
IEventNotifier, ILockEventNotifier

public class DefaultLockEventNotifier
extends AbstractEventNotifier
implements ILockEventNotifier

Version:
CVS $Revision: 1.3 $ $Date: 2004/12/18 22:36:34 $
Author:
Robby

Field Summary
protected  ArrayList<ILockLockedListener> lockLockedListeners
           
protected  ArrayList<ILockNotifiedAllListener> lockNotifiedAllListeners
           
protected  ArrayList<ILockNotifiedListener> lockNotifiedListeners
           
protected  ArrayList<ILockUnlockedListener> lockUnlockedListeners
           
protected  ArrayList<ILockUnwaitListener> lockUnwaitListeners
           
protected  ArrayList<ILockWaitListener> lockWaitListeners
           
 
Fields inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
notificationEnabledKeys
 
Constructor Summary
DefaultLockEventNotifier()
           
 
Method Summary
 void addLockLockedListener(ILockLockedListener lll)
           
 void addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
           
 void addLockNotifiedListener(ILockNotifiedListener lnl)
           
 void addLockUnlockedListener(ILockUnlockedListener lul)
           
 void addLockUnwaitListener(ILockUnwaitListener lul)
           
 void addLockWaitListener(ILockWaitListener lwl)
           
 void notifyLockLocked(int threadId, ILockValue lv, int newLockCounter)
           
 void notifyLockNotified(int threadId, ILockValue lv, int notifiedThreadId)
           
 void notifyLockNotifiedAll(int threadId, ILockValue lv, int[] notifiedThreadIds)
           
 void notifyLockUnlocked(int threadId, ILockValue lv, int newLockCounter)
           
 void notifyLockUnwait(int threadId, ILockValue lv, int lockCounter)
           
 void notifyLockWait(int threadId, ILockValue lv, int lockCounter)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
enableNotification, enableNotification, getEnabledKeys, removeEnableNotificationKey, removeEnableNotificationKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.event.IEventNotifier
enableNotification, enableNotification, getEnabledKeys, removeEnableNotificationKey, removeEnableNotificationKeys
 

Field Detail

lockLockedListeners

protected ArrayList<ILockLockedListener> lockLockedListeners

lockNotifiedAllListeners

protected ArrayList<ILockNotifiedAllListener> lockNotifiedAllListeners

lockNotifiedListeners

protected ArrayList<ILockNotifiedListener> lockNotifiedListeners

lockUnlockedListeners

protected ArrayList<ILockUnlockedListener> lockUnlockedListeners

lockUnwaitListeners

protected ArrayList<ILockUnwaitListener> lockUnwaitListeners

lockWaitListeners

protected ArrayList<ILockWaitListener> lockWaitListeners
Constructor Detail

DefaultLockEventNotifier

public DefaultLockEventNotifier()
Method Detail

addLockLockedListener

public void addLockLockedListener(ILockLockedListener lll)
Specified by:
addLockLockedListener in interface ILockEventNotifier

addLockNotifiedAllListener

public void addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
Specified by:
addLockNotifiedAllListener in interface ILockEventNotifier

addLockNotifiedListener

public void addLockNotifiedListener(ILockNotifiedListener lnl)
Specified by:
addLockNotifiedListener in interface ILockEventNotifier

addLockUnlockedListener

public void addLockUnlockedListener(ILockUnlockedListener lul)
Specified by:
addLockUnlockedListener in interface ILockEventNotifier

addLockUnwaitListener

public void addLockUnwaitListener(ILockUnwaitListener lul)
Specified by:
addLockUnwaitListener in interface ILockEventNotifier

addLockWaitListener

public void addLockWaitListener(ILockWaitListener lwl)
Specified by:
addLockWaitListener in interface ILockEventNotifier

notifyLockLocked

public void notifyLockLocked(int threadId,
                             ILockValue lv,
                             int newLockCounter)
Specified by:
notifyLockLocked in interface ILockEventNotifier

notifyLockNotified

public void notifyLockNotified(int threadId,
                               ILockValue lv,
                               int notifiedThreadId)
Specified by:
notifyLockNotified in interface ILockEventNotifier

notifyLockNotifiedAll

public void notifyLockNotifiedAll(int threadId,
                                  ILockValue lv,
                                  int[] notifiedThreadIds)
Specified by:
notifyLockNotifiedAll in interface ILockEventNotifier

notifyLockUnlocked

public void notifyLockUnlocked(int threadId,
                               ILockValue lv,
                               int newLockCounter)
Specified by:
notifyLockUnlocked in interface ILockEventNotifier

notifyLockUnwait

public void notifyLockUnwait(int threadId,
                             ILockValue lv,
                             int lockCounter)
Specified by:
notifyLockUnwait in interface ILockEventNotifier

notifyLockWait

public void notifyLockWait(int threadId,
                           ILockValue lv,
                           int lockCounter)
Specified by:
notifyLockWait in interface ILockEventNotifier