org.objectweb.perseus.distribution.jgroups
Class JGroupsControllerService

java.lang.Object
  extended byorg.objectweb.perseus.distribution.jgroups.JGroupsControllerService
All Implemented Interfaces:
DistResControllerService

public class JGroupsControllerService
extends java.lang.Object
implements DistResControllerService


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

toString

public java.lang.String toString()

getCoordinators

public java.util.Vector getCoordinators(java.lang.Object rId)
Specified by:
getCoordinators in interface DistResControllerService

migrateCoordinationFrom

public void migrateCoordinationFrom(java.lang.Object rId,
                                    java.io.Serializable nodeId)
                             throws NotCoordinatorException,
                                    AlreadyCoordinatorException
Description copied from interface: DistResControllerService
Migrates the coordination of a resource from a remote node to the local one. This operation do preserve the guaranteed order of message delivery, so that the migration must be completely transparent to users and coordinators.

Specified by:
migrateCoordinationFrom in interface DistResControllerService
Parameters:
rId - the id of the related resource
nodeId - id of the node from which the coordination is to be moved
Throws:
NotCoordinatorException - if the designated node is not a coord.
AlreadyCoordinatorException - if the local node is already a coordinator

copyCoordinationFrom

public void copyCoordinationFrom(java.lang.Object rId,
                                 java.io.Serializable nodeId)
                          throws NotCoordinatorException,
                                 AlreadyCoordinatorException
Description copied from interface: DistResControllerService
Replicates the coordination of a resource from a remote node to the local one. This operation do preserve the guaranteed order of message delivery, so that the replication must be completely transparent to users and coordinators.

Specified by:
copyCoordinationFrom in interface DistResControllerService
Parameters:
rId - the id of the related resource
nodeId - the id of the node from which the coordination is to be replicated
Throws:
AlreadyCoordinatorException - if the local node is already a coordinator
NotCoordinatorException - if the designated node is not a coordinator

copyCoordinationTo

public void copyCoordinationTo(java.lang.Object resId,
                               java.lang.Object nodeId)
                        throws NotCoordinatorException
Throws:
NotCoordinatorException

getNodeId

public java.io.Serializable getNodeId()
Description copied from interface: DistResControllerService
Returns the id of the local node which can be sent in messages as it is serializable.

Specified by:
getNodeId in interface DistResControllerService
Returns:
the id of the local node


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.