public class JPPFDriverJobPersistence extends Object
JPPFClient.
The communication with the driver is performed via JMX, thus a working JMX connection to the driver must be provided in the constructor.
| Constructor and Description |
|---|
JPPFDriverJobPersistence(org.jppf.management.JMXDriverConnectionWrapper jmx)
Initialize this persisted job manager with the specified driver JMX connection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteJob(String uuid)
Delete the persisted job with the specified uuid.
|
List<String> |
deleteJobs(org.jppf.job.JobSelector selector)
Delete the persisted jobs that match the provided job selector.
|
org.jppf.node.protocol.JPPFDistributedJob |
getJobDescription(String uuid)
Get the description of the job with the specified uuid.
|
boolean |
isJobComplete(String uuid)
Determines whether the job has completed and all execution results are available.
|
List<String> |
listJobs(org.jppf.job.JobSelector selector)
List the persisted jobs that match the provided job selector.
|
JPPFJob |
retrieveJob(String uuid)
Retieve and rebuild the persisted job with the specified uuid.
|
public JPPFDriverJobPersistence(org.jppf.management.JMXDriverConnectionWrapper jmx)
jmx - a JMX connection wrapper to a JPPF driver.IllegalStateException - if the connection to the driver isn't working for any reason. The actual exception is set as root cause.public List<String> listJobs(org.jppf.job.JobSelector selector) throws Exception
selector - the selector used to filter persisted jobs, a null selector is equivalent to JobSelector.ALL_JOBS.Exception - if any error occurs while communicating with the driver.public boolean deleteJob(String uuid) throws Exception
deleteJobs(new JobUuidSelector(uuid)).uuid - the UUID of the job to delete.true if the job was successfully deleted, false.otherwise.Exception - if any error occurs while communicating with the driver.public List<String> deleteJobs(org.jppf.job.JobSelector selector) throws Exception
selector - the selector used to filter persisted jobs, a null selector is equivalent to JobSelector.ALL_JOBS.Exception - if any error occurs while communicating with the driver.public JPPFJob retrieveJob(String uuid) throws Exception
public org.jppf.node.protocol.JPPFDistributedJob getJobDescription(String uuid) throws Exception
uuid - the uuid of the job to retrieve.JPPFDistributedJob instance.Exception - if any error occurs while communicating with the driver.public boolean isJobComplete(String uuid) throws Exception
uuid - the UUID of the jonb to check.true if the job has completed, false otherwise.Exception - if any error occurs while communicating with the driver.Copyright © 2005-2019 JPPF Team.