Record Class PartitionStatus

java.lang.Object
java.lang.Record
io.camunda.zeebe.broker.system.management.PartitionStatus

public record PartitionStatus(RaftServer.Role role, Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, Long exportedPosition) extends Record
  • Constructor Details

    • PartitionStatus

      public PartitionStatus(RaftServer.Role role, Long processedPosition, String snapshotId, Long processedPositionInSnapshot, StreamProcessor.Phase streamProcessorPhase, ExporterPhase exporterPhase, Long exportedPosition)
      Creates an instance of a PartitionStatus record class.
      Parameters:
      role - the value for the role record component
      processedPosition - the value for the processedPosition record component
      snapshotId - the value for the snapshotId record component
      processedPositionInSnapshot - the value for the processedPositionInSnapshot record component
      streamProcessorPhase - the value for the streamProcessorPhase record component
      exporterPhase - the value for the exporterPhase record component
      exportedPosition - the value for the exportedPosition record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • role

      public RaftServer.Role role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • processedPosition

      public Long processedPosition()
      Returns the value of the processedPosition record component.
      Returns:
      the value of the processedPosition record component
    • snapshotId

      public String snapshotId()
      Returns the value of the snapshotId record component.
      Returns:
      the value of the snapshotId record component
    • processedPositionInSnapshot

      public Long processedPositionInSnapshot()
      Returns the value of the processedPositionInSnapshot record component.
      Returns:
      the value of the processedPositionInSnapshot record component
    • streamProcessorPhase

      public StreamProcessor.Phase streamProcessorPhase()
      Returns the value of the streamProcessorPhase record component.
      Returns:
      the value of the streamProcessorPhase record component
    • exporterPhase

      public ExporterPhase exporterPhase()
      Returns the value of the exporterPhase record component.
      Returns:
      the value of the exporterPhase record component
    • exportedPosition

      public Long exportedPosition()
      Returns the value of the exportedPosition record component.
      Returns:
      the value of the exportedPosition record component