Package org.glassfish.pfl.tf.timer.spi
Class TimerFactoryBuilder
java.lang.Object
org.glassfish.pfl.tf.timer.spi.TimerFactoryBuilder
TimerFactoryBuilder creates independent
instances of the TimerFactory interface.
Guarantees that all TimerFactory instances have unique names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<TimerFactory> contents()
Return a list of the TimerFactory instances in this TimerFactoryBuilder.static void
destroy
(TimerFactory factory) Remove a TimerFactory so that it may be collected.static String
getTimerName
(String cname, String name) Construct the standard name for a Timer derived from a method in the tracing facility.static TimerFactory
static TimerFactory
make
(ObjectRegistrationManager orm, String name, String description) Create a new TimerFactory.
-
Field Details
-
fmap
-
-
Constructor Details
-
TimerFactoryBuilder
public TimerFactoryBuilder()
-
-
Method Details
-
getTimerName
Construct the standard name for a Timer derived from a method in the tracing facility.- Parameters:
cname
- The name of the monitored clasname
- The name of a monitored method or info method- Returns:
- The timer name
-
make
-
make
Create a new TimerFactory. No two TimerFactory instances can have the same name. -
destroy
Remove a TimerFactory so that it may be collected. -
contents
Return a list of the TimerFactory instances in this TimerFactoryBuilder. The list represents the state of the instances at the time this method is called; any susbsequent make/destroy calls do NOT affect this list.
-