Class ZookeeperDomainOps
- java.lang.Object
-
- org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperDomainOps
-
- All Implemented Interfaces:
DomainOps
,InitializingBean
public class ZookeeperDomainOps extends Object implements DomainOps, InitializingBean
ImplementsDomainOps
via Apache Curator / Zookeeper.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.curator.framework.CuratorFramework
client
protected static String
DOMAIN_PATH
protected static Logger
LOG
protected static JsonMapper
MAPPER
protected DomainWatcher
watcher
-
Constructor Summary
Constructors Constructor Description ZookeeperDomainOps()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustPoolSize(String key, int poolMaxActive, int poolMinIdle)
void
afterPropertiesSet()
protected static String
buildDomainPath(String... parts)
void
changeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)
void
create(Domain domain)
void
delete(String key)
List<Domain>
list()
Domain
read(String key)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
MAPPER
protected static final JsonMapper MAPPER
-
DOMAIN_PATH
protected static final String DOMAIN_PATH
- See Also:
- Constant Field Values
-
client
@Autowired protected org.apache.curator.framework.CuratorFramework client
-
watcher
@Autowired(required=false) protected DomainWatcher watcher
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
changeAdminPassword
public void changeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)
- Specified by:
changeAdminPassword
in interfaceDomainOps
-
adjustPoolSize
public void adjustPoolSize(String key, int poolMaxActive, int poolMinIdle)
- Specified by:
adjustPoolSize
in interfaceDomainOps
-
-