public class AutoUpdateInfrastructure extends HostsFileBasedInfrastructureManager
HostsFileBasedInfrastructureManager.NodeNameBuilder
InfrastructureManager.PersistedInfraVariablesHandler<T>, InfrastructureManager.RMDeployingNodeAccessor
Modifier and Type | Field and Description |
---|---|
static String |
CLI_FILE_PROPERTY |
protected String |
command |
static String |
HOST_NAME |
static String |
NB_NODES |
static String |
NODE_NAME |
static String |
NODESOURCE_CREDENTIALS |
static String |
NODESOURCE_NAME |
DEFAULT_NODE_DEPLOYMENT_FAILURE_THRESHOLD, DEFAULT_NODE_TIMEOUT, DEFAULT_WAIT_TIME_BETWEEN_NODE_DEPLOYMENT_FAILURES, hostsList, logger, maxDeploymentFailure, nodeNameBuilder, nodeTimeOut, waitBetweenDeploymentFailures
ELASTIC, nodeSource, persistedInfraVariables, readLock, RM_URL_KEY, writeLock
Constructor and Description |
---|
AutoUpdateInfrastructure() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Object... parameters)
Configures the infrastructure.
|
String |
getDescription() |
protected void |
killNodeImpl(org.objectweb.proactive.core.node.Node node,
InetAddress host)
Kills the node passed as parameter
|
protected void |
startNodeImpl(HostTracker hostTracker,
int nbNodes,
List<String> depNodeURLs)
Internal node acquisition method
|
acquireAllNodes, acquireNode, addTimeouts, anyTimedOut, getSectionDescriptions, initializePersistedInfraVariables, notifyAcquiredNode, notifyDeployingNodeLost, notifyDownNode, onDownNodeReconnection, readHosts, removeNode, removeTimeouts, startNodeImplWithRetries, toString
acquireAllNodes, acquireNodes, acquireNodes, addDeployingNode, addDeployingNodeWithLockAndPersist, addLostNodeWithLockAndPersist, addMultipleDeployingNodes, buildDeployingNodeURL, checkAllNodesAreAcquiredAndDo, checkNodeIsAcquiredAndDo, declareDeployingNodeLost, getDefaultCommandLineBuilder, getDeployingAndLostNodes, getDeployingNodesWithLock, getDeployingOrLostNode, getEmptyCommandLineBuilder, getLostNodesWithLock, getMeta, getPersistedDeployingNodesUrl, getPersistedInfraVariable, getPersistedLostNodesUrl, getRmUrl, internalConfigure, internalNotifyDownNode, internalRegisterAcquiredNode, internalRemoveDeployingNode, internalRemoveNode, internalShutDown, isShutDown, isUsingDeployingNode, multipleDeclareDeployingNodeLost, persistInfrastructureVariables, reconfigure, recoverPersistedInfraVariables, removeDownNodePriorToNotify, searchForNotAcquiredRmNode, setNodeSource, setPersistedInfraVariable, setPersistedNodeSourceData, setRmDbManager, setRmUrl, shutDown, update, updateDeployingNodeDescription
public static final String CLI_FILE_PROPERTY
public static final String NODE_NAME
public static final String HOST_NAME
public static final String NODESOURCE_NAME
public static final String NODESOURCE_CREDENTIALS
public static final String NB_NODES
protected String command
public void configure(Object... parameters)
HostsFileBasedInfrastructureManager
configure
in class HostsFileBasedInfrastructureManager
parameters
- of the infrastructure managerprotected void startNodeImpl(HostTracker hostTracker, int nbNodes, List<String> depNodeURLs) throws RMException
Starts a PA runtime on remote host using a custom script, register it manually in the nodesource.
startNodeImpl
in class HostsFileBasedInfrastructureManager
hostTracker
- The host on which one the node will be startednbNodes
- number of nodes to deploydepNodeURLs
- list of deploying or lost nodes urls createdRMException
- acquisition failedprotected void killNodeImpl(org.objectweb.proactive.core.node.Node node, InetAddress host) throws RMException
HostsFileBasedInfrastructureManager
killNodeImpl
in class HostsFileBasedInfrastructureManager
node
- The node to killhost
- The host of the nodeRMException
- if a problem occurred while removingpublic String getDescription()
getDescription
in class InfrastructureManager