|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.tf.timer.spi.TimerManager<T>
public class TimerManager<T>
Provides access to timer facilities. This is intended to make it easy to set up timing, either for performance tests, or for adaptive policy management. Note that the constructor and the initialize method must be called from the same thread in order to safely complete the initialization of an instance of this class. After that, multiple threads may access this class for the factory(), points(), and controller() methods.
| Constructor Summary | |
|---|---|
TimerManager(ObjectRegistrationManager orm,
String name)
Create a new TimerManager, with a TimerFactory registered under the given name in the TimerFactoryBuilder, and a TimerEventController with the same name. |
|
TimerManager(String name)
|
|
| Method Summary | |
|---|---|
TimerEventController |
controller()
Return a TimerController. |
void |
destroy()
Destroy this TimerManager by removing its TimerFactory from the TimerFactoryBuilder. |
TimerFactory |
factory()
Get the TimerFactory. |
List<Timer> |
getTimers(Class<?> cls)
|
void |
initialize(T tp)
|
T |
points()
Get the timing point utility class of type T. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerManager(ObjectRegistrationManager orm,
String name)
public TimerManager(String name)
| Method Detail |
|---|
public void destroy()
public void initialize(T tp)
public T points()
public TimerFactory factory()
public TimerEventController controller()
public List<Timer> getTimers(Class<?> cls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||