Class JPPFProvisioningInfo

java.lang.Object
org.jppf.node.provisioning.JPPFProvisioningInfo
All Implemented Interfaces:
Serializable

public class JPPFProvisioningInfo extends Object implements 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 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

      public List<String> getLaunchCommand()
      Get the command line used to start the slave node process.
      Returns:
      a list containing all the command line arguments.
    • getMasterUuid

      public String 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 -1 is the slave process is not yet terminated.
    • toString

      public String toString()
      Overrides:
      toString in class Object