org.alfresco.bm.event

Class AbstractEventProcessor

    • Field Detail

      • DEFAULT_CHART

        protected static final boolean DEFAULT_CHART
      • logger

        protected org.apache.commons.logging.Log logger
        Resource for derived classes to use for logging
    • Constructor Detail

      • AbstractEventProcessor

        public AbstractEventProcessor()
        Default constructor
    • Method Detail

      • setBeanName

        public void setBeanName(String beanName)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • setEventName

        public void setEventName(String eventName)
        Set the single event name that this processor can handle
      • setEventNames

        public void setEventNames(List<String> eventNames)
        Set the names of the events that this processor can handle
      • getWarnDelay

        public long getWarnDelay()
        Description copied from interface: EventProcessor
        Provide a hint for the processing framework on how much time should elapse before the warnings need to be issued over the delay
        Specified by:
        getWarnDelay in interface EventProcessor
        Returns:
        the processing time after which an warning is logged (default DEFAULT_WARN_DELAY)
      • setWarnDelay

        public void setWarnDelay(long warnDelay)
        Parameters:
        warnDelay - the time allowed for processing before a warning is logged
        See Also:
        getWarnDelay()
      • isChart

        public boolean isChart()
        Description copied from interface: EventProcessor
        Hint whether the result should be included in charts
        Specified by:
        isChart in interface EventProcessor
        Returns:
        true if results from this processor must be included in generated charts
      • setChart

        public void setChart(boolean chart)
        Parameters:
        chart - true to tag results for charting
        See Also:
        setChart(boolean)
      • register

        public void register()
        Register this instance for the event names that are handled.

Copyright © 2012. All Rights Reserved.