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