Class LogStoragePartitionTransitionStep
java.lang.Object
io.camunda.zeebe.broker.system.partitions.impl.steps.LogStoragePartitionTransitionStep
- All Implemented Interfaces:
PartitionTransitionStep
public final class LogStoragePartitionTransitionStep
extends Object
implements PartitionTransitionStep
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()prepareTransition(PartitionTransitionContext context, long term, RaftServer.Role targetRole) This method is a hook to prepare steps for a pending transition.transitionTo(PartitionTransitionContext context, long term, RaftServer.Role targetRole) This method is called to start the actual transitionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.broker.system.partitions.PartitionTransitionStep
onNewRaftRole
-
Constructor Details
-
LogStoragePartitionTransitionStep
public LogStoragePartitionTransitionStep()
-
-
Method Details
-
prepareTransition
public ActorFuture<Void> prepareTransition(PartitionTransitionContext context, long term, RaftServer.Role targetRole) Description copied from interface:PartitionTransitionStepThis method is a hook to prepare steps for a pending transition. This method is deprecated because eventually we want ro remove it. Once removed, all steps need to take the necessary preparatory steps as part ofnewRaftRole(...).For a time being, however, this method will be supported. Steps will be called in reverse order and are expected to take any steps to assume a neutral stance
- Specified by:
prepareTransitionin interfacePartitionTransitionStep
-
transitionTo
public ActorFuture<Void> transitionTo(PartitionTransitionContext context, long term, RaftServer.Role targetRole) Description copied from interface:PartitionTransitionStepThis method is called to start the actual transition- Specified by:
transitionToin interfacePartitionTransitionStep
-
getName
- Specified by:
getNamein interfacePartitionTransitionStep- Returns:
- A log-friendly identification of the PartitionTransitionStep.
-