Package org.jppf.job.persistence
Interface PersistedJobsManagerMBean
public interface PersistedJobsManagerMBean
This MBean manages jobs persisted by the driver.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteLoadRequest(long requestId) Get the specified object of the already-loaded persisted job with the specified uuid.deletePersistedJobs(JobSelector selector) Delete all the persisted jobs that match the selector from the persistence store.getPersistedJobObject(long requestId, String uuid, PersistenceObjectType type, int position) Get the specified object of the already-loaded persisted job with the specified uuid.getPersistedJobObject(String uuid, PersistenceObjectType type, int position) Get the specified object of the persisted job with the specified uuid.int[][]Get the positions of all tasks and task results for the specified persisted job.getPersistedJobUuids(JobSelector selector) Get the uuids of all persisted jobs that match the selector.booleanisJobComplete(String uuid) Determines whether the job has completed and all execution results are available.booleanisJobersisted(String uuid) Determine whether the specified job is persisted.longrequestLoad(Collection<PersistenceInfo> infos) Request loading of the specified job's elements.
-
Field Details
-
MBEAN_NAME
Name of the job persistence MBean.- See Also:
-
-
Method Details
-
getPersistedJobUuids
Get the uuids of all persisted jobs that match the selector.- Parameters:
selector- used to filter the jobs.- Returns:
- a list of job uuids, possiblu empty if no job matches the selector.
- Throws:
Exception- if any error occurs.
-
getPersistedJobObject
Object getPersistedJobObject(String uuid, PersistenceObjectType type, int position) throws Exception Get the specified object of the persisted job with the specified uuid.- Parameters:
uuid- the uuid of the persisted job to lookup.type- the type of object to lookup.position- the position of the object in the job, if a position applies.- Returns:
- the object in serialized format.
- Throws:
Exception- if any error occurs.
-
getPersistedJobPositions
Get the positions of all tasks and task results for the specified persisted job.- Parameters:
uuid- the uuid of the persisted job to lookup.- Returns:
- an array of int arrays, where the first array represents the positions of all tasks before execution, and the second array represents the positions of all task results. The second array may be empty if no task result was received.
- Throws:
Exception- if any error occurs.
-
deletePersistedJobs
Delete all the persisted jobs that match the selector from the persistence store.- Parameters:
selector- used to filter the jobs.- Returns:
- a list of actually deleted job uuids, possibly empty if no job matches the selector.
- Throws:
Exception- if any error occurs.
-
isJobersisted
Determine whether the specified job is persisted.- Parameters:
uuid- the uuid of the job to check.- Returns:
trueif the job is persisted,falseotherwise.- Throws:
Exception- if any error occurs while accessing the persistence store.
-
isJobComplete
Determines whether the job has completed and all execution results are available.- Parameters:
uuid- the UUID of the jonb to check.- Returns:
trueif the job has completed,falseotherwise.- Throws:
Exception- if any error occurs while communicating with the driver.
-
requestLoad
Request loading of the specified job's elements.- Parameters:
infos- information on the elements to load.- Returns:
- a load request id, to reuse in later method calls.
- Throws:
Exception- if any error occurs.
-
getPersistedJobObject
Object getPersistedJobObject(long requestId, String uuid, PersistenceObjectType type, int position) throws Exception Get the specified object of the already-loaded persisted job with the specified uuid.- Parameters:
requestId- the id of the prior load request.uuid- the uuid of the persisted job to lookup.type- the type of object to lookup.position- the position of the object in the job, if a position applies.- Returns:
- the object in serialized format.
- Throws:
Exception- if any error occurs.
-
deleteLoadRequest
Get the specified object of the already-loaded persisted job with the specified uuid.- Parameters:
requestId- the id of the prior load request to delete.- Returns:
trueif the delete succeeded,falseotherwise.- Throws:
Exception- if any error occurs.
-