public class HollowUpdatePlanner
extends java.lang.Object
HollowBlobRetriever
to create a HollowUpdatePlan
.Constructor and Description |
---|
HollowUpdatePlanner(HollowBlobRetriever blobRetriever)
Deprecated.
|
HollowUpdatePlanner(HollowConsumer.BlobRetriever blobRetriever) |
HollowUpdatePlanner(HollowConsumer.BlobRetriever transitionCreator,
HollowConsumer.DoubleSnapshotConfig doubleSnapshotConfig) |
Modifier and Type | Method and Description |
---|---|
HollowUpdatePlan |
planInitializingUpdate(long desiredVersion) |
HollowUpdatePlan |
planUpdate(long currentVersion,
long desiredVersion,
boolean allowSnapshot) |
@Deprecated public HollowUpdatePlanner(HollowBlobRetriever blobRetriever)
public HollowUpdatePlanner(HollowConsumer.BlobRetriever blobRetriever)
public HollowUpdatePlanner(HollowConsumer.BlobRetriever transitionCreator, HollowConsumer.DoubleSnapshotConfig doubleSnapshotConfig)
public HollowUpdatePlan planInitializingUpdate(long desiredVersion) throws java.lang.Exception
desiredVersion
- - The version to which the hollow state engine should be updated once the resultant steps are applied.java.lang.Exception
- if the plan cannot be initializedpublic HollowUpdatePlan planUpdate(long currentVersion, long desiredVersion, boolean allowSnapshot) throws java.lang.Exception
currentVersion
- - The current version of the hollow state engine, or HollowConstants.VERSION_NONE if not yet initializeddesiredVersion
- - The version to which the hollow state engine should be updated once the resultant steps are applied.allowSnapshot
- - Allow a snapshot plan to be created if the destination version is not reachablejava.lang.Exception
- if the plan cannot be updated