|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.gm.NewDispatcherLayer
public class NewDispatcherLayer
Handle dispatching daemon events to other layers in the stack, e.g.,
the MembershipLayer
and MulticastLayer
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jgroup.core.Layer |
---|
Layer.FinalizeLayer |
Method Summary | |
---|---|
void |
addEvent(Event event)
Receives and stores a message from daemon |
void |
addListener(java.lang.Object listener)
Add a listener to this layer. |
void |
dispatch(java.lang.Object obj)
Dispatch a single event (can be called by an upcall method) |
static NewDispatcherLayer |
getLayer()
|
RemoteDispatcher |
getRemoteDispatcher()
Returns the remote dispatcher reference. |
void |
halt()
Stop dispatching events |
void |
ping()
This method is invoked periodically by the daemon to verify whether a remote member object is still active or has crashed. |
void |
start(int gid)
Start dispatching events for the given group. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static NewDispatcherLayer getLayer()
public void addListener(java.lang.Object listener)
Layer
addListener
in interface Layer
listener
- An Object
representation of the listener interface.
This will typically be cast to the appropriate listener interface
type after checking the type with the instanceof operator.public void start(int gid)
DispatcherService
start
in interface DispatcherService
public void halt()
DispatcherService
halt
in interface DispatcherService
public void dispatch(java.lang.Object obj)
DispatcherService
dispatch
in interface DispatcherService
public RemoteDispatcher getRemoteDispatcher() throws JgroupException
DispatcherService
getRemoteDispatcher
in interface DispatcherService
JgroupException
- Raised if the dispatcher service could be not export
for remote access by the Jgroup daemon.public void addEvent(Event event) throws java.rmi.RemoteException
RemoteDispatcher
addEvent
in interface RemoteDispatcher
java.rmi.RemoteException
public void ping() throws java.rmi.RemoteException
PingListener
ping
in interface PingListener
java.rmi.RemoteException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |