org.objectweb.proactive.core.descriptor.services
Class FaultToleranceService

java.lang.Object
  extended byorg.objectweb.proactive.core.descriptor.services.FaultToleranceService
All Implemented Interfaces:
java.io.Serializable, UniversalService

public class FaultToleranceService
extends java.lang.Object
implements UniversalService

This class represents the fault-tolerance configuration for a virtual node, i.e, url of ft servers and ft values such as ttc

Since:
ProActive 2.2
Version:
1.0, 2005/01/20
Author:
cdelbe
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_PARAM_LINE
           
static java.lang.String FT_SERVICE_NAME
           
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
FaultToleranceService()
           
 
Method Summary
 java.lang.String buildParamsLine()
          Build the java properties sequence corresponding to the set values.
 java.lang.String getAttachedResourceServer()
           
 java.lang.String getCheckpointServerURL()
           
 java.lang.String getGlobalServerURL()
           
 java.lang.String getLocationServerURL()
           
 java.lang.String getRecoveryProcessURL()
           
 java.lang.String getServiceName()
          Returns the name of the service.
 java.lang.String getTtcValue()
           
 boolean registerRessources(Node[] nodes)
          Register all nodes in the RessourceServer.
 void setAttachedResourceServer(java.lang.String attachedRessourceServer)
           
 void setCheckpointServerURL(java.lang.String checkpointServerURL)
           
 void setGlobalServerURL(java.lang.String globalServerURL)
           
 void setLocationServerURL(java.lang.String locationServerURL)
           
 void setRecoveryProcessURL(java.lang.String recoveryProcessURL)
           
 void setTtcValue(java.lang.String ttcValue)
           
 ProActiveRuntime[] startService()
          Starts this Service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FT_SERVICE_NAME

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

DEFAULT_PARAM_LINE

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

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

FaultToleranceService

public FaultToleranceService()
Method Detail

startService

public ProActiveRuntime[] startService()
                                throws ProActiveException
Description copied from interface: UniversalService
Starts this Service

Specified by:
startService in interface UniversalService
Returns:
an array of ProActiveRuntime
Throws:
ProActiveException
See Also:
Nothing to do for ft service

getServiceName

public java.lang.String getServiceName()
Description copied from interface: UniversalService
Returns the name of the service. The name is static, it means that it is the same name for all instances of a sefvice's class

Specified by:
getServiceName in interface UniversalService
Returns:
the static name of the service
See Also:
UniversalService.getServiceName()

buildParamsLine

public java.lang.String buildParamsLine()
Build the java properties sequence corresponding to the set values.

Returns:
the java properties sequence corresponding to the set values.

registerRessources

public boolean registerRessources(Node[] nodes)
Register all nodes in the RessourceServer. Do nothing if the ressource server is null.

Parameters:
nodes - array of nodes that must be registered in the ressource server
Returns:
true if nodes has been registered, false otherwise.

getAttachedResourceServer

public java.lang.String getAttachedResourceServer()

setAttachedResourceServer

public void setAttachedResourceServer(java.lang.String attachedRessourceServer)

getCheckpointServerURL

public java.lang.String getCheckpointServerURL()

setCheckpointServerURL

public void setCheckpointServerURL(java.lang.String checkpointServerURL)

getGlobalServerURL

public java.lang.String getGlobalServerURL()

setGlobalServerURL

public void setGlobalServerURL(java.lang.String globalServerURL)

getLocationServerURL

public java.lang.String getLocationServerURL()

setLocationServerURL

public void setLocationServerURL(java.lang.String locationServerURL)

getRecoveryProcessURL

public java.lang.String getRecoveryProcessURL()

setRecoveryProcessURL

public void setRecoveryProcessURL(java.lang.String recoveryProcessURL)

getTtcValue

public java.lang.String getTtcValue()

setTtcValue

public void setTtcValue(java.lang.String ttcValue)


Copyright ? April 2005 INRIA All Rights Reserved.