Interface TimerAnnotationHelper.ManagedTimerFactory

All Superinterfaces:
org.glassfish.pfl.tf.timer.spi.Controllable, Named, TimerAnnotationHelper.ManagedControllable, TimerAnnotationHelper.ManagedNamed, TimerAnnotationHelper.ManagedTimerGroup, org.glassfish.pfl.tf.timer.spi.TimerFactory, org.glassfish.pfl.tf.timer.spi.TimerGroup
Enclosing class:
TimerAnnotationHelper

@ManagedObject @Description("The Factory used to create and managed all objects in the Timer framework") public static interface TimerAnnotationHelper.ManagedTimerFactory extends org.glassfish.pfl.tf.timer.spi.TimerFactory, TimerAnnotationHelper.ManagedTimerGroup
  • Method Details

    • numberOfIds

      @ManagedAttribute @Description("The total number of Controllabled IDs in use") int numberOfIds()
      Specified by:
      numberOfIds in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • getControllable

      @ManagedOperation @Description("Look up a Timer or TimerGroup by its ID") org.glassfish.pfl.tf.timer.spi.Controllable getControllable(int id)
      Specified by:
      getControllable in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeLogEventHandler

      @ManagedOperation @Description("Create a new LogEventHandler") org.glassfish.pfl.tf.timer.spi.LogEventHandler makeLogEventHandler(String name)
      Specified by:
      makeLogEventHandler in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeTracingEventHandler

      @ManagedOperation @Description("Create a new TracingEventHandler") org.glassfish.pfl.tf.timer.spi.TimerEventHandler makeTracingEventHandler(String name)
      Specified by:
      makeTracingEventHandler in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeStatsEventHandler

      @ManagedOperation @Description("Create a new StatsEventHandler") org.glassfish.pfl.tf.timer.spi.StatsEventHandler makeStatsEventHandler(String name)
      Specified by:
      makeStatsEventHandler in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeMultiThreadedStatsEventHandler

      @ManagedOperation @Description("Create a new Multi-Threaded StatsEventHandler") org.glassfish.pfl.tf.timer.spi.StatsEventHandler makeMultiThreadedStatsEventHandler(String name)
      Specified by:
      makeMultiThreadedStatsEventHandler in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • removeTimerEventHandler

      @ManagedOperation @Description("Remove the TimerEventHandler from this factory") void removeTimerEventHandler(org.glassfish.pfl.tf.timer.spi.TimerEventHandler handler)
      Specified by:
      removeTimerEventHandler in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeTimer

      @ManagedOperation @Description("Create a new Timer") org.glassfish.pfl.tf.timer.spi.Timer makeTimer(String name, String description)
      Specified by:
      makeTimer in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • timers

      @ManagedAttribute @Description("All timers contained in this factory") Map<String,? extends org.glassfish.pfl.tf.timer.spi.Timer> timers()
      Specified by:
      timers in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeTimerGroup

      @ManagedOperation @Description("Create a new TimerGroup") org.glassfish.pfl.tf.timer.spi.TimerGroup makeTimerGroup(String name, String description)
      Specified by:
      makeTimerGroup in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • timerGroups

      @ManagedAttribute @Description("All timers contained in this factory") Map<String,? extends org.glassfish.pfl.tf.timer.spi.TimerGroup> timerGroups()
      Specified by:
      timerGroups in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • makeController

      @ManagedOperation @Description("Create a new TimerEventController") org.glassfish.pfl.tf.timer.spi.TimerEventController makeController(String name)
      Specified by:
      makeController in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • removeController

      @ManagedOperation @Description("Remote the TimerEventController from this factory") void removeController(org.glassfish.pfl.tf.timer.spi.TimerEventControllerBase controller)
      Specified by:
      removeController in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • enabledSet

      @ManagedAttribute @Description("All explicitly enabled Timers and TimerGroups") Set<? extends org.glassfish.pfl.tf.timer.spi.Controllable> enabledSet()
      Specified by:
      enabledSet in interface org.glassfish.pfl.tf.timer.spi.TimerFactory
    • activeSet

      @ManagedAttribute @Description("All activated Timers") Set<org.glassfish.pfl.tf.timer.spi.Timer> activeSet()
      Specified by:
      activeSet in interface org.glassfish.pfl.tf.timer.spi.TimerFactory