Class ZookeeperDatacenterReadinessRepository
java.lang.Object
pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperBasedRepository
pl.allegro.tech.hermes.management.infrastructure.readiness.ZookeeperDatacenterReadinessRepository
- All Implemented Interfaces:
ReadinessRepository
public class ZookeeperDatacenterReadinessRepository
extends pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperBasedRepository
implements ReadinessRepository
-
Field Summary
Fields inherited from class pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperBasedRepository
paths -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperDatacenterReadinessRepository(org.apache.curator.framework.CuratorFramework curator, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths) -
Method Summary
Methods inherited from class pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperBasedRepository
childrenOf, create, create, createInTransaction, createRecursively, ensurePathExists, overwrite, overwrite, pathExists, readFrom, readFrom, readFrom, readFrom, readWithStatFrom, remove, touch
-
Constructor Details
-
ZookeeperDatacenterReadinessRepository
public ZookeeperDatacenterReadinessRepository(org.apache.curator.framework.CuratorFramework curator, com.fasterxml.jackson.databind.ObjectMapper mapper, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths)
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceReadinessRepository
-
setReadiness
public void setReadiness(boolean isReady) - Specified by:
setReadinessin interfaceReadinessRepository
-