public class SingleServerInventoryView extends ServerInventoryView<io.druid.timeline.DataSegment> implements FilteredServerView
ServerView.BaseSegmentCallback, ServerView.CallbackAction, ServerView.SegmentCallback, ServerView.ServerCallback
Constructor and Description |
---|
SingleServerInventoryView(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,
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,
io.druid.timeline.DataSegment inventory) |
addSingleInventory, getInventory, getInventoryManagerConfig, getInventoryValue, isStarted, registerSegmentCallback, registerServerCallback, removeSingleInventory, runSegmentCallbacks, runServerCallbacks, start, stop
@Inject public SingleServerInventoryView(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, io.druid.timeline.DataSegment inventory)
addInnerInventory
in class ServerInventoryView<io.druid.timeline.DataSegment>
protected DruidServer updateInnerInventory(DruidServer container, String inventoryKey, io.druid.timeline.DataSegment inventory)
updateInnerInventory
in class ServerInventoryView<io.druid.timeline.DataSegment>
protected DruidServer removeInnerInventory(DruidServer container, String inventoryKey)
removeInnerInventory
in class ServerInventoryView<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.