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 boolean
accepts(NorthboundAlarm alarm)
Accepts.String
getClassName()
Gets the class name.String
getExtensions()
Gets the extensions.String
getFilter()
Gets the filter.String
getLanguage()
Gets the language.String
getName()
Gets the destination name.String
getOnAlarm()
Gets the on alarm.String
getOnStart()
Gets the on start.String
getOnStop()
Gets the on stop.boolean
isFirstOccurrenceOnly()
Checks if is first occurrence only.void
setClassName(String className)
Sets the class name.void
setExtensions(String extensions)
Sets the extensions.void
setFilter(String filter)
Sets the filter.void
setLanguage(String language)
Sets the language.void
setName(String name)
Sets the name.void
setOnAlarm(String onAlarm)
Sets the on alarm.void
setOnStart(String onStart)
Sets the on start.void
setOnStop(String onStop)
Sets the on stop.
-
-
-
Method Detail
-
isFirstOccurrenceOnly
public boolean isFirstOccurrenceOnly()
Description copied from interface:Destination
Checks if is first occurrence only.- Specified by:
isFirstOccurrenceOnly
in interfaceDestination
- Returns:
- true, if is first occurrence only
-
getName
public String getName()
Description copied from interface:Destination
Gets the destination name.- Specified by:
getName
in 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
-
-