org.objectweb.perseus.distribution.jgroups
Class JGroupsServiceManager

java.lang.Object
  extended byorg.objectweb.perseus.distribution.jgroups.JGroupsServiceManager
All Implemented Interfaces:
DistResServiceManager

public class JGroupsServiceManager
extends java.lang.Object
implements DistResServiceManager


Field Summary
static java.lang.String SERIALIZER_BINDING
           
protected  java.lang.String state
           
 
Constructor Summary
JGroupsServiceManager()
           
 
Method Summary
 void bindFc(java.lang.String s, java.lang.Object o)
           
 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.lang.String getFcState()
           
 java.util.Set getLocalNodes()
          Get the set of existing local nodes
 JGroupsService getService(java.lang.Object nodeId)
           
 DistResUserService getUserService(java.lang.Object nodeId)
          Returns the user service of a given local node
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String s)
           
 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)
           
 void startFc()
           
 void stopFc()
           
 void stopLocalNode(java.lang.Object nodeId)
           
 void unbindFc(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZER_BINDING

public static final java.lang.String SERIALIZER_BINDING
See Also:
Constant Field Values

state

protected java.lang.String state
Constructor Detail

JGroupsServiceManager

public JGroupsServiceManager()
Method Detail

listFc

public java.lang.String[] listFc()

lookupFc

public java.lang.Object lookupFc(java.lang.String s)
                          throws NoSuchInterfaceException
Throws:
NoSuchInterfaceException

bindFc

public void bindFc(java.lang.String s,
                   java.lang.Object o)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

unbindFc

public void unbindFc(java.lang.String s)
              throws NoSuchInterfaceException,
                     IllegalBindingException,
                     IllegalLifeCycleException
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException

getFcState

public java.lang.String getFcState()

startFc

public void startFc()
             throws IllegalLifeCycleException
Throws:
IllegalLifeCycleException

stopFc

public void stopFc()
            throws IllegalLifeCycleException
Throws:
IllegalLifeCycleException

newLocalNode

public java.io.Serializable newLocalNode(DistResCoordinatorFactory drcf)
Description copied from interface: DistResServiceManager
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.

Specified by:
newLocalNode in interface DistResServiceManager
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)
Description copied from interface: DistResServiceManager
Removes a existing local node.

Specified by:
removeLocalNode in interface DistResServiceManager
Parameters:
nodeId -

getLocalNodes

public java.util.Set getLocalNodes()
Description copied from interface: DistResServiceManager
Get the set of existing local nodes

Specified by:
getLocalNodes in interface DistResServiceManager
Returns:
the set of existing local nodes

stopLocalNode

public void stopLocalNode(java.lang.Object nodeId)

removeAllLocalNodes

public void removeAllLocalNodes()
Description copied from interface: DistResServiceManager
Removes all existing local nodes.

Specified by:
removeAllLocalNodes in interface DistResServiceManager

getCoordinatorService

public DistResCoordinatorService getCoordinatorService(java.lang.Object nodeId)
Description copied from interface: DistResServiceManager
Returns the coordinator service of a given local node

Specified by:
getCoordinatorService in interface DistResServiceManager
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)
Description copied from interface: DistResServiceManager
Returns the controller service of a given local node

Specified by:
getControllerService in interface DistResServiceManager
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)
Description copied from interface: DistResServiceManager
Returns the user service of a given local node

Specified by:
getUserService in interface DistResServiceManager
Parameters:
nodeId - the id of the related local node
Returns:
the user service of a given local node

getService

public JGroupsService getService(java.lang.Object nodeId)

setDeserializeAtCoordinator

public void setDeserializeAtCoordinator(boolean value)
Specified by:
setDeserializeAtCoordinator in interface DistResServiceManager
Returns:

getDeserializeAtCoordinator

public boolean getDeserializeAtCoordinator()
Specified by:
getDeserializeAtCoordinator in interface DistResServiceManager


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