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
ImplementsDomainOpsvia Apache Curator / Zookeeper.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.curator.framework.CuratorFrameworkclientprotected static StringDOMAIN_PATHprotected static LoggerLOGprotected static JsonMapperMAPPERprotected DomainWatcherwatcher
-
Constructor Summary
Constructors Constructor Description ZookeeperDomainOps()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustPoolSize(String key, int poolMaxActive, int poolMinIdle)voidafterPropertiesSet()protected static StringbuildDomainPath(String... parts)voidchangeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)voidcreate(Domain domain)voiddelete(String key)List<Domain>list()Domainread(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:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
changeAdminPassword
public void changeAdminPassword(String key, String password, CipherAlgorithm cipherAlgorithm)
- Specified by:
changeAdminPasswordin interfaceDomainOps
-
adjustPoolSize
public void adjustPoolSize(String key, int poolMaxActive, int poolMinIdle)
- Specified by:
adjustPoolSizein interfaceDomainOps
-
-