@LifecycleStop public void stop() throws IOException { synchronized (started) { if (started.getAndSet(false)) { inventoryManager.stop(); } } }
@LifecycleStart public void start() throws Exception { synchronized (started) { if (!started.get()) { inventoryManager.start(); started.set(true); } } }
public InventoryManagerConfig getInventoryManagerConfig() { return inventoryManager.getConfig(); }
@Override public Iterable<DruidServer> getInventory() { return inventoryManager.getInventory(); }
@Override public DruidServer getInventoryValue(String containerKey) { return inventoryManager.getInventoryValue(containerKey); }