Class ZookeeperServiceDiscoveryOps
- java.lang.Object
-
- org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperServiceDiscoveryOps
-
- All Implemented Interfaces:
ServiceOps
,InitializingBean
public class ZookeeperServiceDiscoveryOps extends Object implements ServiceOps, InitializingBean
ImplementsServiceOps
via Apache Curator / Zookeeper via Curator'sServiceDiscovery
.
-
-
Constructor Summary
Constructors Constructor Description ZookeeperServiceDiscoveryOps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
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)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
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
-
-