Package org.frankframework.monitoring
Class MonitorManager
java.lang.Object
org.frankframework.lifecycle.ConfigurableLifecyleBase
org.frankframework.monitoring.MonitorManager
- All Implemented Interfaces:
EventListener
,ConfigurableLifecycle
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<RegisterMonitorEvent>
,org.springframework.context.Lifecycle
@FrankDocGroup(MONITORING)
public class MonitorManager
extends ConfigurableLifecyleBase
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<RegisterMonitorEvent>
Manager for Monitoring.
- Since:
- 4.9
- Version:
- 2.0
- Author:
- Gerrit van Brakel, Niels Meijer
-
Field Summary
Fields inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMonitor
(Monitor monitor) void
(re)configure all destinations and all monitors.findMonitor
(String name) org.springframework.context.ApplicationContext
getDestination
(String name) getMonitor
(int index) void
void
registerDestination
(IMonitorDestination monitorAdapter) void
removeMonitor
(Monitor monitor) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
start()
void
stop()
toXml()
Methods inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
getState, inState, isRunning, updateState
-
Constructor Details
-
MonitorManager
public MonitorManager()
-
-
Method Details
-
configure
(re)configure all destinations and all monitors. Monitors will register all required eventNotificationListeners.- Specified by:
configure
in interfaceConfigurableLifecycle
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
registerDestination
-
getDestination
-
getDestinations
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<RegisterMonitorEvent>
-
addMonitor
-
removeMonitor
-
getMonitor
-
findMonitor
-
getMonitors
-
getEvents
-
toXml
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-