public class CIMEventDispatcher
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedList<CIMEvent> |
iEventQueue |
protected java.util.EventListener |
iListener |
Constructor and Description |
---|
CIMEventDispatcher(java.util.EventListener pListener)
Construct a CIMEventDispatcher object which distributes CIMEvents to the
appropriate CIMListener.
|
CIMEventDispatcher(java.util.EventListener pListener,
int pMaxEvents)
Construct a CIMEventDispatcher object which distributes CIMEvents to the
appropriate CIMListener.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
dispatchEvent(CIMEvent pEvent)
Propagates the CIMEvent to the event consumers.
|
void |
kill()
Stops the dispatching of events.
|
void |
run() |
void |
startup()
Starts the dispatching engine of the CIMEventDispatcher.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected java.util.LinkedList<CIMEvent> iEventQueue
protected java.util.EventListener iListener
public CIMEventDispatcher(java.util.EventListener pListener)
pListener
- The CIMListener (IndicationListener or
IndicationListenerSBLIM) which receives the CIMEvents to be
dispatched.public CIMEventDispatcher(java.util.EventListener pListener, int pMaxEvents)
pListener
- The CIMListener (IndicationListener or
IndicationListenerSBLIM) which receives the CIMEvents to be
dispatched.pMaxEvents
- The maximum number of CIMEvents waiting to be dispatched.public void dispatchEvent(CIMEvent pEvent)
pEvent
- The CIMEvent to be dispatched.public void startup()
public void kill()
public void close()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.