|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.integration.ComponentRegistry
The registry where components register/unregister their monitors.
Components integrated with InfraRED should ensure that their respective ComponentMonitor
implementations are registered before any of their aspects are executed.
| Constructor Summary | |
ComponentRegistry()
|
|
| Method Summary | |
protected static void |
clear()
Clears all registrations |
static ContextApiTime[] |
getAllComponentStatistics()
|
static Collection |
getAllRegisteredComponents()
Gets a Collection of all monitors registered. |
static ComponentMonitor |
getComponentMonitor(String name)
Gets the component monitor registered by the given name; returns null if none is registered |
static boolean |
isRegistered(String name)
Checks if any component montior is registered by the given name. |
static boolean |
register(String name,
ComponentMonitor compMonitor)
Registers a monitor in a given name. |
static boolean |
reregister(String name,
ComponentMonitor compMonitor)
Registers a monitor in a given name. |
static void |
resetAllRegisteredComponents()
|
static boolean |
unregister(String name)
Unregisters the monitor by the given name, if any has been already registered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentRegistry()
| Method Detail |
public static boolean register(String name,
ComponentMonitor compMonitor)
name - of the component whose monitor this iscompMonitor - the ComponentMonitor implementation
public static boolean reregister(String name,
ComponentMonitor compMonitor)
name - compMonitor -
IllegalArgumentException - if name of compMonitor parameters are nullpublic static boolean unregister(String name)
name -
public static ComponentMonitor getComponentMonitor(String name)
name -
ComponentMonitor implementationpublic static boolean isRegistered(String name)
name -
ComponentMonitor registered by this name, else false.public static Collection getAllRegisteredComponents()
public static void resetAllRegisteredComponents()
public static ContextApiTime[] getAllComponentStatistics()
protected static void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||