Package org.glassfish.gmbal.impl
Interface TimerAnnotationHelper.ManagedControllable
- All Superinterfaces:
Controllable,Named,TimerAnnotationHelper.ManagedNamed
- All Known Subinterfaces:
TimerAnnotationHelper.ManagedTimer,TimerAnnotationHelper.ManagedTimerFactory,TimerAnnotationHelper.ManagedTimerGroup
- Enclosing class:
- TimerAnnotationHelper
@ManagedObject
@IncludeSubclass({Timer.class,TimerGroup.class,TimerFactory.class})
public static interface TimerAnnotationHelper.ManagedControllable
extends Controllable, TimerAnnotationHelper.ManagedNamed
-
Method Summary
Modifier and TypeMethodDescriptionSet<? extends Controllable>contents()Return an unmodifiable set of the contents of this Controllable.A longer description giving some details of the meaning of this Controllable.voiddisable()Disable this controllable.voidenable()Enable this controllable.intid()A small id for this controllable.booleanReturn true if enable() was called, otherwise false if enable() was never called, or disable() was last called.Methods inherited from interface org.glassfish.gmbal.impl.TimerAnnotationHelper.ManagedNamed
factory, name
-
Method Details
-
description
Description copied from interface:ControllableA longer description giving some details of the meaning of this Controllable.- Specified by:
descriptionin interfaceControllable
-
id
Description copied from interface:ControllableA 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).- Specified by:
idin interfaceControllable
-
contents
@ManagedAttribute @Description("Set of Timers or TimerGroups contained in a TimerGroup") Set<? extends Controllable> contents()Description copied from interface:ControllableReturn an unmodifiable set of the contents of this Controllable. May always be empty for some subclasses of Controllable.- Specified by:
contentsin interfaceControllable
-
enable
@ManagedOperation @Description("Enable this Timer, or all Timers and TimerGroups contained in this TimerGroup") void enable()Description copied from interface:ControllableEnable 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.- Specified by:
enablein interfaceControllable
-
disable
@ManagedOperation @Description("Disable this Timer, or all Timers and TimerGroups contained in this TimerGroup") void disable()Description copied from interface:ControllableDisable this controllable.- Specified by:
disablein interfaceControllable
-
isEnabled
Description copied from interface:ControllableReturn true if enable() was called, otherwise false if enable() was never called, or disable() was last called.- Specified by:
isEnabledin interfaceControllable
-