Class CuratorInventoryManager<ContainerClass,InventoryClass>
- java.lang.Object
-
- org.apache.druid.curator.inventory.CuratorInventoryManager<ContainerClass,InventoryClass>
-
@Deprecated public class CuratorInventoryManager<ContainerClass,InventoryClass> extends Object
Deprecated.This class is deprecated. UseHttpServerInventoryViewfor segment discovery. An InventoryManager watches updates to inventory on Zookeeper (or some other discovery-like service publishing system). It is built up on two object types: containers and inventory objects. The logic of the InventoryManager just maintains a local cache of the containers and inventory it sees on ZK. It provides methods for getting at the container objects, which house the actual individual pieces of inventory. A Strategy is provided to the constructor of an Inventory manager, this strategy provides all of the object-specific logic to serialize, deserialize, compose and alter the container and inventory objects.
-
-
Constructor Summary
Constructors Constructor Description CuratorInventoryManager(org.apache.curator.framework.CuratorFramework curatorFramework, InventoryManagerConfig config, ExecutorService exec, CuratorInventoryManagerStrategy<ContainerClass,InventoryClass> strategy)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InventoryManagerConfiggetConfig()Deprecated.Collection<ContainerClass>getInventory()Deprecated.ContainerClassgetInventoryValue(String containerKey)Deprecated.voidstart()Deprecated.voidstop()Deprecated.
-
-
-
Constructor Detail
-
CuratorInventoryManager
public CuratorInventoryManager(org.apache.curator.framework.CuratorFramework curatorFramework, InventoryManagerConfig config, ExecutorService exec, CuratorInventoryManagerStrategy<ContainerClass,InventoryClass> strategy)Deprecated.
-
-
Method Detail
-
stop
public void stop() throws IOExceptionDeprecated.- Throws:
IOException
-
getConfig
public InventoryManagerConfig getConfig()
Deprecated.
-
getInventoryValue
@Nullable public ContainerClass getInventoryValue(String containerKey)
Deprecated.
-
getInventory
public Collection<ContainerClass> getInventory()
Deprecated.
-
-