Class BSFEngineHandler
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.bsf.BSFEngineHandler
-
- All Implemented Interfaces:
Serializable,Destination
public class BSFEngineHandler extends Object implements Destination
Configuration for the BSF engine.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BSFEngineHandler()Instantiates a new BSF engine handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(NorthboundAlarm alarm)Accepts.StringgetClassName()Gets the class name.StringgetExtensions()Gets the extensions.StringgetFilter()Gets the filter.StringgetLanguage()Gets the language.StringgetName()Gets the destination name.StringgetOnAlarm()Gets the on alarm.StringgetOnStart()Gets the on start.StringgetOnStop()Gets the on stop.booleanisFirstOccurrenceOnly()Checks if is first occurrence only.voidsetClassName(String className)Sets the class name.voidsetExtensions(String extensions)Sets the extensions.voidsetFilter(String filter)Sets the filter.voidsetLanguage(String language)Sets the language.voidsetName(String name)Sets the name.voidsetOnAlarm(String onAlarm)Sets the on alarm.voidsetOnStart(String onStart)Sets the on start.voidsetOnStop(String onStop)Sets the on stop.
-
-
-
Method Detail
-
isFirstOccurrenceOnly
public boolean isFirstOccurrenceOnly()
Description copied from interface:DestinationChecks if is first occurrence only.- Specified by:
isFirstOccurrenceOnlyin interfaceDestination- Returns:
- true, if is first occurrence only
-
getName
public String getName()
Description copied from interface:DestinationGets the destination name.- Specified by:
getNamein interfaceDestination- Returns:
- the destination name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
getFilter
public String getFilter()
Gets the filter.- Returns:
- the filter
-
setFilter
public void setFilter(String filter)
Sets the filter.- Parameters:
filter- the new filter
-
getLanguage
public String getLanguage()
Gets the language.- Returns:
- the language
-
setLanguage
public void setLanguage(String language)
Sets the language.- Parameters:
language- the new language
-
getClassName
public String getClassName()
Gets the class name.- Returns:
- the class name
-
setClassName
public void setClassName(String className)
Sets the class name.- Parameters:
className- the new class name
-
getExtensions
public String getExtensions()
Gets the extensions.- Returns:
- the extensions
-
setExtensions
public void setExtensions(String extensions)
Sets the extensions.- Parameters:
extensions- the new extensions
-
getOnStart
public String getOnStart()
Gets the on start.- Returns:
- the on start
-
setOnStart
public void setOnStart(String onStart)
Sets the on start.- Parameters:
onStart- the new on start
-
getOnStop
public String getOnStop()
Gets the on stop.- Returns:
- the on stop
-
setOnStop
public void setOnStop(String onStop)
Sets the on stop.- Parameters:
onStop- the new on stop
-
getOnAlarm
public String getOnAlarm()
Gets the on alarm.- Returns:
- the on alarm
-
setOnAlarm
public void setOnAlarm(String onAlarm)
Sets the on alarm.- Parameters:
onAlarm- the new on alarm
-
accepts
public boolean accepts(NorthboundAlarm alarm)
Accepts.If the engine doesn't have filter, the method will return true.
If the method has a filter, it will be evaluated.
- Parameters:
alarm- the alarm- Returns:
- true, if successful
-
-