@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
IOException
public void saveAttachment(Serializable data, Job job, String attachmentId) throws IOException
IOException
public JobManager.Checkpoint load(CheckpointHelper.CheckpointFilename cf, Payload.Outbound outbound) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public <T extends Serializable> T loadAttachment(Job job, String attachmentId) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public Collection<CheckpointHelper.CheckpointFilename> listCheckpoints(File dir)
Copyright © 2019. All rights reserved.