Package com.linkedin.venice.status
Class StatusMessage
java.lang.Object
com.linkedin.venice.status.StatusMessage
- Direct Known Subclasses:
KillOfflinePushMessage,StoreStatusMessage
Venice control message which is used to transfer command and status between storage node and controller, so that
controller could control the whole cluster and make the global decision.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor, only used in constructor of sub-class.protectedStatusMessage(Map<String, String> fields) Create message from given fields map. -
Method Summary
-
Field Details
-
messageId
-
-
Constructor Details
-
StatusMessage
Create message from given fields map. Should be override in each sub-class.- Parameters:
fields-
-
StatusMessage
protected StatusMessage()Default constructor, only used in constructor of sub-class. So visible level is protected but not public.
-
-
Method Details
-
getMessageId
Get Id of message.- Returns:
-
getFields
Get K-V paris of all the fields in message.- Returns:
-
getRequiredField
-
getOptionalField
-
generateMessageId
-