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 class
CheckpointHelper.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.Checkpoint
load(CheckpointHelper.CheckpointFilename cf, Payload.Outbound outbound)
<T extends Serializable>
TloadAttachment(Job job, String attachmentId)
void
save(JobManager.Checkpoint checkpoint)
void
saveAttachment(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:
IOException
ClassNotFoundException
-
loadAttachment
public <T extends Serializable> T loadAttachment(Job job, String attachmentId) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
listCheckpoints
public Collection<CheckpointHelper.CheckpointFilename> listCheckpoints(File dir)
-
-