Package com.sun.enterprise.v3.admin
Class CheckpointHelper
- java.lang.Object
-
- com.sun.enterprise.v3.admin.CheckpointHelper
-
@Service public class CheckpointHelper extends Object
This class is starting point for persistent CheckpointHelper, and currently only persists and restores AdminCommandContext with payloads in separate files.- Author:
- Andriy Zhdanov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckpointHelper.CheckpointFilename
-
Constructor Summary
Constructors Constructor Description CheckpointHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<CheckpointHelper.CheckpointFilename>listCheckpoints(File dir)JobManager.Checkpointload(CheckpointHelper.CheckpointFilename cf, Payload.Outbound outbound)<T extends Serializable>
TloadAttachment(Job job, String attachmentId)voidsave(JobManager.Checkpoint checkpoint)voidsaveAttachment(Serializable data, Job job, String attachmentId)
-
-
-
Method Detail
-
save
public void save(JobManager.Checkpoint checkpoint) throws IOException
- Throws:
IOException
-
saveAttachment
public void saveAttachment(Serializable data, Job job, String attachmentId) throws IOException
- Throws:
IOException
-
load
public JobManager.Checkpoint load(CheckpointHelper.CheckpointFilename cf, Payload.Outbound outbound) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
loadAttachment
public <T extends Serializable> T loadAttachment(Job job, String attachmentId) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
listCheckpoints
public Collection<CheckpointHelper.CheckpointFilename> listCheckpoints(File dir)
-
-