J - the type of job.public abstract class AbstractJPPFJob<J extends AbstractJPPFJob<J>> extends Object implements Serializable, org.jppf.node.protocol.JPPFDistributedJob
| Constructor and Description |
|---|
AbstractJPPFJob()
Default constructor, creates a blocking job with no data provider, default SLA values and a priority of 0.
|
AbstractJPPFJob(String jobUuid)
Default constructor, creates a blocking job with no data provider, default SLA values and a priority of 0.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
executedTaskCount()
Get the count of the tasks in this job that haven completed.
|
org.jppf.node.protocol.JobClientSLA |
getClientSLA()
Get the job SLA for the client side.
|
org.jppf.node.protocol.DataProvider |
getDataProvider()
Get the container for data shared between tasks.
|
org.jppf.node.protocol.JobMetadata |
getMetadata() |
String |
getName() |
JobResults |
getResults()
Get the object that holds the results of executed tasks.
|
org.jppf.node.protocol.JobSLA |
getSLA() |
JobStatus |
getStatus() |
int |
getTaskCount() |
String |
getUuid() |
int |
hashCode() |
boolean |
isBlocking()
Deprecated.
a job should be submittable either synchronously or asynchronously, regardless of its state.
The submission mode is the user's choice at the time of submission, using one of
JPPFClient.submit() or JPPFClient.submitAsync(). |
J |
setBlocking(boolean blocking)
Deprecated.
a job should be submittable either synchronously or asynchronously, regardless of its state.
The submission mode is the user's choice at the time of submission, using one of
JPPFClient.submit() or JPPFClient.submitAsync(). |
J |
setDataProvider(org.jppf.node.protocol.DataProvider dataProvider)
Set the container for data shared between tasks.
|
J |
setName(String name)
Set the user-defined display name for this job.
|
void |
setStatus(JobStatus newStatus) |
String |
toString() |
int |
unexecutedTaskCount()
Get the count of the tasks in this job that haven't yet been executed.
|
public AbstractJPPFJob()
public AbstractJPPFJob(String jobUuid)
jobUuid - the uuid to assign to this job.public String getUuid()
getUuid in interface org.jppf.node.protocol.JPPFDistributedJobpublic String getName()
getName in interface org.jppf.node.protocol.JPPFDistributedJobpublic J setName(String name)
name - the display name as a string.public int getTaskCount()
getTaskCount in interface org.jppf.node.protocol.JPPFDistributedJobpublic JobResults getResults()
JobResults instance.public int executedTaskCount()
public int unexecutedTaskCount()
public org.jppf.node.protocol.DataProvider getDataProvider()
DataProvider instance.public J setDataProvider(org.jppf.node.protocol.DataProvider dataProvider)
dataProvider - a DataProvider instance.public boolean isBlocking()
JPPFClient.submit() or JPPFClient.submitAsync().public J setBlocking(boolean blocking)
JPPFClient.submit() or JPPFClient.submitAsync().blocking - true if the execution is blocking, false otherwise.public org.jppf.node.protocol.JobSLA getSLA()
getSLA in interface org.jppf.node.protocol.JPPFDistributedJobpublic org.jppf.node.protocol.JobClientSLA getClientSLA()
JobSLA.public org.jppf.node.protocol.JobMetadata getMetadata()
getMetadata in interface org.jppf.node.protocol.JPPFDistributedJobpublic JobStatus getStatus()
public void setStatus(JobStatus newStatus)
Copyright © 2005-2019 JPPF Team.