|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.perseus.distribution.jgroups.JGroupsCoordinatorService
Constructor Summary | |
JGroupsCoordinatorService(JGroupsService drs)
|
Method Summary | |
java.io.Serializable |
getNodeId()
Returns the id of the local node which can be sent in messages as it is serializable. |
void |
nodeFailed(Address nodeId)
|
void |
sendToAllUsers(java.lang.Object rId,
java.io.Serializable message)
Asynchronously broadcasts a message to ALL users of a resource. |
void |
sendToUser(java.lang.Object rId,
java.io.Serializable message,
java.lang.Object user)
Asynchronously sends a message to ONE user of a resource. |
void |
sendToUsers(java.lang.Object rId,
java.io.Serializable message,
java.util.Set users)
Asynchronously multicasts a message to A SET OF users of a resource. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JGroupsCoordinatorService(JGroupsService drs)
Method Detail |
public void sendToAllUsers(java.lang.Object rId, java.io.Serializable message) throws NotCoordinatorException
DistResCoordinatorService
sendToAllUsers
in interface DistResCoordinatorService
rId
- the id of the related resourcemessage
- the message to be sent
NotCoordinatorException
public void sendToUser(java.lang.Object rId, java.io.Serializable message, java.lang.Object user) throws NotCoordinatorException
DistResCoordinatorService
sendToUser
in interface DistResCoordinatorService
rId
- the id of the related resourcemessage
- the message to be sentuser
- the id of the user node to which the message is to be sent
NotCoordinatorException
public void sendToUsers(java.lang.Object rId, java.io.Serializable message, java.util.Set users) throws NotCoordinatorException
DistResCoordinatorService
sendToUsers
in interface DistResCoordinatorService
rId
- the id of the related resourcemessage
- the message to be sentusers
- the set of users to which the message is to be sent
NotCoordinatorException
public java.io.Serializable getNodeId()
DistResCoordinatorService
getNodeId
in interface DistResCoordinatorService
public void nodeFailed(Address nodeId)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |