Class SegmentReloadMessage


  • public class SegmentReloadMessage
    extends org.apache.helix.model.Message
    This Helix message is sent from the controller to the servers when a request is received to reload an existing segment.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.helix.model.Message

        org.apache.helix.model.Message.Attributes, org.apache.helix.model.Message.MessageState, org.apache.helix.model.Message.MessageType
      • Nested classes/interfaces inherited from class org.apache.helix.HelixProperty

        org.apache.helix.HelixProperty.HelixPropertyAttribute, org.apache.helix.HelixProperty.Stat
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String RELOAD_SEGMENT_MSG_SUB_TYPE  
      • Fields inherited from class org.apache.helix.model.Message

        CREATE_TIME_COMPARATOR, MESSAGE_EXPECT_COMPLETION_PERIOD, RELAY_MESSAGE_DEFAULT_EXPIRY
      • Fields inherited from class org.apache.helix.HelixProperty

        _record
    • 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()  
      boolean shouldForceDownload()  
      • 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
      • Methods inherited from class org.apache.helix.HelixProperty

        convertListToMap, convertToList, convertToTypedInstance, convertToTypedList, equals, getBatchMessageMode, getId, getRecord, getStat, serialize, setBatchMessageMode, setDeltaList, setStat, toString
    • 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)
    • Method Detail

      • shouldForceDownload

        public boolean shouldForceDownload()
      • getSegmentList

        @Nullable
        public List<String> getSegmentList()