|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.perseus.distribution.jgroups.JGroupsUserService
| Constructor Summary | |
JGroupsUserService(JGroupsService drs)
|
|
| Method Summary | |
java.io.Serializable |
getNodeId()
Returns the id of the local node. |
DistResUser |
getUser(java.lang.Object resId)
Gets the user interface associated with a given resource identifier. |
boolean |
joinUsers(java.lang.Object rId,
DistResUser dru)
Request the coordinator(s) to join the users of a resource. |
void |
sendToCoordinator(java.lang.Object rId,
java.io.Serializable message)
Asynchronously sends a message to the coordinator(s). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JGroupsUserService(JGroupsService drs)
| Method Detail |
public boolean joinUsers(java.lang.Object rId,
DistResUser dru)
throws UseNotGrantedException,
java.lang.InterruptedException
DistResUserService
joinUsers in interface DistResUserServicerId - the id of the related resourcedru - the user to which messages must be delivered
UseNotGrantedException - if the joining has not been accepted
java.lang.InterruptedException - if the thread has been interrupted during
the operation
public void sendToCoordinator(java.lang.Object rId,
java.io.Serializable message)
throws NotUserException
DistResUserService
sendToCoordinator in interface DistResUserServicerId - the id of the resourcemessage - the message to send
NotUserException - if the not is not registered has a user of
this resourcepublic java.io.Serializable getNodeId()
DistResUserService
getNodeId in interface DistResUserServicepublic DistResUser getUser(java.lang.Object resId)
DistResUserService
getUser in interface DistResUserServiceresId - the id of the coresponding resource
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||