Top Description Inners Constructors Methods
org.glassfish.gmbal.impl

public Class TimerAnnotationHelper

extends Object
Class Inheritance
Imports
java.util.Map, .Set, org.glassfish.gmbal.Description, .IncludeSubclass, .InheritedAttribute, .ManagedAttribute, .ManagedData, .ManagedObject, .ManagedObjectManager, .ManagedOperation, .NameValue, org.glassfish.pfl.tf.timer.impl.TimerFactoryImpl, org.glassfish.pfl.tf.timer.spi.Controllable, .LogEventHandler, .Named, .Statistics, .StatsEventHandler, .Timer, .TimerEventController, .TimerEventControllerBase, .TimerEventHandler, .TimerFactory, .TimerGroup

This class provides nested classes that carry the needed Gmbal annotations for the various Timer classes and interface, and a method for registering all of these annotations in gmbal.
Author
ken_admin

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface
public static interface
public class
public static interface
public static interface
public class
public static interface
public static interface
public static interface
public class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TimerAnnotationHelperback to summary
public TimerAnnotationHelper()

Method Detail

registerTimerClassesback to summary
public static void registerTimerClasses(ManagedObjectManager mom)
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedControllable

extends Controllable, ManagedNamed
Known Direct Subinterfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimer, org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerGroup
Annotations
@ManagedObject
@IncludeSubclass:Timer, TimerGroup, TimerFactory

Method Summary

Modifier and TypeMethod and Description
public Set<? extends Controllable>
contents()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.contents.

Return an unmodifiable set of the contents of this Controllable.

public String
description()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.description.

A longer description giving some details of the meaning of this Controllable.

public void
disable()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.disable.

Disable this controllable.

public void
enable()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.enable.

Enable this controllable.

public int
id()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.id.

A small id for this controllable.

public boolean
isEnabled()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.isEnabled.

Return true if enable() was called, otherwise false if enable() was never called, or disable() was last called.

Inherited from org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedNamed:
factoryname

Method Detail

contentsback to summary
public Set<? extends Controllable> contents()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.contents.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.contents.

Return an unmodifiable set of the contents of this Controllable. May always be empty for some subclasses of Controllable.

Annotations
@ManagedAttribute
@Description:Set of Timers or TimerGroups contained in a TimerGroup
@Override
descriptionback to summary
public String description()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.description.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.description.

A longer description giving some details of the meaning of this Controllable.

Annotations
@ManagedAttribute
@Description:The purpose of the Timer or TimerGroup
@Override
disableback to summary
public void disable()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.disable.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.disable.

Disable this controllable.

Annotations
@ManagedOperation
@Description:Disable this Timer, or all Timers and TimerGroups contained in this TimerGroup
@Override
enableback to summary
public void enable()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.enable.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.enable.

Enable this controllable. All Timers that are either enabled, or reachable via contents() from an enabled Controllable are activated, and will cause TimerEvents to be generated when passed to the TimerEventController enter and exit methods.

Annotations
@ManagedOperation
@Description:Enable this Timer, or all Timers and TimerGroups contained in this TimerGroup
@Override
idback to summary
public int id()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.id.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.id.

A small id for this controllable. Each controllable created from the same TimerFactory will have a unique ID. All ids will be small integers starting at 0 (so indexing tables by timer ID is supported).

Annotations
@ManagedAttribute
@Description:An internal identifier for the Timer or TimerGroup
@Override
isEnabledback to summary
public boolean isEnabled()

Redeclares org.glassfish.pfl.tf.timer.spi.Controllable.isEnabled.

Doc from org.glassfish.pfl.tf.timer.spi.Controllable.isEnabled.

Return true if enable() was called, otherwise false if enable() was never called, or disable() was last called.

Annotations
@ManagedOperation
@Description:True if this Timer or TimerGroup is enabled
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedLogEventHandler

extends LogEventHandler, ManagedTimerEventHandler
Annotations
@ManagedObject
@Description:TimerEventHandler that records all TimerEvents in a log
@InheritedAttribute
methodName:iterator
description:TimerEvents contained in this log in order of occurrence

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Redeclares org.glassfish.pfl.tf.timer.spi.LogEventHandler.clear.

Discard the contents of the log.

Inherited from org.glassfish.pfl.tf.timer.spi.LogEventHandler:
display

Method Detail

clearback to summary
public void clear()

Redeclares org.glassfish.pfl.tf.timer.spi.LogEventHandler.clear.

Doc from org.glassfish.pfl.tf.timer.spi.LogEventHandler.clear.

Discard the contents of the log.

Annotations
@ManagedOperation
@Description:Discard all recorded timer events
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedNamed

extends Named
Known Direct Subinterfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedControllable, org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerEventHandler
Known Direct Implementers
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerEventController

Method Summary

Modifier and TypeMethod and Description
public TimerFactory
factory()

Redeclares org.glassfish.pfl.tf.timer.spi.Named.factory.

Return the TimerFactory that created this Named.

public String
name()

Redeclares org.glassfish.pfl.tf.timer.spi.Named.name.

A short name for this Controllable.

Method Detail

factoryback to summary
public TimerFactory factory()

Redeclares org.glassfish.pfl.tf.timer.spi.Named.factory.

Doc from org.glassfish.pfl.tf.timer.spi.Named.factory.

Return the TimerFactory that created this Named.

Annotations
@ManagedAttribute
@Description:TimerFactory that created this Timer or TimerGroup
@Override
nameback to summary
public String name()

Redeclares org.glassfish.pfl.tf.timer.spi.Named.name.

Doc from org.glassfish.pfl.tf.timer.spi.Named.name.

A short name for this Controllable.

Annotations
@ManagedAttribute
@NameValue
@Description:Name of this Timer or TimerGroup
@Override
org.glassfish.gmbal.impl back to summary

public Class TimerAnnotationHelper.ManagedStatistics

extends Statistics
Class Inheritance
Annotations
@ManagedData
@Description:Statistics recorded for a series of time intervals

Constructor Summary

AccessConstructor and Description
public
ManagedStatistics(long count, double min, double max, double average, double standardDeviation)

Method Summary

Modifier and TypeMethod and Description
public double
average()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.average.

Return the current average of the data, or -1 if there is no data.

public long
count()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.count.

Return the number of data points recorded.

public double
max()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.max.

Return the maximum value of call data points records.

public double
min()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.min.

Return the minimum value of call data points records.

public double
standardDeviation()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.standardDeviation.

Return the standard deviation of the data, or -1 if there is no data.

Inherited from org.glassfish.pfl.tf.timer.spi.Statistics:
equalshashCode

Constructor Detail

ManagedStatisticsback to summary
public ManagedStatistics(long count, double min, double max, double average, double standardDeviation)

Method Detail

averageback to summary
public double average()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.average.

Doc from org.glassfish.pfl.tf.timer.spi.Statistics.average.

Return the current average of the data, or -1 if there is no data.

Annotations
@ManagedAttribute
@Description:Average interval duration recorded
@Override
countback to summary
public long count()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.count.

Doc from org.glassfish.pfl.tf.timer.spi.Statistics.count.

Return the number of data points recorded.

Annotations
@ManagedAttribute
@Description:Total number of intervals recorded
@Override
maxback to summary
public double max()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.max.

Doc from org.glassfish.pfl.tf.timer.spi.Statistics.max.

Return the maximum value of call data points records.

Annotations
@ManagedAttribute
@Description:Maximum interval duration recorded
@Override
minback to summary
public double min()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.min.

Doc from org.glassfish.pfl.tf.timer.spi.Statistics.min.

Return the minimum value of call data points records.

Annotations
@ManagedAttribute
@Description:Minimum interval duration recorded
@Override
standardDeviationback to summary
public double standardDeviation()

Overrides org.glassfish.pfl.tf.timer.spi.Statistics.standardDeviation.

Doc from org.glassfish.pfl.tf.timer.spi.Statistics.standardDeviation.

Return the standard deviation of the data, or -1 if there is no data.

Annotations
@ManagedAttribute
@Description:Standard deviation of all durations recorded
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedStatsEventHandler

extends StatsEventHandler, ManagedTimerEventHandler
Annotations
@ManagedObject
@Description:TimerEventHandler that accumulates statistics on events

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Redeclares org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Discard all accumulated statistics.

public Map<Timer, Statistics>
stats()

Redeclares org.glassfish.pfl.tf.timer.spi.StatsEventHandler.stats.

Return map that gives the accumulated statistics for each TimerEvent that has been observed by this event handler since the last call to clear (or since the creation of this handler, if clear has not been called).

Method Detail

clearback to summary
public void clear()

Redeclares org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Doc from org.glassfish.pfl.tf.timer.spi.StatsEventHandler.clear.

Discard all accumulated statistics.

Annotations
@ManagedOperation
@Description:Discard all statistics on all Timers
@Override
statsback to summary
public Map<Timer, Statistics> stats()

Redeclares org.glassfish.pfl.tf.timer.spi.StatsEventHandler.stats.

Doc from org.glassfish.pfl.tf.timer.spi.StatsEventHandler.stats.

Return map that gives the accumulated statistics for each TimerEvent that has been observed by this event handler since the last call to clear (or since the creation of this handler, if clear has not been called).

Annotations
@ManagedAttribute
@Description:A table giving statistics for each activated Timer that had at least one TimerEvent
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedTimer

extends Timer, ManagedControllable
Annotations
@ManagedObject
@Description:A timer represents a particular action that has a duration from ENTER to EXIT

Method Summary

Modifier and TypeMethod and Description
public boolean
isActivated()

Redeclares org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

Return true if this Timer is ready to create TimerEvents.

Inherited from org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedControllable:
contentsdescriptiondisableenableidisEnabled

Method Detail

isActivatedback to summary
public boolean isActivated()

Redeclares org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

Doc from org.glassfish.pfl.tf.timer.spi.Timer.isActivated.

Return true if this Timer is ready to create TimerEvents. This is the case either if this Timer is enabled, or is reachable through contents() from an enabled TimerGroup.

Annotations
@ManagedAttribute
@Description:True if this Timer is enabled, and can generate TimerEvents
@Override
org.glassfish.gmbal.impl back to summary

public Class TimerAnnotationHelper.ManagedTimerEventController

extends TimerEventController
implements ManagedNamed
Class Inheritance
All Implemented Interfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedNamed, org.glassfish.pfl.tf.timer.spi.Named
Annotations
@ManagedObject
@Description:Controls entering and exiting Timers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
enter(Timer timer)

Overrides org.glassfish.pfl.tf.timer.spi.TimerEventController.enter.

Generate a TimerEvent representing the entry to a particular timer.

public void
exit(Timer timer)

Overrides org.glassfish.pfl.tf.timer.spi.TimerEventController.exit.

Generate a TimerEvent representing the exit from a particular timer.

Constructor Detail

ManagedTimerEventControllerback to summary
public ManagedTimerEventController(TimerFactory factory, String name)

Method Detail

enterback to summary
public void enter(Timer timer)

Overrides org.glassfish.pfl.tf.timer.spi.TimerEventController.enter.

Doc from org.glassfish.pfl.tf.timer.spi.TimerEventController.enter.

Generate a TimerEvent representing the entry to a particular timer. This event is sent to all registered TimerEventHandlers. An event is only generated in case timer.isActivated() is true.

Annotations
@ManagedOperation
@Description:Enter a particular Timer
@Override
exitback to summary
public void exit(Timer timer)

Overrides org.glassfish.pfl.tf.timer.spi.TimerEventController.exit.

Doc from org.glassfish.pfl.tf.timer.spi.TimerEventController.exit.

Generate a TimerEvent representing the exit from a particular timer. This event is sent to all registered TimerEventHandlers. An event is only generated in case timer.isActivated() is true.

Annotations
@ManagedOperation
@Description:Exit a particular Timer
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedTimerEventHandler

extends TimerEventHandler, ManagedNamed
Known Direct Subinterfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedLogEventHandler, org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedStatsEventHandler
Known Direct Implementers
org.glassfish.gmbal.impl.TimerAnnotationHelper.TracingEventHandler

Method Summary

Inherited from org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedNamed:
factoryname
Inherited from org.glassfish.pfl.tf.timer.spi.TimerEventHandler:
notify
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedTimerFactory

extends TimerFactory, ManagedTimerGroup
Annotations
@ManagedObject
@Description:The Factory used to create and managed all objects in the Timer framework

Method Summary

Modifier and TypeMethod and Description
public Set<Timer>
activeSet()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.activeSet.

Returns a read-only view of the set of Controllables that are currently active.

public Set<? extends Controllable>
enabledSet()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.enabledSet.

Returns a read-only view of the set of enabled Controllables.

public Controllable
getControllable(int id)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.getControllable.

Returns the Controllable corresponding to id, for id in the range 0 (inclusive) to numberOfIds() (exclusive).

public TimerEventController
makeController(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeController.

Create a TimerController, which can create TimerEvents and send them to registered TimerEventHandlers.

public LogEventHandler
public StatsEventHandler
public StatsEventHandler
public Timer
makeTimer(String name, String description)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimer.

Create a new Timer.

public TimerGroup
makeTimerGroup(String name, String description)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimerGroup.

Create a new TimerGroup.

public TimerEventHandler
public int
numberOfIds()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.numberOfIds.

Returns the maximum id used by this TimerFactory for creating Controllables.

public void
removeController(TimerEventControllerBase controller)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.removeController.

Remove the controller from this factory.

public void
public Map<String, ? extends TimerGroup>
timerGroups()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.timerGroups.

Returns a read-only map from TimerGroup names to TimerGroups.

public Map<String, ? extends Timer>
timers()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.timers.

Returns a read-only map from Timer names to Timers.

Inherited from org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerGroup:
addremove
Inherited from org.glassfish.pfl.tf.timer.spi.TimerFactory:
timerAlreadyExists

Method Detail

activeSetback to summary
public Set<Timer> activeSet()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.activeSet.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.activeSet.

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.

Annotations
@ManagedAttribute
@Description:All activated Timers
@Override
enabledSetback to summary
public Set<? extends Controllable> enabledSet()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.enabledSet.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.enabledSet.

Returns a read-only view of the set of enabled Controllables. These have been explicitly enabled via a call to enable().

Annotations
@ManagedAttribute
@Description:All explicitly enabled Timers and TimerGroups
@Override
getControllableback to summary
public Controllable getControllable(int id)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.getControllable.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.getControllable.

Returns the Controllable corresponding to id, for id in the range 0 (inclusive) to numberOfIds() (exclusive).

Annotations
@ManagedOperation
@Description:Look up a Timer or TimerGroup by its ID
@Override
makeControllerback to summary
public TimerEventController makeController(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeController.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeController.

Create a TimerController, which can create TimerEvents and send them to registered TimerEventHandlers.

Annotations
@ManagedOperation
@Description:Create a new TimerEventController
@Override
makeLogEventHandlerback to summary
public LogEventHandler makeLogEventHandler(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeLogEventHandler.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeLogEventHandler.

Create a new LogEventHandler. All LogEventHandler names must be unique within the same TimerFactory.

Annotations
@ManagedOperation
@Description:Create a new LogEventHandler
@Override
makeMultiThreadedStatsEventHandlerback to summary
public StatsEventHandler makeMultiThreadedStatsEventHandler(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeMultiThreadedStatsEventHandler.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeMultiThreadedStatsEventHandler.

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.

Annotations
@ManagedOperation
@Description:Create a new Multi-Threaded StatsEventHandler
@Override
makeStatsEventHandlerback to summary
public StatsEventHandler makeStatsEventHandler(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeStatsEventHandler.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeStatsEventHandler.

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.

Annotations
@ManagedOperation
@Description:Create a new StatsEventHandler
@Override
makeTimerback to summary
public Timer makeTimer(String name, String description)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimer.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimer.

Create a new Timer. Note that Timers cannot be destroyed, other than by garbage collecting the TimerFactory that created them.

Annotations
@ManagedOperation
@Description:Create a new Timer
@Override
makeTimerGroupback to summary
public TimerGroup makeTimerGroup(String name, String description)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimerGroup.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTimerGroup.

Create a new TimerGroup. Note that TimerGroups cannot be destroyed, other than by garbage collecting the TimerFactory that created them.

Annotations
@ManagedOperation
@Description:Create a new TimerGroup
@Override
makeTracingEventHandlerback to summary
public TimerEventHandler makeTracingEventHandler(String name)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.makeTracingEventHandler.

Annotations
@ManagedOperation
@Description:Create a new TracingEventHandler
@Override
numberOfIdsback to summary
public int numberOfIds()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.numberOfIds.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.numberOfIds.

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.

Annotations
@ManagedAttribute
@Description:The total number of Controllabled IDs in use
@Override
removeControllerback to summary
public void removeController(TimerEventControllerBase controller)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.removeController.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.removeController.

Remove the controller from this factory. The controller should not be used after this call.

Annotations
@ManagedOperation
@Description:Remote the TimerEventController from this factory
@Override
removeTimerEventHandlerback to summary
public void removeTimerEventHandler(TimerEventHandler handler)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.removeTimerEventHandler.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.removeTimerEventHandler.

Remove the handler from this TimerFactory. The handler should not be used after this call.

Annotations
@ManagedOperation
@Description:Remove the TimerEventHandler from this factory
@Override
timerGroupsback to summary
public Map<String, ? extends TimerGroup> timerGroups()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.timerGroups.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.timerGroups.

Returns a read-only map from TimerGroup names to TimerGroups.

Annotations
@ManagedAttribute
@Description:All timers contained in this factory
@Override
timersback to summary
public Map<String, ? extends Timer> timers()

Redeclares org.glassfish.pfl.tf.timer.spi.TimerFactory.timers.

Doc from org.glassfish.pfl.tf.timer.spi.TimerFactory.timers.

Returns a read-only map from Timer names to Timers.

Annotations
@ManagedAttribute
@Description:All timers contained in this factory
@Override
org.glassfish.gmbal.impl back to summary

public Interface TimerAnnotationHelper.ManagedTimerGroup

extends TimerGroup, ManagedControllable
Known Direct Subinterfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerFactory
Annotations
@ManagedObject
@Description:A group of Timers or other TimerGroups, which may be enabled or disabled together

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
Inherited from org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedControllable:
contentsdescriptiondisableenableidisEnabled

Method Detail

addback to summary
public boolean add(Controllable con)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerGroup.add.

Annotations
@ManagedOperation
@Description:Add a new Timer or TimerGroup to this TimerGroup
@Override
removeback to summary
public boolean remove(Controllable con)

Redeclares org.glassfish.pfl.tf.timer.spi.TimerGroup.remove.

Annotations
@ManagedOperation
@Description:Remove a new Timer or TimerGroup from this TimerGroup
@Override
org.glassfish.gmbal.impl back to summary

public Class TimerAnnotationHelper.TracingEventHandler

extends TracingEventHandler
implements ManagedTimerEventHandler
Class Inheritance
All Implemented Interfaces
org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedTimerEventHandler, org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedNamed, org.glassfish.pfl.tf.timer.spi.Named, org.glassfish.pfl.tf.timer.spi.TimerEventHandler
Annotations
@ManagedObject
@Description:A simple TimerEventHandler that just displays TimerEvents as they occur

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.glassfish.pfl.tf.timer.impl.TimerFactoryImpl.TracingEventHandler:
notify

Constructor Detail

TracingEventHandlerback to summary
public TracingEventHandler(TimerFactory factory, String name)