public interface ServiceManager
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)
Gets all the service info's for services that implement a given 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.
|
ServiceInfo getServiceInfo(String serviceName)
serviceName
- the name of the service.List<ServiceInfo> getServiceInfos(Class serviceClass)
serviceClass
- the class/interface the service should implement.<T> T getService(String serviceName)
T
- serviceName
- the name of the service.<S> List<S> getServices(Class<S> serviceClass)
S
- serviceClass
- the class/interface to check for.<T extends SharedService> T getSharedService(String serviceName)
T
- serviceName
- the name of the SharedService.IllegalArgumentException
- if a service with the name is found, but isn't a SharedService.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.