public class TimerFactoryImpl extends TimerGroupImpl implements TimerFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
TimerFactoryImpl.TracingEventHandler |
| Constructor and Description |
|---|
TimerFactoryImpl(ObjectRegistrationManager orm,
String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
Set<Timer> |
activeSet()
Returns a read-only view of the set of Controllables that are
currently active.
|
Set<? extends Controllable> |
enabledSet()
Returns a read-only view of the set of enabled Controllables.
|
Controllable |
getControllable(int id)
Returns the Controllable corresponding to id, for
id in the range 0 (inclusive) to numberOfIds() (exclusive).
|
TimerEventController |
makeController(String name)
Create a TimerController, which can create TimerEvents and
send them to registered TimerEventHandlers.
|
LogEventHandler |
makeLogEventHandler(String name)
Create a new LogEventHandler.
|
StatsEventHandler |
makeMultiThreadedStatsEventHandler(String name)
Create a new StatsEventHandler.
|
StatsEventHandler |
makeStatsEventHandler(String name)
Create a new StatsEventHandler.
|
Timer |
makeTimer(String name,
String description)
Create a new Timer.
|
TimerGroup |
makeTimerGroup(String name,
String description)
Create a new TimerGroup.
|
TimerEventHandler |
makeTracingEventHandler(String name) |
int |
numberOfIds()
Returns the maximum id used by this TimerFactory for creating Controllables.
|
void |
removeController(TimerEventControllerBase controller)
Remove the controller from this factory.
|
void |
removeTimerEventHandler(TimerEventHandler handler)
Remove the handler from this TimerFactory.
|
void |
saveTimerEventController(TimerEventControllerBase tec) |
boolean |
timerAlreadyExists(String name)
Return true iff a timer with the given name already exists.
|
Map<String,TimerGroupImpl> |
timerGroups()
Returns a read-only map from TimerGroup names to TimerGroups.
|
Map<String,TimerImpl> |
timers()
Returns a read-only map from Timer names to Timers.
|
add, contents, removedescription, disable, enable, id, isEnabledfactoryequals, hashCode, name, setFactory, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, removecontents, description, disable, enable, id, isEnabledpublic TimerFactoryImpl(ObjectRegistrationManager orm, String name, String description)
public int numberOfIds()
TimerFactorynumberOfIds in interface TimerFactorypublic Controllable getControllable(int id)
TimerFactorygetControllable in interface TimerFactorypublic TimerEventHandler makeTracingEventHandler(String name)
makeTracingEventHandler in interface TimerFactorypublic LogEventHandler makeLogEventHandler(String name)
TimerFactorymakeLogEventHandler in interface TimerFactorypublic StatsEventHandler makeStatsEventHandler(String name)
TimerFactorymakeStatsEventHandler in interface TimerFactorypublic StatsEventHandler makeMultiThreadedStatsEventHandler(String name)
TimerFactorymakeMultiThreadedStatsEventHandler in interface TimerFactorypublic void removeTimerEventHandler(TimerEventHandler handler)
TimerFactoryremoveTimerEventHandler in interface TimerFactorypublic Timer makeTimer(String name, String description)
TimerFactorymakeTimer in interface TimerFactorypublic Map<String,TimerImpl> timers()
TimerFactorytimers in interface TimerFactorypublic TimerGroup makeTimerGroup(String name, String description)
TimerFactorymakeTimerGroup in interface TimerFactorypublic Map<String,TimerGroupImpl> timerGroups()
TimerFactorytimerGroups in interface TimerFactorypublic void saveTimerEventController(TimerEventControllerBase tec)
public TimerEventController makeController(String name)
TimerFactorymakeController in interface TimerFactorypublic void removeController(TimerEventControllerBase controller)
TimerFactoryremoveController in interface TimerFactorypublic Set<? extends Controllable> enabledSet()
TimerFactoryenabledSet in interface TimerFactorypublic Set<Timer> activeSet()
TimerFactoryactiveSet in interface TimerFactorypublic boolean timerAlreadyExists(String name)
TimerFactorytimerAlreadyExists in interface TimerFactoryCopyright © 2011–2019 Eclipse Foundation. All rights reserved.