public interface LifecycleComponent
Modifier and Type | Method and Description |
---|---|
HealthStatus |
getHealthStatus(String serviceId)
Returns the health status of a given service.
|
Map<String,HealthStatus> |
getHealthStatuses()
Returns map with health status objects for all contained public services (usually one!).
|
List<String> |
getPublicServices()
Returns a list of all publicly accessable services.
|
ServiceInfo |
getServiceInfo(String serviceId)
Collects and returns the info about the specified service.
|
boolean |
isOnline()
Returns true if the service is online.
|
void |
printStatusToLogInfo()
Logs a standard message to info.
|
void |
printStatusToSystemOut()
Prints a standard message to system out.
|
void |
registerPublicService(String serviceId,
ServiceAdapter instance)
Registers a service locally running service instance.
|
void |
shutdown(String message)
Shutdowns the current VM and logs the message.
|
boolean isOnline()
void printStatusToSystemOut()
void printStatusToLogInfo()
List<String> getPublicServices()
void registerPublicService(String serviceId, ServiceAdapter instance)
descriptor
- instance
- ServiceInfo getServiceInfo(String serviceId)
serviceId
- the target service id.void shutdown(String message)
message
- HealthStatus getHealthStatus(String serviceId)
serviceId
- Map<String,HealthStatus> getHealthStatuses()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.