org.objectweb.perseus.distribution.api
Interface DistResServiceManager

All Known Implementing Classes:
JGroupsServiceManager

public interface DistResServiceManager


Method Summary
 DistResControllerService getControllerService(java.lang.Object nodeId)
          Returns the controller service of a given local node
 DistResCoordinatorService getCoordinatorService(java.lang.Object nodeId)
          Returns the coordinator service of a given local node
 boolean getDeserializeAtCoordinator()
           
 java.util.Set getLocalNodes()
          Get the set of existing local nodes
 DistResUserService getUserService(java.lang.Object nodeId)
          Returns the user service of a given local node
 java.io.Serializable newLocalNode(DistResCoordinatorFactory drcf)
          Creates a new (virtual) node on which resources will be used and managed.
 void removeAllLocalNodes()
          Removes all existing local nodes.
 void removeLocalNode(java.lang.Object nodeId)
          Removes a existing local node.
 void setDeserializeAtCoordinator(boolean value)
           
 

Method Detail

newLocalNode

public java.io.Serializable newLocalNode(DistResCoordinatorFactory drcf)
Creates a new (virtual) node on which resources will be used and managed. As node are virtual, one can create multiple nodes inside a single JVM.

Parameters:
drcf - the coordinator factory to use when coordinator creation is required
Returns:
the id of the created node

removeLocalNode

public void removeLocalNode(java.lang.Object nodeId)
Removes a existing local node.

Parameters:
nodeId -

getLocalNodes

public java.util.Set getLocalNodes()
Get the set of existing local nodes

Returns:
the set of existing local nodes

removeAllLocalNodes

public void removeAllLocalNodes()
Removes all existing local nodes.


getCoordinatorService

public DistResCoordinatorService getCoordinatorService(java.lang.Object nodeId)
Returns the coordinator service of a given local node

Parameters:
nodeId - the id of the related local node
Returns:
the controller service of a given local node

getControllerService

public DistResControllerService getControllerService(java.lang.Object nodeId)
Returns the controller service of a given local node

Parameters:
nodeId - the id of the related local node
Returns:
the controller service of a given local node

getUserService

public DistResUserService getUserService(java.lang.Object nodeId)
Returns the user service of a given local node

Parameters:
nodeId - the id of the related local node
Returns:
the user service of a given local node

setDeserializeAtCoordinator

public void setDeserializeAtCoordinator(boolean value)
Returns:

getDeserializeAtCoordinator

public boolean getDeserializeAtCoordinator()


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