public class TestingInApplicationMonitor extends InApplicationMonitor
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.log4j.Logger |
LOGGER |
private static ThreadLocal<CorePlugin> |
threadLocalCorePlugin |
private static ThreadLocal<List<MonitorPlugin>> |
threadLocalPluginsList |
INSTANCE, semaphore| Constructor and Description |
|---|
TestingInApplicationMonitor(CorePlugin corePlugin,
KeyHandler keyHandler) |
| Modifier and Type | Method and Description |
|---|---|
CorePlugin |
getCorePlugin() |
List<MonitorPlugin> |
getPlugins() |
static InApplicationMonitor |
initInstanceForTesting(CorePlugin corePlugin,
KeyHandler keyHandler)
This will fail if tests are run multi threaded use with utmost care.
|
static void |
resetInstanceForTesting()
This will fail if tests are run multi threaded use with utmost care.
|
void |
resetThreadLocalState() |
void |
setThreadLocalState()
this method allows Tests running multi threaded to achieve some level of isolation against
activities from other threads.
|
activate, addHighRateTimerMeasurement, addHistorizable, addReportableObserver, addSingleEventTimerMeasurement, addTimerMeasurement, addTimerMeasurement, deactivate, getInstance, getKeyHandler, getMaxHistoryEntriesToKeep, getRegisteredPluginKeys, incrementCounter, incrementCounter, incrementHighRateCounter, initializeCounter, initializeTimerMeasurement, initInstance, isMonitorActive, registerPlugin, registerStateValue, registerVersion, removeAllPlugins, removeReportableObserver, reportInto, setMaxHistoryEntriesToKeepprivate static final org.apache.log4j.Logger LOGGER
private static final ThreadLocal<CorePlugin> threadLocalCorePlugin
private static final ThreadLocal<List<MonitorPlugin>> threadLocalPluginsList
public TestingInApplicationMonitor(CorePlugin corePlugin, KeyHandler keyHandler)
public static InApplicationMonitor initInstanceForTesting(CorePlugin corePlugin, KeyHandler keyHandler)
public static void resetInstanceForTesting()
public CorePlugin getCorePlugin()
getCorePlugin in class InApplicationMonitorpublic List<MonitorPlugin> getPlugins()
getPlugins in class InApplicationMonitorpublic void setThreadLocalState()
setThreadLocalState in class InApplicationMonitorpublic void resetThreadLocalState()
resetThreadLocalState in class InApplicationMonitorCopyright © 2013 Immobilien Scout GmbH. All Rights Reserved.