Class PartitionStatus
- java.lang.Object
-
- io.camunda.zeebe.broker.system.management.PartitionStatus
-
public final class PartitionStatus extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetExportedPosition()ExporterPhasegetExporterPhase()LonggetProcessedPosition()LonggetProcessedPositionInSnapshot()RaftServer.RolegetRole()StringgetSnapshotId()StreamProcessor.PhasegetStreamProcessorPhase()static PartitionStatusofFollower(String snapshotId)static PartitionStatusofLeader(Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, long exportedPosition)
-
-
-
Method Detail
-
ofLeader
public static PartitionStatus ofLeader(Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, long exportedPosition)
-
ofFollower
public static PartitionStatus ofFollower(String snapshotId)
-
getRole
public RaftServer.Role getRole()
-
getProcessedPosition
public Long getProcessedPosition()
-
getSnapshotId
public String getSnapshotId()
-
getProcessedPositionInSnapshot
public Long getProcessedPositionInSnapshot()
-
getStreamProcessorPhase
public StreamProcessor.Phase getStreamProcessorPhase()
-
getExporterPhase
public ExporterPhase getExporterPhase()
-
getExportedPosition
public Long getExportedPosition()
-
-