public class SerializedFlowExecutionSnapshot extends FlowExecutionSnapshot implements Externalizable
SerializedFlowExecutionSnapshotFactory
.SerializedFlowExecutionSnapshotFactory
,
Serialized FormConstructor and Description |
---|
SerializedFlowExecutionSnapshot()
Default constructor necessary for
Externalizable custom serialization semantics. |
SerializedFlowExecutionSnapshot(FlowExecution flowExecution,
boolean compress)
Creates a new serialized flow execution snapshot.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isCompressed()
Returns whether or not the flow execution data in this snapshot is compressed.
|
void |
readExternal(ObjectInput in) |
FlowExecution |
unmarshal(ClassLoader classLoader)
Unmarshal the flow execution from this snapshot's data.
|
void |
writeExternal(ObjectOutput out) |
public SerializedFlowExecutionSnapshot()
Externalizable
custom serialization semantics. Should not be called by
application code.public SerializedFlowExecutionSnapshot(FlowExecution flowExecution, boolean compress) throws SnapshotCreationException
flowExecution
- the flow executioncompress
- whether or not to apply compression during snapshottingSnapshotCreationException
public boolean isCompressed()
public FlowExecution unmarshal(ClassLoader classLoader) throws SnapshotUnmarshalException
classLoader
- the classloader to use to resolve types during execution deserializationSnapshotUnmarshalException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException