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 TypeMethodDescriptionvoidConfigure this component.protected Class<?> getUserClass(Object clazz) booleanprotected StringmakeXml(String monitorName, EventType eventType, Severity severity, String eventCode, MonitorEvent event) voidThe functional name of the object.voidstart()voidstop()toXml()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup, isConfiguredMethods inherited from interface org.frankframework.monitoring.IMonitorDestination
fireEventMethods 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:IConfigurableConfigure 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:
configurein interfaceIConfigurable- Throws:
ConfigurationException- in case it was not able to configure the component.
-
makeXml
-
toXml
- Specified by:
toXmlin interfaceIMonitorDestination
-
getUserClass
-
setName
Description copied from interface:NameAwareThe functional name of the object. -
start
public void start()- Specified by:
startin interfaceConfigurableLifecycle- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-