|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.job.JobInformation
public class JobInformation
Instances of this class group tasks from the same client together, so they are sent to the same node,
avoiding unnecessary transport overhead.
The goal is to provide a performance enhancement through an adaptive bundling of tasks originating from the same client.
The bundle size is computed dynamically, depending on the number of nodes connected to the server, and other factors.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
int |
getInitialTaskCount()
Get the initial task count of this bundle. |
String |
getJobId()
Get the user-defined identifier 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)
Set the user-defined identifier 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 - tne number of tasks in thsi 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 Detail |
|---|
public String getJobId()
public void setJobId(String id)
id - the id 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.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||