Class ZookeeperServiceOps
- java.lang.Object
-
- org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperServiceOps
-
- All Implemented Interfaces:
ServiceOps
public class ZookeeperServiceOps extends Object implements ServiceOps
ImplementsServiceOps
via Apache Curator / Zookeeper.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.curator.framework.CuratorFramework
client
protected static Logger
LOG
protected static JsonMapper
MAPPER
protected static String
SERVICE_PATH
-
Constructor Summary
Constructors Constructor Description ZookeeperServiceOps()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
buildServicePath(NetworkService.Type serviceType, String... parts)
NetworkService
get(NetworkService.Type serviceType)
Returns the service instance to invoke, for the given type.List<NetworkService>
list(NetworkService.Type serviceType)
void
register(NetworkService service)
void
unregister(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:
register
in interfaceServiceOps
-
unregister
public void unregister(NetworkService service)
- Specified by:
unregister
in interfaceServiceOps
-
list
public List<NetworkService> list(NetworkService.Type serviceType)
- Specified by:
list
in interfaceServiceOps
-
get
public NetworkService get(NetworkService.Type serviceType)
Description copied from interface:ServiceOps
Returns the service instance to invoke, for the given type.- Specified by:
get
in interfaceServiceOps
- Parameters:
serviceType
- service type- Returns:
- service instance to invoke, for the given type
-
-