public class JobInformation extends Object implements Serializable
| Constructor and Description |
|---|
JobInformation()
Initialize this object.
|
JobInformation(String jobUuid,
String jobId,
int taskCount,
int initialTaskCount,
int priority,
boolean suspended,
boolean pending)
Initialize this object with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInitialTaskCount()
Get the initial task count of this bundle.
|
String |
getJobId()
Deprecated.
use
JobInformation.getJobName() instead. |
String |
getJobName()
Get the user-defined name for the job.
|
String |
getJobUuid()
Get the unique identifier for the job.
|
int |
getMaxNodes()
Get the maximum number of nodes this job can run on.
|
int |
getPriority()
Get the priority of the job.
|
int |
getTaskCount()
Get the current number of tasks in the job.
|
boolean |
isPending()
Get the pending state of the job.
|
boolean |
isSuspended()
Determine whether the job is in suspended state.
|
void |
setInitialTaskCount(int initialTaskCount)
Set the initial task count of the job.
|
void |
setJobId(String id)
Deprecated.
use
JobInformation.setJobName(String) instead. |
void |
setJobName(String name)
Set the user-defined name for the job.
|
void |
setJobUuid(String jobUuid)
Set the unique identifier for the job.
|
void |
setMaxNodes(int maxNodes)
Get the maximum number of nodes this job can run on.
|
void |
setPending(boolean pending)
Set the pending state of the job.
|
void |
setPriority(int priority)
Set the priority of the job.
|
void |
setSuspended(boolean suspended)
Specify whether the job is in suspended state.
|
void |
setTaskCount(int taskCount)
Set the current number of tasks in the job.
|
String |
toString() |
public JobInformation()
public JobInformation(String jobUuid, String jobId, int taskCount, int initialTaskCount, int priority, boolean suspended, boolean pending)
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.public String getJobId()
JobInformation.getJobName() instead.public void setJobId(String id)
JobInformation.setJobName(String) instead.id - the id as a string.public String getJobName()
public void setJobName(String name)
name - the name as a string.public int getTaskCount()
public void setTaskCount(int taskCount)
taskCount - the number of tasks as an int.public int getPriority()
public void setPriority(int priority)
priority - the priority as an int.public int getInitialTaskCount()
public void setInitialTaskCount(int initialTaskCount)
initialTaskCount - the task count as an int.public boolean isSuspended()
public void setSuspended(boolean suspended)
suspended - true if the job is suspended, false otherwise.public int getMaxNodes()
public void setMaxNodes(int maxNodes)
maxNodes - the number of nodes as an int value.public boolean isPending()
public void setPending(boolean pending)
pending - specifies whether the job is waiting to reach its scheduled execution date.public String getJobUuid()
public void setJobUuid(String jobUuid)
jobUuid - the uuid as a string.Copyright © 2005-2012 JPPF Team.