|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.DisabledManager
public final class DisabledManager
Manager implementation that does nothing or returns null or NullSimon as expected
from manager in disabled state. Does not support enable()/disable() - for this
use SwitchingManager.
| Field Summary |
|---|
| Fields inherited from interface org.javasimon.Manager |
|---|
HIERARCHY_DELIMITER, ROOT_SIMON_NAME |
| Constructor Summary | |
|---|---|
DisabledManager()
|
|
| Method Summary | |
|---|---|
CompositeCallback |
callback()
Accesses default composite callback of this manager. |
void |
clear()
Clears the whole manager and starts again with a single newly created Root Simon. |
ManagerConfiguration |
configuration()
Accesses configuration of this manager. |
void |
destroySimon(String name)
Removes Simon from the Manager. |
void |
disable()
Throws UnsupportedOperationException. |
void |
enable()
Throws UnsupportedOperationException. |
Counter |
getCounter(String name)
Returns "Null Counter" that always returns empty/null values and cannot measure anything. |
Simon |
getRootSimon()
Returns "Null Simon" that always returns empty/null values and cannot measure anything. |
Simon |
getSimon(String name)
Returns "Null Simon" that always returns empty/null values and cannot measure anything. |
Collection<String> |
getSimonNames()
Returns unmodifiable collection containing names of all existing Simons. |
Collection<Simon> |
getSimons(SimonPattern pattern)
Returns collection containing all existing Simons matching the pattern (can be null). |
Stopwatch |
getStopwatch(String name)
Returns "Null Stopwatch" that always returns empty/null values and cannot measure anything. |
boolean |
isEnabled()
Returns false. |
void |
message(String message)
Does nothing here. |
void |
warning(String message,
Exception cause)
Does nothing here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisabledManager()
| Method Detail |
|---|
public Simon getSimon(String name)
Stopwatch nor Counter.
getSimon in interface Managername - ignored
public void destroySimon(String name)
Manager
destroySimon in interface Managername - name of the Simonpublic void clear()
Manager
clear in interface Managerpublic CompositeCallback callback()
Manager
callback in interface Managerpublic ManagerConfiguration configuration()
Manager
configuration in interface Managerpublic Counter getCounter(String name)
getCounter in interface Managername - ignored
public Stopwatch getStopwatch(String name)
getStopwatch in interface Managername - ignored
public Simon getRootSimon()
Stopwatch nor Counter.
getRootSimon in interface Managerpublic Collection<String> getSimonNames()
Manager
getSimonNames in interface Managerpublic Collection<Simon> getSimons(SimonPattern pattern)
Managernull).
Collection is unmodifiable if null pattern is provided and all Simons are returned,
otherwise new collection with matching Simons is returned.
getSimons in interface Managerpattern - Simon name pattern (see SimonPattern
to find out more about possible patternspublic void enable()
UnsupportedOperationException.
enable in interface Managerpublic void disable()
UnsupportedOperationException.
disable in interface Managerpublic boolean isEnabled()
isEnabled in interface Managerpublic void message(String message)
message in interface Managermessage - not used
public void warning(String message,
Exception cause)
warning in interface Managermessage - not usedcause - not used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||