public class ServiceActivityTrackerImpl extends Object implements ServiceActivityScoreboard, ServiceActivityTracker
Modifier and Type | Class and Description |
---|---|
static class |
ServiceActivityTrackerImpl.MutableServiceActivity |
Constructor and Description |
---|
ServiceActivityTrackerImpl(PerthreadManager perthreadManager) |
Modifier and Type | Method and Description |
---|---|
void |
define(ServiceDef serviceDef,
Status initialStatus)
Defines a service in the tracker with an initial status.
|
List<ServiceActivity> |
getServiceActivity()
Returns the status of all services, sorted alphabetically by service id.
|
void |
setStatus(String serviceId,
Status status)
Updates the status for the service.
|
public ServiceActivityTrackerImpl(PerthreadManager perthreadManager)
public List<ServiceActivity> getServiceActivity()
ServiceActivityScoreboard
getServiceActivity
in interface ServiceActivityScoreboard
public void define(ServiceDef serviceDef, Status initialStatus)
ServiceActivityTracker
define
in interface ServiceActivityTracker
serviceDef
- the service being definedinitialStatus
- typically Status.BUILTIN
or Status.DEFINED
public void setStatus(String serviceId, Status status)
ServiceActivityTracker
setStatus
in interface ServiceActivityTracker
serviceId
- identifies the service, which must be previously definedstatus
- the new status value${project.version} - Copyright © 2003-2015 The Apache Software Foundation.