Package com.linkedin.venice.status
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 theHelixStatusMessageChannel
. 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.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.status.StatusMessage
messageId
-
-
Constructor Summary
Constructors Constructor Description StoreStatusMessage(java.lang.String kafkaTopic, int partitionId, java.lang.String instanceId, ExecutionStatus status)
StoreStatusMessage(java.util.Map<java.lang.String,java.lang.String> fields)
Override the constructor ofStatusMessage
, build description from given fiedls.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDescription()
java.util.Map<java.lang.String,java.lang.String>
getFields()
Get K-V paris of all the fields in message.java.lang.String
getInstanceId()
java.lang.String
getKafkaTopic()
long
getOffset()
int
getPartitionId()
ExecutionStatus
getStatus()
int
hashCode()
void
setDescription(java.lang.String description)
void
setOffset(long offset)
java.lang.String
toString()
-
Methods inherited from class com.linkedin.venice.status.StatusMessage
generateMessageId, getMessageId, getOptionalField, getRequiredField
-
-
-
-
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 ofStatusMessage
, build description from given fiedls.
-
-
Method Detail
-
getPartitionId
public int getPartitionId()
-
getKafkaTopic
public java.lang.String getKafkaTopic()
-
getInstanceId
public java.lang.String getInstanceId()
-
getStatus
public ExecutionStatus getStatus()
-
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 classStatusMessage
- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-