public final class ServiceManagerImpl extends Object implements ServiceManager
| Constructor and Description | 
|---|
ServiceManagerImpl(NodeEngineImpl nodeEngine)  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
getService(String serviceName)
Gets a Service by serviceName. 
 | 
ServiceInfo | 
getServiceInfo(String serviceName)
Gets the ServiceInfo for a service by serviceName. 
 | 
List<ServiceInfo> | 
getServiceInfos(Class serviceClass)
Returns a list of services matching provided service class/interface. 
 | 
<S> List<S> | 
getServices(Class<S> serviceClass)
Gets all services implementing a certain class/interface. 
 | 
<T extends SharedService> | 
getSharedService(String serviceName)
Gets a SharedService by serviceName. 
 | 
void | 
registerService(String serviceName,
               Object service)  | 
void | 
shutdown(boolean terminate)  | 
void | 
start()  | 
public ServiceManagerImpl(NodeEngineImpl nodeEngine)
public void start()
public void shutdown(boolean terminate)
public ServiceInfo getServiceInfo(String serviceName)
ServiceManagergetServiceInfo in interface ServiceManagerserviceName - the name of the service.public <S> List<S> getServices(Class<S> serviceClass)
ServiceManagergetServices in interface ServiceManagerserviceClass - the class/interface to check for.public <T> T getService(String serviceName)
ServiceManagergetService in interface ServiceManagerserviceName - the name of the service.public <T extends SharedService> T getSharedService(String serviceName)
ServiceManagergetSharedService in interface ServiceManagerserviceName - the name of the SharedService.public List<ServiceInfo> getServiceInfos(Class serviceClass)
CoreServices will be placed at the beginning of the list.
getServiceInfos in interface ServiceManagerserviceClass - the class/interface the service should implement.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.