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 Details

    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • AbstractMonitorDestination

      protected AbstractMonitorDestination()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      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 this IConfigurable. 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 the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • makeXml

      protected String makeXml(String monitorName, EventType eventType, Severity severity, String eventCode, MonitorEvent event)
    • toXml

      public XmlBuilder toXml()
      Specified by:
      toXml in interface IMonitorDestination
    • getUserClass

      protected Class<?> getUserClass(Object clazz)
    • setName

      @Mandatory public void setName(String name)
      Description copied from interface: NameAware
      The functional name of the object.
      Specified by:
      setName in interface NameAware
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle