Package org.frankframework.monitoring
Class Trigger
java.lang.Object
org.frankframework.monitoring.Trigger
- All Implemented Interfaces:
EventListener
,LazyLoadingEventListener<FireMonitorEvent>
,ITrigger
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationListener<FireMonitorEvent>
A Trigger that has its type configured at startup. Either use type = ALARM or type = CLEARING.
- Since:
- 4.9
- Author:
- Gerrit van Brakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.frankframework.monitoring.ITrigger
ITrigger.TriggerType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addEventCodeText
(String code) protected void
changeState
(FireMonitorEvent event) protected void
cleanUpEvents
(Instant now) void
void
void
void
destroy()
protected boolean
evaluateAdapterFilters
(EventThrowing source) protected void
evaluateEvent
(FireMonitorEvent event) int
int
boolean
isAlarm()
boolean
boolean
boolean
void
void
setEventCode
(String code) void
setEventCodes
(List<String> events) void
setMonitor
(Monitor monitor) void
setPeriod
(int i) void
setSeverity
(Severity severity) void
setSourceFiltering
(SourceFiltering sourceFiltering) void
setThreshold
(int i) void
setTriggerType
(ITrigger.TriggerType triggerType) void
toXml
(XmlBuilder monitor) 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.ApplicationListener
supportsAsyncExecution
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
Trigger
public Trigger()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceITrigger
- Throws:
ConfigurationException
-
isConfigured
public boolean isConfigured()- Specified by:
isConfigured
in interfaceITrigger
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<FireMonitorEvent>
-
evaluateEvent
-
evaluateAdapterFilters
-
changeState
- Throws:
MonitorException
-
clearEvents
public void clearEvents()- Specified by:
clearEvents
in interfaceITrigger
-
cleanUpEvents
-
toXml
-
setMonitor
- Specified by:
setMonitor
in interfaceITrigger
-
isAlarm
public boolean isAlarm() -
addEventCodeText
-
setEventCode
-
setEventCodes
- Specified by:
setEventCodes
in interfaceITrigger
-
getEventCodes
- Specified by:
getEventCodes
in interfaceITrigger
-
setThreshold
public void setThreshold(int i) - Specified by:
setThreshold
in interfaceITrigger
-
setPeriod
public void setPeriod(int i) -
getAdapterFilters
- Specified by:
getAdapterFilters
in interfaceITrigger
-
clearAdapterFilters
public void clearAdapterFilters()- Specified by:
clearAdapterFilters
in interfaceITrigger
-
isFilterOnLowerLevelObjects
public boolean isFilterOnLowerLevelObjects() -
addAdapterFilter
- Specified by:
addAdapterFilter
in interfaceITrigger
-
isFilterOnAdapters
public boolean isFilterOnAdapters() -
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
getMonitor
-
getSeverity
- Specified by:
getSeverity
in interfaceITrigger
-
setSeverity
- Specified by:
setSeverity
in interfaceITrigger
-
getSourceFiltering
- Specified by:
getSourceFiltering
in interfaceITrigger
-
setSourceFiltering
- Specified by:
setSourceFiltering
in interfaceITrigger
-
getTriggerType
- Specified by:
getTriggerType
in interfaceITrigger
-
setTriggerType
- Specified by:
setTriggerType
in interfaceITrigger
-
getThreshold
public int getThreshold()- Specified by:
getThreshold
in interfaceITrigger
-
getPeriod
public int getPeriod()
-