| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Map | |
| private int | |
| private ObjectRegistrationManager | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Set | activeSet()
Implements org. Returns a read-only view of the set of Controllables that are currently active. |
| private void | |
| public synchronized Set | enabledSet()
Implements org. Returns a read-only view of the set of enabled Controllables. |
| public synchronized Controllable | getControllable(int id)
Implements org. Returns the Controllable corresponding to id, for id in the range 0 (inclusive) to numberOfIds() (exclusive). |
| public synchronized TimerEventController | makeController(String name)
Implements org. Create a TimerController, which can create TimerEvents and send them to registered TimerEventHandlers. |
| public synchronized LogEventHandler | makeLogEventHandler(String name)
Implements org. Create a new LogEventHandler. |
| public synchronized StatsEventHandler | makeMultiThreadedStatsEventHandler(String name)
Implements org. Create a new StatsEventHandler. |
| public synchronized StatsEventHandler | makeStatsEventHandler(String name)
Implements org. Create a new StatsEventHandler. |
| public synchronized Timer | makeTimer(String name, String description)
Implements org. Create a new Timer. |
| public synchronized TimerGroup | makeTimerGroup(String name, String description)
Implements org. Create a new TimerGroup. |
| public synchronized TimerEventHandler | |
| private void | |
| public synchronized int | numberOfIds()
Implements org. Returns the maximum id used by this TimerFactory for creating Controllables. |
| public synchronized void | removeController(TimerEventControllerBase controller)
Implements org. Remove the controller from this factory. |
| public synchronized void | removeTimerEventHandler(TimerEventHandler handler)
Implements org. Remove the handler from this TimerFactory. |
| public void | |
| public synchronized boolean | timerAlreadyExists(String name)
Implements org. Return true iff a timer with the given name already exists. |
| public synchronized Map | timerGroups()
Implements org. Returns a read-only map from TimerGroup names to TimerGroups. |
| public synchronized Map | timers()
Implements org. Returns a read-only map from Timer names to Timers. |
| pack-priv void |
| conToInt | back to summary |
|---|---|
| private Map<Controllable, Integer> conToInt | |
| intToCon | back to summary |
|---|---|
| private Map<Integer, Controllable> intToCon | |
| nextIndex | back to summary |
|---|---|
| private int nextIndex | |
| orm | back to summary |
|---|---|
| private ObjectRegistrationManager orm | |
| roTimerGroups | back to summary |
|---|---|
| private Map<String, TimerGroupImpl> roTimerGroups | |
| roTimers | back to summary |
|---|---|
| private Map<String, TimerImpl> roTimers | |
| timerEventControllers | back to summary |
|---|---|
| private Map<String, TimerEventControllerBase> timerEventControllers | |
| timerEventHandlers | back to summary |
|---|---|
| private Map<String, TimerEventHandler> timerEventHandlers | |
| timerGroups | back to summary |
|---|---|
| private Map<String, TimerGroupImpl> timerGroups | |
| timers | back to summary |
|---|---|
| private Map<String, TimerImpl> timers | |
| TimerFactoryImpl | back to summary |
|---|---|
| public TimerFactoryImpl(ObjectRegistrationManager orm, String name, String description) | |
| activeSet | back to summary |
|---|---|
| public synchronized Set Implements org. Doc from org. Returns a read-only view of the set of Controllables that are currently active. An enabled Timer is active. All Controllables contained in an active or enabled TimerGroup are active.
| |
| checkArgs | back to summary |
|---|---|
| private void checkArgs(Set<String> inUse, String name, String description) | |
| enabledSet | back to summary |
|---|---|
| public synchronized Set Implements org. Doc from org. Returns a read-only view of the set of enabled Controllables. These have been explicitly enabled via a call to enable().
| |
| getControllable | back to summary |
|---|---|
| public synchronized Controllable getControllable(int id) Implements org. Doc from org. Returns the Controllable corresponding to id, for id in the range 0 (inclusive) to numberOfIds() (exclusive).
| |
| makeController | back to summary |
|---|---|
| public synchronized TimerEventController makeController(String name) Implements org. Doc from org. Create a TimerController, which can create TimerEvents and send them to registered TimerEventHandlers.
| |
| makeLogEventHandler | back to summary |
|---|---|
| public synchronized LogEventHandler makeLogEventHandler(String name) Implements org. Doc from org. Create a new LogEventHandler. All LogEventHandler names must be unique within the same TimerFactory.
| |
| makeMultiThreadedStatsEventHandler | back to summary |
|---|---|
| public synchronized StatsEventHandler makeMultiThreadedStatsEventHandler(String name) Implements org. Doc from org. Create a new StatsEventHandler. A StatsEventHandler records running statistics for all enter/exit pairs until it is cleared, at which point it starts over. It will keep data separated for each thread, combining information correctly from multiple threads. All StatsEventHandler names must be unique within the same TimerFactory. This StatsEventHandler is multi-thread safe.
| |
| makeStatsEventHandler | back to summary |
|---|---|
| public synchronized StatsEventHandler makeStatsEventHandler(String name) Implements org. Doc from org. Create a new StatsEventHandler. A StatsEventHandler records running statistics for all enter/exit pairs until it is cleared, at which point it starts over. It will keep data separated for each thread, combining information correctly from multiple threads. All StatsEventHandler names must be unique within the same TimerFactory. This StatsEventHandler must be used from a single thread.
| |
| makeTimer | back to summary |
|---|---|
| public synchronized Timer makeTimer(String name, String description) Implements org. Doc from org. Create a new Timer. Note that Timers cannot be destroyed, other than by garbage collecting the TimerFactory that created them.
| |
| makeTimerGroup | back to summary |
|---|---|
| public synchronized TimerGroup makeTimerGroup(String name, String description) Implements org. Doc from org. Create a new TimerGroup. Note that TimerGroups cannot be destroyed, other than by garbage collecting the TimerFactory that created them.
| |
| makeTracingEventHandler | back to summary |
|---|---|
| public synchronized TimerEventHandler makeTracingEventHandler(String name) Implements org.
| |
| mapId | back to summary |
|---|---|
| private void mapId(Controllable con) | |
| numberOfIds | back to summary |
|---|---|
| public synchronized int numberOfIds() Implements org. Doc from org. Returns the maximum id used by this TimerFactory for creating Controllables. The value of con.id() for any Controllable created by this TimerFactory always ranges from 0 inclusive to numberOfIds() exclusive.
| |
| removeController | back to summary |
|---|---|
| public synchronized void removeController(TimerEventControllerBase controller) Implements org. Doc from org. Remove the controller from this factory. The controller should not be used after this call.
| |
| removeTimerEventHandler | back to summary |
|---|---|
| public synchronized void removeTimerEventHandler(TimerEventHandler handler) Implements org. Doc from org. Remove the handler from this TimerFactory. The handler should not be used after this call.
| |
| saveTimerEventController | back to summary |
|---|---|
| public void saveTimerEventController(TimerEventControllerBase tec) | |
| timerAlreadyExists | back to summary |
|---|---|
| public synchronized boolean timerAlreadyExists(String name) Implements org. Doc from org. Return true iff a timer with the given name already exists.
| |
| timerGroups | back to summary |
|---|---|
| public synchronized Map Implements org. Doc from org. Returns a read-only map from TimerGroup names to TimerGroups.
| |
| timers | back to summary |
|---|---|
| public synchronized Map Implements org. Doc from org. Returns a read-only map from Timer names to Timers.
| |
| updateActivation | back to summary |
|---|---|
| pack-priv void updateActivation() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| TracingEventHandler | back to summary |
|---|---|
| public TracingEventHandler(TimerFactory factory, String name) | |
| notify | back to summary |
|---|---|
| public void notify(TimerEvent event) Implements org.
| |