Class CuratorInventoryManager<ContainerClass,InventoryClass>
java.lang.Object
org.apache.druid.curator.inventory.CuratorInventoryManager<ContainerClass,InventoryClass>
Deprecated.
This class is deprecated. Use
HttpServerInventoryView for 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
ConstructorsConstructorDescriptionCuratorInventoryManager(org.apache.curator.framework.CuratorFramework curatorFramework, InventoryManagerConfig config, ExecutorService exec, CuratorInventoryManagerStrategy<ContainerClass, InventoryClass> strategy) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.getInventoryValue(String containerKey) Deprecated.voidstart()Deprecated.voidstop()Deprecated.
-
Constructor Details
-
CuratorInventoryManager
public CuratorInventoryManager(org.apache.curator.framework.CuratorFramework curatorFramework, InventoryManagerConfig config, ExecutorService exec, CuratorInventoryManagerStrategy<ContainerClass, InventoryClass> strategy) Deprecated.
-
-
Method Details
-
start
Deprecated.- Throws:
Exception
-
stop
Deprecated.- Throws:
IOException
-
getConfig
Deprecated. -
getInventoryValue
Deprecated. -
getInventory
Deprecated.
-