Class StoreStatusMessage

java.lang.Object
com.linkedin.venice.status.StatusMessage
com.linkedin.venice.status.StoreStatusMessage

public class StoreStatusMessage extends StatusMessage
Control description used to notify controller that the status of Offline push in Storage node. DO NOT CHANGE THE PACKAGE OR CLASS NAME. The class name is used by the HelixStatusMessageChannel. When the class name is updated and if the Controller and Storage Node is not updated at the same time, one can't parse the message sent by the other as they embed the name in the message.
  • Constructor Details

    • StoreStatusMessage

      public StoreStatusMessage(String kafkaTopic, int partitionId, String instanceId, ExecutionStatus status)
    • StoreStatusMessage

      public StoreStatusMessage(Map<String,String> fields)
      Override the constructor of StatusMessage, build description from given fiedls.
  • Method Details

    • getPartitionId

      public int getPartitionId()
    • getKafkaTopic

      public String getKafkaTopic()
    • getInstanceId

      public String getInstanceId()
    • getStatus

      public ExecutionStatus getStatus()
    • getOffset

      public long getOffset()
    • setOffset

      public void setOffset(long offset)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getFields

      public Map<String,String> getFields()
      Description copied from class: StatusMessage
      Get K-V paris of all the fields in message.
      Overrides:
      getFields in class StatusMessage
      Returns:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object