com.metamatrix.core.event
Class AbstractEventBroker

java.lang.Object
  extended by com.metamatrix.core.event.AbstractEventSource
      extended by com.metamatrix.core.event.AbstractEventBroker
All Implemented Interfaces:
EventBroker, EventObjectListener, EventSource, java.util.EventListener
Direct Known Subclasses:
AsynchEventBroker

public abstract class AbstractEventBroker
extends AbstractEventSource
implements EventBroker


Constructor Summary
protected AbstractEventBroker()
           
 
Method Summary
 void addListener(java.lang.Class eventClass, EventObjectListener listener)
           
 void addListener(EventObjectListener listener)
           
protected  void assertReady()
           
 java.lang.String getName()
           
 boolean isShutdown()
           
protected  boolean isShutdownComplete()
           
protected  boolean isShutdownRequested()
           
protected  void notifyListeners(java.util.EventObject obj)
           
protected abstract  void process(java.util.EventObject obj)
           
 void processEvent(java.util.EventObject obj)
           
protected  void setName(java.lang.String name)
           
protected  void setShutdownComplete(boolean shutdownComplete)
           
 boolean shutdown()
           
 java.lang.String toString()
           
protected abstract  void waitToCompleteShutdown()
           
 
Methods inherited from class com.metamatrix.core.event.AbstractEventSource
addListeners, getAllListeners, getListeners, getListeners, removeAllListeners, removeListener, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.core.event.EventBroker
hasUnprocessedEvents
 
Methods inherited from interface com.metamatrix.core.event.EventSource
getAllListeners, getListeners, getListeners, removeAllListeners, removeListener, removeListener
 

Constructor Detail

AbstractEventBroker

protected AbstractEventBroker()
Method Detail

setName

protected void setName(java.lang.String name)

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addListener

public void addListener(java.lang.Class eventClass,
                        EventObjectListener listener)
                 throws EventSourceException
Specified by:
addListener in interface EventSource
Overrides:
addListener in class AbstractEventSource
Throws:
EventSourceException

addListener

public void addListener(EventObjectListener listener)
                 throws EventSourceException
Specified by:
addListener in interface EventSource
Overrides:
addListener in class AbstractEventSource
Throws:
EventSourceException

processEvent

public void processEvent(java.util.EventObject obj)
Specified by:
processEvent in interface EventObjectListener

shutdown

public boolean shutdown()
                 throws EventBrokerException
Specified by:
shutdown in interface EventBroker
Throws:
EventBrokerException

isShutdown

public boolean isShutdown()
Specified by:
isShutdown in interface EventBroker

notifyListeners

protected void notifyListeners(java.util.EventObject obj)

assertReady

protected void assertReady()

process

protected abstract void process(java.util.EventObject obj)

waitToCompleteShutdown

protected abstract void waitToCompleteShutdown()

isShutdownRequested

protected boolean isShutdownRequested()

isShutdownComplete

protected boolean isShutdownComplete()

setShutdownComplete

protected void setShutdownComplete(boolean shutdownComplete)


Copyright © 2009. All Rights Reserved.