Class AtomixLogStoragePartitionStep
- java.lang.Object
-
- io.camunda.zeebe.broker.system.partitions.impl.steps.AtomixLogStoragePartitionStep
-
- All Implemented Interfaces:
PartitionStep
public class AtomixLogStoragePartitionStep extends Object implements PartitionStep
-
-
Constructor Summary
Constructors Constructor Description AtomixLogStoragePartitionStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorFuture<Void>close(PartitionContext context)Perform tear-down actions to clear the partition and prepare for another one to be installed.StringgetName()ActorFuture<Void>open(long currentTerm, PartitionContext context)Performs some action required for the partition to function.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.camunda.zeebe.broker.system.partitions.PartitionStep
open
-
-
-
-
Method Detail
-
open
public ActorFuture<Void> open(long currentTerm, PartitionContext context)
Description copied from interface:PartitionStepPerforms some action required for the partition to function. This may include opening components (e.g., logstream), setting their values inPartitionContext, etc. The subsequent partition steps will only be opened after the returned future is completed.- Specified by:
openin interfacePartitionStep- Parameters:
currentTerm- the current term of the transitioncontext- the partition context- Returns:
- future
-
close
public ActorFuture<Void> close(PartitionContext context)
Description copied from interface:PartitionStepPerform tear-down actions to clear the partition and prepare for another one to be installed. This includes closing components, clearing their values fromPartitionContextso they may be garbage-collected, etc. The subsequent partition steps will only be closed after the returned future is completed.- Specified by:
closein interfacePartitionStep- Parameters:
context- the partition context- Returns:
- future
-
getName
public String getName()
- Specified by:
getNamein interfacePartitionStep- Returns:
- A log-friendly identification of the PartitionStep.
-
-