public class CLIInfrastructure extends HostsFileBasedInfrastructureManager
Deployment phase:
Removal phase:
HostsFileBasedInfrastructureManager.NodeNameBuilder
InfrastructureManager.PersistedInfraVariablesHandler<T>, InfrastructureManager.RMDeployingNodeAccessor
Modifier and Type | Field and Description |
---|---|
protected File |
deploymentScript |
protected String |
interpreter |
protected File |
removalScript |
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 |
---|
CLIInfrastructure() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(Object... parameters)
Configures the Infrastructure
|
String |
getDescription() |
protected void |
initializePersistedInfraVariables()
This method should initialize a value in the runtime variables map for all the runtime variables that will be
used in the class.
|
protected void |
killNodeImpl(org.objectweb.proactive.core.node.Node node,
InetAddress h)
Kills the node passed as parameter
|
void |
shutDown()
Notify this infrastructure it is going to be shut down along with its
nodesource.
|
protected void |
startNodeImpl(HostTracker hostTracker,
int nbNodes,
List<String> depNodeURLs)
Internal node acquisition method
|
acquireAllNodes, acquireNode, addTimeouts, anyTimedOut, getSectionDescriptions, 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, update, updateDeployingNodeDescription
protected String interpreter
protected File deploymentScript
protected File removalScript
protected void configure(Object... parameters)
configure
in class HostsFileBasedInfrastructureManager
parameters
- parameters[4] : An interpreter that launch the script
parameters[5] : A script that deploys nodes on a single host
parameters[6] : A script that removes a nodeIllegalArgumentException
- configuration failedprotected 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 h)
killNodeImpl
in class HostsFileBasedInfrastructureManager
node
- The node to killh
- The host of the nodepublic String getDescription()
getDescription
in class InfrastructureManager
public void shutDown()
shutDown
in class InfrastructureManager
protected void initializePersistedInfraVariables()
InfrastructureManager
InfrastructureManager.configure(Object...)
method.
This method runs with the write lock acquired.initializePersistedInfraVariables
in class HostsFileBasedInfrastructureManager