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 TypeMethodDescriptionvoidbroadcastSegment(DataSegment segment) Broadcasts the given segment to all servers that are broadcast targets.voiddeleteSegment(DataSegment segment) Marks the given segment as unused.voidreplicateSegment(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
Queues load or drop of replicas of the given segment to achieve the target replication level on all historical tiers. -
deleteSegment
Marks the given segment as unused. Unused segments are eventually unloaded from all servers and deleted from metadata as well as deep storage. -
broadcastSegment
Broadcasts the given segment to all servers that are broadcast targets.
-