Package org.jppf.job.persistence
Interface PersistenceInfo
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PersistenceInfoImpl
This interface represents the objects that are persisted in a job persistence store.
- Since:
- 6.0
- Author:
- Laurent Cohen
-
Method Summary
-
Method Details
-
getJobUuid
String getJobUuid()Get the job uuid.- Returns:
- the uuid of the related job as a string.
-
getJob
JPPFDistributedJob getJob()Get the related job information.- Returns:
- a
JPPFDistributedJobinstance, ornullif the job is not loaded.
-
getType
PersistenceObjectType getType()Get the type of persisted object.- Returns:
- one of the possible values of the
PersistenceObjectTypeenum.
-
getPosition
int getPosition()Get the position of the task in the job.- Returns:
- the position of the task in the job, starting at
0, or-1if the persisted object is neither atasknor atask result.
-
getInputStream
Get an input stream for the persisted object.- Returns:
- an
InputStreaminstance, ornullif the object has not yet been loaded. - Throws:
Exception- if any error occurs.
-
getSize
int getSize()Get the size in bytes of the persisted object.- Returns:
- the size of the persisted data, or
-1if the size is not known.
-