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()
ServiceActivityScoreboardgetServiceActivity in interface ServiceActivityScoreboardpublic void define(ServiceDef serviceDef, Status initialStatus)
ServiceActivityTrackerdefine in interface ServiceActivityTrackerserviceDef - the service being definedinitialStatus - typically Status.BUILTIN or Status.DEFINEDpublic void setStatus(String serviceId, Status status)
ServiceActivityTrackersetStatus in interface ServiceActivityTrackerserviceId - identifies the service, which must be previously definedstatus - the new status value5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.