|
|||||||||
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
appl.parallel.client.RemoteEventHandler
public class RemoteEventHandler
Starts a Service for receiving local and remote events. Monitors can register
to this service. All events are forwarded the registered listeners. The
service tries to get info for registry port from property
XuluClient.registryport
in XuluConfig
.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
RemoteEventHandler()
|
Method Summary | |
---|---|
void |
addTimeEventListener(TimeMonitor monitor)
Adds a new time monitor |
void |
addTransferEventListener(TransferMonitor monitor)
Adds a new TransferMonitor |
void |
fireRemoteEvent(RemoteEvent e)
|
void |
fireRemoteEvent(TimeEvent t)
|
void |
fireRemoteEvent(TransferEvent t)
|
void |
fireRemoteEvents(RemoteEvent[] e)
|
boolean |
isRunning()
|
boolean |
isTimeMonitoringEnabled()
|
boolean |
isTransferMonitoringEnabled()
|
void |
removeTimeMonitor(TimeMonitor monitor)
removes the given monitor |
void |
removeTransferMonitor(TransferMonitor monitor)
adds the given Monitor |
void |
startService()
Starts the service |
void |
stopService()
Stops the service |
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 |
---|
public RemoteEventHandler() throws RemoteException
RemoteException
RemoteException
- if binding failsMethod Detail |
---|
public boolean isRunning()
isRunning
in interface Service
public void startService()
Service
startService
in interface Service
public void stopService()
Service
stopService
in interface Service
public void fireRemoteEvent(TimeEvent t) throws RemoteException
RemoteException
public void fireRemoteEvent(TransferEvent t) throws RemoteException
RemoteException
public void addTimeEventListener(TimeMonitor monitor)
monitor
- a time monitorpublic void addTransferEventListener(TransferMonitor monitor)
TransferMonitor
monitor
- a time monitorpublic void removeTimeMonitor(TimeMonitor monitor)
monitor
- public void removeTransferMonitor(TransferMonitor monitor)
monitor
- public boolean isTimeMonitoringEnabled() throws RemoteException
isTimeMonitoringEnabled
in interface CommEventSink
RemoteException
public boolean isTransferMonitoringEnabled() throws RemoteException
isTransferMonitoringEnabled
in interface CommEventSink
RemoteException
public void fireRemoteEvent(RemoteEvent e) throws RemoteException
fireRemoteEvent
in interface RemoteEventSink
RemoteException
public void fireRemoteEvents(RemoteEvent[] e) throws RemoteException
fireRemoteEvents
in interface RemoteEventSink
RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |