Package org.jppf.job
Class JobInformation
java.lang.Object
org.jppf.job.JobInformation
- All Implemented Interfaces:
Serializable
Instances of this class provide information about the state of a job being processed by a driver.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize this object.JobInformation(String jobUuid, String jobId, int taskCount, int initialTaskCount, int priority, boolean suspended, boolean pending) Initialize this object with the specified parameters.JobInformation(TaskBundle bundle) Initialize this object with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionintGet the initial task count of the job, that is, the number of tasks it contained when it was received by the driver.Get the user-defined name for the job.Get the unique identifier for the job.intGet the maximum number of nodes this job can run on.intGet the priority of the job.intGet the current number of tasks in the job.booleanGet the pending state of the job.booleanDetermine whether the job is in suspended state.voidsetInitialTaskCount(int initialTaskCount) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetJobName(String name) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetJobUuid(String jobUuid) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetMaxNodes(int maxNodes) Get the maximum number of nodes this job can run on.voidsetPending(boolean pending) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetPriority(int priority) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetSuspended(boolean suspended) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.voidsetTaskCount(int taskCount) Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.toString()
-
Constructor Details
-
JobInformation
public JobInformation()Initialize this object. -
JobInformation
Initialize this object with the specified parameters.- Parameters:
bundle- the task bundle from which to get the job information.
-
JobInformation
public JobInformation(String jobUuid, String jobId, int taskCount, int initialTaskCount, int priority, boolean suspended, boolean pending) Initialize this object with the specified parameters.- Parameters:
jobUuid- the universal unique id of this job.jobId- the user-defined id of this job.taskCount- the number of tasks in this job.initialTaskCount- the initial number of tasks in the job submitted by the JPPF client.priority- the priority of this job.suspended- determines whether the job is in suspended state.pending- determines whether the job is waiting to reach its scheduled execution date.
-
-
Method Details
-
getJobName
Get the user-defined name for the job.- Returns:
- the job name as a string.
-
setJobName
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the user-defined name for the job.- Parameters:
name- the name as a string.
-
getTaskCount
public int getTaskCount()Get the current number of tasks in the job.- Returns:
- the number of tasks as an int.
-
setTaskCount
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the current number of tasks in the job.- Parameters:
taskCount- the number of tasks as an int.
-
getPriority
public int getPriority()Get the priority of the job.- Returns:
- the priority as an int.
-
setPriority
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the priority of the job.- Parameters:
priority- the priority as an int.
-
getInitialTaskCount
public int getInitialTaskCount()Get the initial task count of the job, that is, the number of tasks it contained when it was received by the driver.- Returns:
- the task count as an int.
-
setInitialTaskCount
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the initial task count of the job.- Parameters:
initialTaskCount- the task count as an int.
-
isSuspended
public boolean isSuspended()Determine whether the job is in suspended state.- Returns:
- true if the job is suspended, false otherwise.
-
setSuspended
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Specify whether the job is in suspended state.- Parameters:
suspended- true if the job is suspended, false otherwise.
-
getMaxNodes
public int getMaxNodes()Get the maximum number of nodes this job can run on.- Returns:
- the number of nodes as an int value.
-
setMaxNodes
public void setMaxNodes(int maxNodes) Get the maximum number of nodes this job can run on.- Parameters:
maxNodes- the number of nodes as an int value.
-
isPending
public boolean isPending()Get the pending state of the job. A job is pending if its scheduled execution date/time has not yet been reached.- Returns:
- determines whether the job is waiting to reach its scheduled execution date.
-
setPending
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the pending state of the job.- Parameters:
pending- specifies whether the job is waiting to reach its scheduled execution date.
-
getJobUuid
Get the unique identifier for the job.- Returns:
- the uuid as a string.
-
setJobUuid
Deprecated.the field is initialized in a constructor, this setter is never used in JPPF code and should not be used in client code.Set the unique identifier for the job.- Parameters:
jobUuid- the uuid as a string.
-
toString
-