Interface SegmentActionHandler

All Known Implementing Classes:
StrategicSegmentAssigner

public interface SegmentActionHandler
Performs various actions on a given segment. Used by Rules to load, drop, broadcast or delete segments.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Broadcasts the given segment to all servers that are broadcast targets.
    void
    Marks the given segment as unused.
    void
    replicateSegment(DataSegment segment, Map<String,Integer> tierToReplicaCount)
    Queues load or drop of replicas of the given segment to achieve the target replication level on all historical tiers.
  • Method Details

    • replicateSegment

      void replicateSegment(DataSegment segment, Map<String,Integer> tierToReplicaCount)
      Queues load or drop of replicas of the given segment to achieve the target replication level on all historical tiers.
    • deleteSegment

      void deleteSegment(DataSegment segment)
      Marks the given segment as unused. Unused segments are eventually unloaded from all servers and deleted from metadata as well as deep storage.
    • broadcastSegment

      void broadcastSegment(DataSegment segment)
      Broadcasts the given segment to all servers that are broadcast targets.