Package org.jppf.node.protocol
Class JPPFNodeConfigSpec
java.lang.Object
org.jppf.node.protocol.JPPFNodeConfigSpec
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionJPPFNodeConfigSpec(TypedProperties desiredConfiguration) Initialize this node config spec with the specified desiredConfiguration and a restart flag set totrue.JPPFNodeConfigSpec(TypedProperties desiredConfiguration, boolean forceRestart) Initialize this node config spec with the specified desiredConfiguration and restart flag. -
Method Summary
Modifier and TypeMethodDescriptionGet the desired JPPF configuration of each node.booleanDetermine whether to force the restart of a node after reconfiguring it.
-
Constructor Details
-
JPPFNodeConfigSpec
Initialize this node config spec with the specified desiredConfiguration and a restart flag set totrue.- Parameters:
desiredConfiguration- the desired JPPF configuration of each node.- Throws:
IllegalArgumentException- ifdesiredConfigurationisnull.
-
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- ifdesiredConfigurationisnull.
-
-
Method Details
-
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:
trueif each node is to be restarted after reconfiguration,falseotherwise.
-