Class JobClientSLA

All Implemented Interfaces:
Serializable

public class JobClientSLA extends JobCommonSLA<JobClientSLA>
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 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

      public JobClientSLA setMaxChannels(int maxChannels)
      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

      public JobClientSLA copy()
      Create a copy of this job SLA.
      Returns:
      a JobClientSLA instance.
    • 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 as setGraphTraversalInClient(true) hasn't been called, this method will return false.
      Returns:
      true if the graph traversal is performed on the client side, false otherwise.
      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 - true if the graph traversal is to be performed on the client side, false otherwise.
      Since:
      6.2