|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.dpml.util.UnicastEventSource
public abstract class UnicastEventSource
A abstract base class that established an event queue and handles event dispatch operations for listeners declared in a class extending this base class.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
protected |
UnicastEventSource(EventQueue queue,
Logger logger)
Creation of a new UnicastEventSource. |
Method Summary | |
---|---|
protected void |
addListener(EventListener listener)
Add a listener to the set of listeners handled by this producer. |
protected void |
enqueueEvent(EventObject event)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
EventListener[] |
getEventListeners()
Return the array of registered event listeners. |
protected EventQueue |
getEventQueue()
Return the event queue. |
protected Logger |
getLocalLogger()
Return the logging channel assigned to the event source. |
protected Object |
getLock()
Return the internal synchronization lock. |
abstract void |
processEvent(EventObject event)
Abstract operation to be implemented by classes extending this base class. |
protected void |
removeListener(EventListener listener)
Remove a listener to the set of listeners handled by this producer. |
void |
terminate()
Terminate the event source. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected UnicastEventSource(EventQueue queue, Logger logger) throws RemoteException
queue
- the event queuelogger
- the assigned logging channel
RemoteException
- if a remote I/O exception occursMethod Detail |
---|
protected Logger getLocalLogger()
protected EventQueue getEventQueue()
public abstract void processEvent(EventObject event)
processEvent
in interface EventHandler
event
- the event to processprotected void addListener(EventListener listener)
listener
- the event listenerprotected void removeListener(EventListener listener)
listener
- the event listenerpublic EventListener[] getEventListeners()
getEventListeners
in interface EventHandler
protected void enqueueEvent(EventObject event)
event
- the event to enqueueprotected Object getLock()
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |