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 |
shutdown(boolean terminate) |
void |
start() |
public ServiceManagerImpl(NodeEngineImpl nodeEngine)
public void start()
public void shutdown(boolean terminate)
public ServiceInfo getServiceInfo(String serviceName)
ServiceManager
getServiceInfo
in interface ServiceManager
serviceName
- the name of the service.public <S> List<S> getServices(Class<S> serviceClass)
ServiceManager
getServices
in interface ServiceManager
serviceClass
- the class/interface to check for.public <T> T getService(String serviceName)
ServiceManager
getService
in interface ServiceManager
serviceName
- the name of the service.public <T extends SharedService> T getSharedService(String serviceName)
ServiceManager
getSharedService
in interface ServiceManager
serviceName
- the name of the SharedService.public List<ServiceInfo> getServiceInfos(Class serviceClass)
getServiceInfos
in interface ServiceManager
serviceClass
- the class/interface the service should implement.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.