|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.util.counters.CounterFactory
This class is the Counter's factory. It is the main entry point for operations on counters. The user can:
| Nested Class Summary | |
static class |
CounterFactory.Type
Enum class for all different types of counters. |
| Constructor Summary | |
CounterFactory()
|
|
| Method Summary | |
static Counter |
createCounter(String name,
CounterFactory.Type type)
Create a new public counter of the given type. |
static Counter |
createCounter(String name,
CounterFactory.Type type,
boolean visible)
Create a new counter of the given type and visibility. |
static Counter |
createCounter(String name,
String base,
CounterFactory.Type type)
Create a new public aggregate counter of the given type. |
static Counter |
createCounter(String name,
String base,
CounterFactory.Type type,
boolean visible)
Create a new aggregate counter of the given type and visibility. |
static Counter |
createCounter(String name,
String first,
String second,
CounterFactory.Type type)
Create a new public aggregate counter of the given type. |
static Counter |
createCounter(String name,
String first,
String second,
CounterFactory.Type type,
boolean visible)
Create a new aggregate counter of the given type and visibility. |
static Counter |
getCounter(String name)
Search the defined counters for a counter of the given name. |
static Iterator |
getCounters()
Retrieve an iterator giving the list of public defined counters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CounterFactory()
| Method Detail |
public static Counter getCounter(String name)
name - the name of the counter to retrieve
public static Counter createCounter(String name,
CounterFactory.Type type)
name - the name of the counter to createtype - the type of the counter
public static Counter createCounter(String name,
CounterFactory.Type type,
boolean visible)
name - the name of the counter to createtype - the type of the countervisible - boolean specifying if the counter is public or not
public static Counter createCounter(String name,
String base,
CounterFactory.Type type)
name - the name of the counter to createbase - the name of the counter to use for computationtype - the type of the counter
public static Counter createCounter(String name,
String base,
CounterFactory.Type type,
boolean visible)
name - the name of the counter to createbase - the name of the counter to use for computationtype - the type of the countervisible - boolean specifying if the counter is public or not
public static Counter createCounter(String name,
String first,
String second,
CounterFactory.Type type)
name - the name of the counter to createfirst - the name of the first counter to use for computationsecond - the name of the first counter to use for computationtype - the type of the counter
public static Counter createCounter(String name,
String first,
String second,
CounterFactory.Type type,
boolean visible)
name - the name of the counter to createfirst - the name of the first counter to use for computationsecond - the name of the first counter to use for computationtype - the type of the countervisible - boolean specifying if the counter is public or not
public static Iterator getCounters()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||