public final class CounterFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CounterFactory.Type
Enum class for all different types of counters.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static Counter getCounter(String name)
name
- the name of the counter to retrievepublic static Counter createCounter(String name, CounterFactory.Type type)
name
- the name of the counter to createtype
- the type of the counterpublic 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 notpublic 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 counterpublic 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 notpublic 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 counterpublic 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 notpublic static Iterator getCounters()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.