com.metamatrix.core.event
Class AbstractEventBroker
java.lang.Object
com.metamatrix.core.event.AbstractEventSource
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractEventBroker
protected AbstractEventBroker()
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.