org.sblim.cimclient.internal.wbem.indications
Class CIMEventDispatcher

java.lang.Object
  extended by java.lang.Thread
      extended by org.sblim.cimclient.internal.wbem.indications.CIMEventDispatcher
All Implemented Interfaces:
Runnable

public class CIMEventDispatcher
extends Thread

Class CIMEventDispatcher is required for indication handling.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  LinkedList<CIMEvent> iEventQueue
           
protected  EventListener iListener
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CIMEventDispatcher(EventListener pListener)
          Construct a CIMEventDispatcher object which distributes CIMEvents to the appropriate CIMListener.
CIMEventDispatcher(EventListener pListener, int pMaxEvents)
          Construct a CIMEventDispatcher object which distributes CIMEvents to the appropriate CIMListener.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iEventQueue

protected LinkedList<CIMEvent> iEventQueue

iListener

protected EventListener iListener
Constructor Detail

CIMEventDispatcher

public CIMEventDispatcher(EventListener pListener)
Construct a CIMEventDispatcher object which distributes CIMEvents to the appropriate CIMListener. The EventListener must be an instance of IndicationListener or IndicationListenerSBLIM.

Parameters:
pListener - The CIMListener (IndicationListener or IndicationListenerSBLIM) which receives the CIMEvents to be dispatched.

CIMEventDispatcher

public CIMEventDispatcher(EventListener pListener,
                          int pMaxEvents)
Construct a CIMEventDispatcher object which distributes CIMEvents to the appropriate CIMListener. The EventListener must be an instance of IndicationListener or IndicationListenerSBLIM.

Parameters:
pListener - The CIMListener (IndicationListener or IndicationListenerSBLIM) which receives the CIMEvents to be dispatched.
pMaxEvents - The maximum number of CIMEvents waiting to be dispatched.
Method Detail

dispatchEvent

public void dispatchEvent(CIMEvent pEvent)
Propagates the CIMEvent to the event consumers.

Parameters:
pEvent - The CIMEvent to be dispatched.

startup

public void startup()
Starts the dispatching engine of the CIMEventDispatcher.


kill

public void kill()
Stops the dispatching of events.


close

public void close()
close


run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.