Class 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 Detail

      • StoreStatusMessage

        public StoreStatusMessage​(java.lang.String kafkaTopic,
                                  int partitionId,
                                  java.lang.String instanceId,
                                  ExecutionStatus status)
      • StoreStatusMessage

        public StoreStatusMessage​(java.util.Map<java.lang.String,​java.lang.String> fields)
        Override the constructor of StatusMessage, build description from given fiedls.
    • Method Detail

      • getPartitionId

        public int getPartitionId()
      • getKafkaTopic

        public java.lang.String getKafkaTopic()
      • getInstanceId

        public java.lang.String getInstanceId()
      • getOffset

        public long getOffset()
      • setOffset

        public void setOffset​(long offset)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getFields

        public java.util.Map<java.lang.String,​java.lang.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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object