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