Interface SegmentActionHandler
-
- All Known Implementing Classes:
StrategicSegmentAssigner
public interface SegmentActionHandlerPerforms various actions on a given segment. Used byRules to load, drop, broadcast or delete segments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbroadcastSegment(org.apache.druid.timeline.DataSegment segment)Broadcasts the given segment to all servers that are broadcast targets.voiddeleteSegment(org.apache.druid.timeline.DataSegment segment)Marks the given segment as unused.voidreplicateSegment(org.apache.druid.timeline.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 Detail
-
replicateSegment
void replicateSegment(org.apache.druid.timeline.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(org.apache.druid.timeline.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(org.apache.druid.timeline.DataSegment segment)
Broadcasts the given segment to all servers that are broadcast targets.
-
-