Class CIMEventDispatcher

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

public class CIMEventDispatcher extends Thread
Class CIMEventDispatcher is required for indication handling.
  • Field Details

  • Constructor Details

    • 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 Details

    • 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