Class ZookeeperServiceOps
- java.lang.Object
-
- org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperServiceOps
-
- All Implemented Interfaces:
ServiceOps
public class ZookeeperServiceOps extends Object implements ServiceOps
ImplementsServiceOpsvia Apache Curator / Zookeeper.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.curator.framework.CuratorFrameworkclientprotected static LoggerLOGprotected static JsonMapperMAPPERprotected static StringSERVICE_PATH
-
Constructor Summary
Constructors Constructor Description ZookeeperServiceOps()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringbuildServicePath(NetworkService.Type serviceType, String... parts)NetworkServiceget(NetworkService.Type serviceType)Returns the service instance to invoke, for the given type.List<NetworkService>list(NetworkService.Type serviceType)voidregister(NetworkService service)voidunregister(NetworkService service)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
MAPPER
protected static final JsonMapper MAPPER
-
SERVICE_PATH
protected static final String SERVICE_PATH
- See Also:
- Constant Field Values
-
client
@Autowired protected org.apache.curator.framework.CuratorFramework client
-
-
Method Detail
-
buildServicePath
protected static String buildServicePath(NetworkService.Type serviceType, String... parts)
-
register
public void register(NetworkService service)
- Specified by:
registerin interfaceServiceOps
-
unregister
public void unregister(NetworkService service)
- Specified by:
unregisterin interfaceServiceOps
-
list
public List<NetworkService> list(NetworkService.Type serviceType)
- Specified by:
listin interfaceServiceOps
-
get
public NetworkService get(NetworkService.Type serviceType)
Description copied from interface:ServiceOpsReturns the service instance to invoke, for the given type.- Specified by:
getin interfaceServiceOps- Parameters:
serviceType- service type- Returns:
- service instance to invoke, for the given type
-
-