Package org.frankframework.monitoring
Class AbstractMonitorDestination
java.lang.Object
org.frankframework.monitoring.AbstractMonitorDestination
- All Implemented Interfaces:
HasName
,IConfigurable
,NameAware
,ConfigurableLifecycle
,IMonitorDestination
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
MonitorDestination
public abstract class AbstractMonitorDestination
extends Object
implements IMonitorDestination, org.springframework.context.ApplicationContextAware
Base class for Monitor Destination implementations.
- Author:
- Gerrit van Brakel
-
Field Summary
FieldsFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure this component.protected Class
<?> getUserClass
(Object clazz) boolean
protected String
makeXml
(String monitorName, EventType eventType, Severity severity, String eventCode, MonitorEvent event) void
The functional name of the object.void
start()
void
stop()
toXml()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup
Methods inherited from interface org.frankframework.monitoring.IMonitorDestination
fireEvent
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
AbstractMonitorDestination
protected AbstractMonitorDestination()
-
-
Method Details
-
configure
Description copied from interface:IConfigurable
Configure this component.configure()
is called once at startup of the framework in the configure method of the owner of thisIConfigurable
. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
makeXml
-
toXml
- Specified by:
toXml
in interfaceIMonitorDestination
-
getUserClass
-
setName
Description copied from interface:NameAware
The functional name of the object. -
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-