Package org.opennms.netmgt.xml.eventconf
Class Maskelement
- java.lang.Object
-
- org.opennms.netmgt.xml.eventconf.Maskelement
-
- All Implemented Interfaces:
Serializable
public class Maskelement extends Object implements Serializable
The mask element- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TAG_HOST
The event host xml tagstatic String
TAG_INTERFACE
The event interface xml tagstatic String
TAG_NODEID
The event nodeid xml tagstatic String
TAG_SERVICE
The event service xml tagstatic String
TAG_SNMP_COMMUNITY
The SNMP community xml tagstatic String
TAG_SNMP_EID
The SNMP EID xml tagstatic String
TAG_SNMP_GENERIC
The SNMP generic xml tagstatic String
TAG_SNMP_SPECIFIC
The SNMP specific xml tagstatic String
TAG_SNMP_TRAPOID
static String
TAG_SNMPHOST
The event snmp host xml tagstatic String
TAG_SOURCE
The event source xml tagstatic String
TAG_UEI
The UEI xml tag
-
Constructor Summary
Constructors Constructor Description Maskelement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMevalue(String value)
EventMatcher
constructMatcher()
boolean
equals(Object obj)
String
getMename()
The mask element name.List<String>
getMevalues()
int
hashCode()
boolean
removeMevalue(String value)
void
setMename(String mename)
void
setMevalues(List<String> values)
String
toString()
-
-
-
Field Detail
-
TAG_UEI
public static final String TAG_UEI
The UEI xml tag- See Also:
- Constant Field Values
-
TAG_SOURCE
public static final String TAG_SOURCE
The event source xml tag- See Also:
- Constant Field Values
-
TAG_NODEID
public static final String TAG_NODEID
The event nodeid xml tag- See Also:
- Constant Field Values
-
TAG_HOST
public static final String TAG_HOST
The event host xml tag- See Also:
- Constant Field Values
-
TAG_INTERFACE
public static final String TAG_INTERFACE
The event interface xml tag- See Also:
- Constant Field Values
-
TAG_SNMPHOST
public static final String TAG_SNMPHOST
The event snmp host xml tag- See Also:
- Constant Field Values
-
TAG_SERVICE
public static final String TAG_SERVICE
The event service xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_EID
public static final String TAG_SNMP_EID
The SNMP EID xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_TRAPOID
public static final String TAG_SNMP_TRAPOID
- See Also:
- Constant Field Values
-
TAG_SNMP_SPECIFIC
public static final String TAG_SNMP_SPECIFIC
The SNMP specific xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_GENERIC
public static final String TAG_SNMP_GENERIC
The SNMP generic xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_COMMUNITY
public static final String TAG_SNMP_COMMUNITY
The SNMP community xml tag- See Also:
- Constant Field Values
-
-
Method Detail
-
addMevalue
public void addMevalue(String value)
-
getMename
public String getMename()
The mask element name. Must be from the following subset:
- uei
- the OpenNMS Universal Event Identifier
- source
- source of the event; "trapd" for received SNMP traps; warning: these aren't standardized
- host
- host related to the event; for SNMP traps this is the IP source address of the host that sent the trap to OpenNMS
- snmphost
- SNMP host related to the event; for SNMPv1 traps this is IP address reported in the trap; for SNMPv2 traps and later this is the same as "host"
- nodeid
- the OpenNMS node identifier for the node related to this event
- interface
- interface related to the event; for SNMP traps this is the same as "snmphost"
- service
- Service name
- id
- enterprise ID in an SNMP trap
- specific
- specific value in an SNMP trap
- generic
- generic value in an SNMP trap
- community
- community string in an SNMP trap
-
removeMevalue
public boolean removeMevalue(String value)
-
setMename
public void setMename(String mename)
-
constructMatcher
public EventMatcher constructMatcher()
-
-