Package org.jppf.node.protocol
Class JobClientSLA
- All Implemented Interfaces:
Serializable
This interface represents the Service Level Agreement between a JPPF job and a JPPF client.
It determines the state, conditions and order in which a job will be executed.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a copy of this job SLA.intGet the maximum number of channels, including the local execution channel if it is enabled, this job can be sent on.booleanDetermine whether the traversal of the graph of tasks, if any, should occur on the client side.voidsetGraphTraversalInClient(boolean graphTraversalInClient) Specify whether the traversal of the graph of tasks, if any, should occur on the client side.setMaxChannels(int maxChannels) Set the maximum number of channels, including the local execution channel if it is enabled, this job can be sent on.Methods inherited from class org.jppf.node.protocol.JobCommonSLA
copyTo, getExecutionPolicy, getJobExpirationSchedule, getJobSchedule, getMaxDispatchSize, getPreferencePolicy, isAllowMultipleDispatchesToSameChannel, setAllowMultipleDispatchesToSameChannel, setExecutionPolicy, setJobExpirationSchedule, setJobSchedule, setMaxDispatchSize, setPreferencePolicy
-
Constructor Details
-
JobClientSLA
public JobClientSLA()Default constructor.
-
-
Method Details
-
getMaxChannels
public int getMaxChannels()Get the maximum number of channels, including the local execution channel if it is enabled, this job can be sent on.- Returns:
- the number of channels as an int value.
-
setMaxChannels
Set the maximum number of channels, including the local execution channel if it is enabled, this job can be sent on.- Parameters:
maxChannels- the number of channels as an int value. A value <= 0 means no limit on the number of channels.- Returns:
- this SLA, for method call chaining.
-
copy
Create a copy of this job SLA.- Returns:
- a
JobClientSLAinstance.
-
isGraphTraversalInClient
public boolean isGraphTraversalInClient()Determine whether the traversal of the graph of tasks, if any, should occur on the client side. By default, as long assetGraphTraversalInClient(true)hasn't been called, this method will returnfalse.- Returns:
trueif the graph traversal is performed on the client side,falseotherwise.- Since:
- 6.2
-
setGraphTraversalInClient
public void setGraphTraversalInClient(boolean graphTraversalInClient) Specify whether the traversal of the graph of tasks, if any, should occur on the client side.- Parameters:
graphTraversalInClient-trueif the graph traversal is to be performed on the client side,falseotherwise.- Since:
- 6.2
-