public class Trigger extends Object implements ITrigger
ITrigger.TriggerType
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
static int |
SOURCE_FILTERING_BY_ADAPTER |
static int |
SOURCE_FILTERING_BY_LOWER_LEVEL_OBJECT |
static int |
SOURCE_FILTERING_NONE |
Constructor and Description |
---|
Trigger() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPeriod, getThreshold, getTriggerType, setTriggerType
protected org.apache.logging.log4j.Logger log
public static final int SOURCE_FILTERING_NONE
public static final int SOURCE_FILTERING_BY_ADAPTER
public static final int SOURCE_FILTERING_BY_LOWER_LEVEL_OBJECT
public boolean isConfigured()
isConfigured
in interface ITrigger
public void onApplicationEvent(FireMonitorEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<FireMonitorEvent>
public void evaluateEvent(FireMonitorEvent event)
protected boolean evaluateAdapterFilters(EventThrowing source)
public void evaluateEvent(EventThrowing source, String eventCode) throws MonitorException
MonitorException
public void clearEvents()
clearEvents
in interface ITrigger
protected void cleanUpEvents(Date now)
public void toXml(XmlBuilder monitor)
public void setMonitor(Monitor monitor)
setMonitor
in interface ITrigger
public Monitor getMonitor()
public void addEventCode(String code)
public void setEventCode(String code)
public void setEventCodes(String[] arr)
setEventCodes
in interface ITrigger
public String[] getEventCodes()
getEventCodes
in interface ITrigger
public void setSeverity(String severity)
public void setSeverityEnum(SeverityEnum enumeration)
setSeverityEnum
in interface ITrigger
public SeverityEnum getSeverityEnum()
getSeverityEnum
in interface ITrigger
public String getSeverity()
getSeverity
in interface ITrigger
public void setThreshold(int i)
setThreshold
in interface ITrigger
public Map<String,AdapterFilter> getAdapterFilters()
getAdapterFilters
in interface ITrigger
public void clearAdapterFilters()
clearAdapterFilters
in interface ITrigger
public void registerAdapterFilter(AdapterFilter af)
registerAdapterFilter
in interface ITrigger
public boolean isFilterOnLowerLevelObjects()
public boolean isFilterOnAdapters()
public void setSourceFilteringEnum(SourceFiltering filtering)
setSourceFilteringEnum
in interface ITrigger
public String getSourceFiltering()
getSourceFiltering
in interface ITrigger
public SourceFiltering getSourceFilteringEnum()
getSourceFilteringEnum
in interface ITrigger
Copyright © 2023 Frank!Framework. All rights reserved.