Package org.jppf.node.provisioning
Class JPPFProvisioningInfo
java.lang.Object
org.jppf.node.provisioning.JPPFProvisioningInfo
- All Implemented Interfaces:
Serializable
This class provides information on a slave node, sent as a notification whenever a slave is started or stopped.
- Since:
- 6.1
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJPPFProvisioningInfo(String masterUuid, int slaveId, int exitCode, List<String> launchCommand) Initialize this provisiong information. -
Method Summary
Modifier and TypeMethodDescriptionintGet the slave node process exit code.Get the command line used to start the slave node process.Get the uuid of the master node that launched the slave.intGet the id of the slave, relative to the master.toString()
-
Constructor Details
-
JPPFProvisioningInfo
public JPPFProvisioningInfo(String masterUuid, int slaveId, int exitCode, List<String> launchCommand) Initialize this provisiong information.- Parameters:
masterUuid- the uuid of the master node that launched the slave.slaveId- the id of the slave, relative to the master.exitCode- the slave node process exit code.launchCommand- the command line used to start the slave node process.
-
-
Method Details
-
getLaunchCommand
Get the command line used to start the slave node process.- Returns:
- a list containing all the command line arguments.
-
getMasterUuid
Get the uuid of the master node that launched the slave.- Returns:
- a string holding the master node's uuid.
-
getSlaveId
public int getSlaveId()Get the id of the slave, relative to the master.- Returns:
- an integer id, unique only for the master node.
-
getExitCode
public int getExitCode()Get the slave node process exit code.- Returns:
- the slave's exit code, or
-1is the slave process is not yet terminated.
-
toString
-