|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.tf.timer.spi.NamedBase
org.glassfish.pfl.tf.timer.impl.NamedBaseImpl
org.glassfish.pfl.tf.timer.impl.ControllableBase
org.glassfish.pfl.tf.timer.impl.TimerGroupImpl
org.glassfish.pfl.tf.timer.impl.TimerFactoryImpl
public class TimerFactoryImpl
| Nested Class Summary | |
|---|---|
static class |
TimerFactoryImpl.TracingEventHandler
|
| Constructor Summary | |
|---|---|
TimerFactoryImpl(ObjectRegistrationManager orm,
String name,
String description)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.glassfish.pfl.tf.timer.impl.TimerGroupImpl |
|---|
add, contents, remove |
| Methods inherited from class org.glassfish.pfl.tf.timer.impl.ControllableBase |
|---|
description, disable, enable, id, isEnabled |
| Methods inherited from class org.glassfish.pfl.tf.timer.impl.NamedBaseImpl |
|---|
factory |
| Methods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase |
|---|
equals, hashCode, name, setFactory, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.glassfish.pfl.tf.timer.spi.TimerGroup |
|---|
add, remove |
| Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Controllable |
|---|
contents, description, disable, enable, id, isEnabled |
| Methods inherited from interface org.glassfish.pfl.tf.timer.spi.Named |
|---|
factory, name |
| Constructor Detail |
|---|
public TimerFactoryImpl(ObjectRegistrationManager orm,
String name,
String description)
| Method Detail |
|---|
public int numberOfIds()
TimerFactory
numberOfIds in interface TimerFactorypublic Controllable getControllable(int id)
TimerFactory
getControllable in interface TimerFactorypublic TimerEventHandler makeTracingEventHandler(String name)
makeTracingEventHandler in interface TimerFactorypublic LogEventHandler makeLogEventHandler(String name)
TimerFactory
makeLogEventHandler in interface TimerFactorypublic StatsEventHandler makeStatsEventHandler(String name)
TimerFactory
makeStatsEventHandler in interface TimerFactorypublic StatsEventHandler makeMultiThreadedStatsEventHandler(String name)
TimerFactory
makeMultiThreadedStatsEventHandler in interface TimerFactorypublic void removeTimerEventHandler(TimerEventHandler handler)
TimerFactory
removeTimerEventHandler in interface TimerFactory
public Timer makeTimer(String name,
String description)
TimerFactory
makeTimer in interface TimerFactorypublic Map<String,TimerImpl> timers()
TimerFactory
timers in interface TimerFactory
public TimerGroup makeTimerGroup(String name,
String description)
TimerFactory
makeTimerGroup in interface TimerFactorypublic Map<String,TimerGroupImpl> timerGroups()
TimerFactory
timerGroups in interface TimerFactorypublic void saveTimerEventController(TimerEventControllerBase tec)
public TimerEventController makeController(String name)
TimerFactory
makeController in interface TimerFactorypublic void removeController(TimerEventControllerBase controller)
TimerFactory
removeController in interface TimerFactorypublic Set<? extends Controllable> enabledSet()
TimerFactory
enabledSet in interface TimerFactorypublic Set<Timer> activeSet()
TimerFactory
activeSet in interface TimerFactorypublic boolean timerAlreadyExists(String name)
TimerFactory
timerAlreadyExists in interface TimerFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||