Class ServiceActivityTrackerImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.ServiceActivityTrackerImpl
-
- All Implemented Interfaces:
ServiceActivityTracker,ServiceActivityScoreboard
public class ServiceActivityTrackerImpl extends java.lang.Object implements ServiceActivityScoreboard, ServiceActivityTracker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceActivityTrackerImpl.MutableServiceActivity
-
Constructor Summary
Constructors Constructor Description ServiceActivityTrackerImpl(PerthreadManager perthreadManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefine(ServiceDef serviceDef, Status initialStatus)Defines a service in the tracker with an initial status.java.util.List<ServiceActivity>getServiceActivity()Returns the status of all services, sorted alphabetically by service id.voidsetStatus(java.lang.String serviceId, Status status)Updates the status for the service.
-
-
-
Constructor Detail
-
ServiceActivityTrackerImpl
public ServiceActivityTrackerImpl(PerthreadManager perthreadManager)
-
-
Method Detail
-
getServiceActivity
public java.util.List<ServiceActivity> getServiceActivity()
Description copied from interface:ServiceActivityScoreboardReturns the status of all services, sorted alphabetically by service id.- Specified by:
getServiceActivityin interfaceServiceActivityScoreboard
-
define
public void define(ServiceDef serviceDef, Status initialStatus)
Description copied from interface:ServiceActivityTrackerDefines a service in the tracker with an initial status.- Specified by:
definein interfaceServiceActivityTracker- Parameters:
serviceDef- the service being definedinitialStatus- typicallyStatus.BUILTINorStatus.DEFINED
-
setStatus
public void setStatus(java.lang.String serviceId, Status status)
Description copied from interface:ServiceActivityTrackerUpdates the status for the service.- Specified by:
setStatusin interfaceServiceActivityTracker- Parameters:
serviceId- identifies the service, which must be previously definedstatus- the new status value
-
-