Package org.apache.pinot.common.messages
Class SegmentReloadMessage
- java.lang.Object
-
- org.apache.helix.HelixProperty
-
- org.apache.helix.model.Message
-
- org.apache.pinot.common.messages.SegmentReloadMessage
-
public class SegmentReloadMessage extends org.apache.helix.model.MessageThis Helix message is sent from the controller to the servers when a request is received to reload an existing segment.
-
-
Field Summary
Fields Modifier and Type Field Description static StringRELOAD_SEGMENT_MSG_SUB_TYPE
-
Constructor Summary
Constructors Constructor Description SegmentReloadMessage(String tableNameWithType, boolean forceDownload)This msg asks server to reload all segments in the given a table.SegmentReloadMessage(String tableNameWithType, List<String> segmentNames, boolean forceDownload)This msg asks server to reload a list of specified segments in the given a table.SegmentReloadMessage(org.apache.helix.model.Message message)
-
Method Summary
Modifier and Type Method Description List<String>getSegmentList()booleanshouldForceDownload()-
Methods inherited from class org.apache.helix.model.Message
addPartitionName, attachRelayMessage, createReplyMessage, getAttribute, getBucketSize, getCompletionDueTimeStamp, getCorrelationId, getCreateTimeStamp, getDebug, getExecuteStartTimeStamp, getExecutionSessionId, getExecutionTimeout, getExpiryPeriod, getFromState, getGeneration, getKey, getMsgId, getMsgSrc, getMsgState, getMsgSubType, getMsgType, getPartitionName, getPartitionNames, getReadTimeStamp, getRelayMessage, getRelayMessages, getRelaySrcHost, getRelayTime, getResourceGroupName, getResourceName, getResourceTag, getResultMap, getRetryCount, getSrcClusterName, getSrcInstanceType, getSrcSessionId, getStateModelDef, getStateModelFactoryName, getTgtName, getTgtSessionId, getToState, hasRelayMessages, isControlerMsg, isExpired, isParticipantStatusChangeType, isRelayMessage, isValid, setAttribute, setBucketSize, setCompletionDueTimeStamp, setCorrelationId, setCreateTimeStamp, setExecuteSessionId, setExecuteStartTimeStamp, setExecutionTimeout, setExpectedSessionId, setExpired, setExpiryPeriod, setFromState, setMsgId, setMsgState, setMsgSubType, setPartitionName, setReadTimeStamp, setRelayTime, setResourceGroupName, setResourceName, setResourceTag, setResultMap, setRetryCount, setSrcClusterName, setSrcInstanceType, setSrcName, setSrcSessionId, setStateModelDef, setStateModelFactoryName, setTgtName, setTgtSessionId, setToState
-
-
-
-
Field Detail
-
RELOAD_SEGMENT_MSG_SUB_TYPE
public static final String RELOAD_SEGMENT_MSG_SUB_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SegmentReloadMessage
public SegmentReloadMessage(String tableNameWithType, boolean forceDownload)
This msg asks server to reload all segments in the given a table.- Parameters:
tableNameWithType- the table where the segments are from.forceDownload- whether to download segments from deep store when reloading.
-
SegmentReloadMessage
public SegmentReloadMessage(String tableNameWithType, @Nullable List<String> segmentNames, boolean forceDownload)
This msg asks server to reload a list of specified segments in the given a table.- Parameters:
tableNameWithType- the table where the segments are from.segmentNames- a list of specified segments to reload, or null for all segments.forceDownload- whether to download segments from deep store when reloading.
-
SegmentReloadMessage
public SegmentReloadMessage(org.apache.helix.model.Message message)
-
-