org.objectweb.perseus.distribution.api
Interface DistResControllerService

All Known Implementing Classes:
JGroupsControllerService

public interface DistResControllerService


Method Summary
 void copyCoordinationFrom(java.lang.Object resId, java.io.Serializable nodeId)
          Replicates the coordination of a resource from a remote node to the local one.
 java.util.Vector getCoordinators(java.lang.Object resId)
           
 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 resId, java.io.Serializable nodeId)
          Migrates the coordination of a resource from a remote node to the local one.
 

Method Detail

getCoordinators

public java.util.Vector getCoordinators(java.lang.Object resId)

migrateCoordinationFrom

public void migrateCoordinationFrom(java.lang.Object resId,
                                    java.io.Serializable nodeId)
                             throws NotCoordinatorException,
                                    AlreadyCoordinatorException
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.

Parameters:
resId - 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 resId,
                                 java.io.Serializable nodeId)
                          throws NotCoordinatorException,
                                 AlreadyCoordinatorException
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.

Parameters:
resId - the id of the related resource
nodeId - the id of the node from which the coordination is to be replicated
Throws:
NotCoordinatorException - if the designated node is not a coordinator
AlreadyCoordinatorException - if the local node is already a coordinator

getNodeId

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

Returns:
the id of the local node


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