|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.perseus.distribution.jgroups.JGroupsControllerService
Method Summary | |
void |
copyCoordinationFrom(java.lang.Object rId,
java.io.Serializable nodeId)
Replicates the coordination of a resource from a remote node to the local one. |
void |
copyCoordinationTo(java.lang.Object resId,
java.lang.Object nodeId)
|
java.util.Vector |
getCoordinators(java.lang.Object rId)
|
java.io.Serializable |
getNodeId()
Returns the id of the local node which can be sent in messages as it is serializable. |
void |
migrateCoordinationFrom(java.lang.Object rId,
java.io.Serializable nodeId)
Migrates the coordination of a resource from a remote node to the local one. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String toString()
public java.util.Vector getCoordinators(java.lang.Object rId)
getCoordinators
in interface DistResControllerService
public void migrateCoordinationFrom(java.lang.Object rId, java.io.Serializable nodeId) throws NotCoordinatorException, AlreadyCoordinatorException
DistResControllerService
migrateCoordinationFrom
in interface DistResControllerService
rId
- the id of the related resourcenodeId
- id of the node from which the coordination is to be moved
NotCoordinatorException
- if the designated node is not a coord.
AlreadyCoordinatorException
- if the local node is already a
coordinatorpublic void copyCoordinationFrom(java.lang.Object rId, java.io.Serializable nodeId) throws NotCoordinatorException, AlreadyCoordinatorException
DistResControllerService
copyCoordinationFrom
in interface DistResControllerService
rId
- the id of the related resourcenodeId
- the id of the node from which the coordination is to be
replicated
AlreadyCoordinatorException
- if the local node is already a
coordinator
NotCoordinatorException
- if the designated node is not a
coordinatorpublic void copyCoordinationTo(java.lang.Object resId, java.lang.Object nodeId) throws NotCoordinatorException
NotCoordinatorException
public java.io.Serializable getNodeId()
DistResControllerService
getNodeId
in interface DistResControllerService
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |