Class JPPFNodeConfigSpec

java.lang.Object
org.jppf.node.protocol.JPPFNodeConfigSpec
All Implemented Interfaces:
Serializable

public class JPPFNodeConfigSpec extends Object implements Serializable
Instances of this class are set as job SLA attributes and describe the desired node configuration for a job.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JPPFNodeConfigSpec

      public JPPFNodeConfigSpec(TypedProperties desiredConfiguration)
      Initialize this node config spec with the specified desiredConfiguration and a restart flag set to true.
      Parameters:
      desiredConfiguration - the desired JPPF configuration of each node.
      Throws:
      IllegalArgumentException - if desiredConfiguration is null.
    • JPPFNodeConfigSpec

      public JPPFNodeConfigSpec(TypedProperties desiredConfiguration, boolean forceRestart) throws IllegalArgumentException
      Initialize this node config spec with the specified desiredConfiguration and restart flag.
      Parameters:
      desiredConfiguration - the desired JPPF configuration of each node.
      forceRestart - whether to force the restart of a node after reconfiguring it.
      Throws:
      IllegalArgumentException - if desiredConfiguration is null.
  • Method Details

    • getConfiguration

      public TypedProperties getConfiguration()
      Get the desired JPPF configuration of each node.
      Returns:
      a TypedProperties object containing the desired configuration properties.
    • isForceRestart

      public boolean isForceRestart()
      Determine whether to force the restart of a node after reconfiguring it.
      Returns:
      true if each node is to be restarted after reconfiguration, false otherwise.