public class BatchServerInventoryView extends ServerInventoryView<Set<io.druid.timeline.DataSegment>> implements FilteredServerView
ServerView.BaseSegmentCallback, ServerView.CallbackAction, ServerView.SegmentCallback, ServerView.ServerCallback
Constructor and Description |
---|
BatchServerInventoryView(ZkPathsConfig zkPaths,
org.apache.curator.framework.CuratorFramework curator,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.google.common.base.Predicate<io.druid.timeline.DataSegment> defaultFilter) |
Modifier and Type | Method and Description |
---|---|
protected DruidServer |
addInnerInventory(DruidServer container,
String inventoryKey,
Set<io.druid.timeline.DataSegment> inventory) |
void |
registerSegmentCallback(Executor exec,
ServerView.SegmentCallback callback,
com.google.common.base.Predicate<io.druid.timeline.DataSegment> filter) |
protected DruidServer |
removeInnerInventory(DruidServer container,
String inventoryKey) |
protected DruidServer |
updateInnerInventory(DruidServer container,
String inventoryKey,
Set<io.druid.timeline.DataSegment> inventory) |
addSingleInventory, getInventory, getInventoryManagerConfig, getInventoryValue, isStarted, registerSegmentCallback, registerServerCallback, removeSingleInventory, runSegmentCallbacks, runServerCallbacks, start, stop
@Inject public BatchServerInventoryView(ZkPathsConfig zkPaths, org.apache.curator.framework.CuratorFramework curator, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.google.common.base.Predicate<io.druid.timeline.DataSegment> defaultFilter)
protected DruidServer addInnerInventory(DruidServer container, String inventoryKey, Set<io.druid.timeline.DataSegment> inventory)
addInnerInventory
in class ServerInventoryView<Set<io.druid.timeline.DataSegment>>
protected DruidServer updateInnerInventory(DruidServer container, String inventoryKey, Set<io.druid.timeline.DataSegment> inventory)
updateInnerInventory
in class ServerInventoryView<Set<io.druid.timeline.DataSegment>>
protected DruidServer removeInnerInventory(DruidServer container, String inventoryKey)
removeInnerInventory
in class ServerInventoryView<Set<io.druid.timeline.DataSegment>>
public void registerSegmentCallback(Executor exec, ServerView.SegmentCallback callback, com.google.common.base.Predicate<io.druid.timeline.DataSegment> filter)
registerSegmentCallback
in interface FilteredServerView
Copyright © 2011–2015. All rights reserved.