@Service public class CheckpointHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CheckpointHelper.CheckpointFilename |
| Constructor and Description |
|---|
CheckpointHelper() |
| Modifier and Type | Method and Description |
|---|---|
Collection<CheckpointHelper.CheckpointFilename> |
listCheckpoints(File dir) |
JobManager.Checkpoint |
load(CheckpointHelper.CheckpointFilename cf,
Payload.Outbound outbound) |
<T extends Serializable> |
loadAttachment(Job job,
String attachmentId) |
void |
save(JobManager.Checkpoint checkpoint) |
void |
saveAttachment(Serializable data,
Job job,
String attachmentId) |
public void save(JobManager.Checkpoint checkpoint) throws IOException
IOExceptionpublic void saveAttachment(Serializable data, Job job, String attachmentId) throws IOException
IOExceptionpublic JobManager.Checkpoint load(CheckpointHelper.CheckpointFilename cf, Payload.Outbound outbound) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic <T extends Serializable> T loadAttachment(Job job, String attachmentId) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Collection<CheckpointHelper.CheckpointFilename> listCheckpoints(File dir)
Copyright © 2017. All rights reserved.