Package org.opennms.netmgt.xml.eventconf
Class Maskelement
- java.lang.Object
-
- org.opennms.netmgt.xml.eventconf.Maskelement
-
- All Implemented Interfaces:
java.io.Serializable
public class Maskelement extends java.lang.Object implements java.io.Serializable
The mask element- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG_HOST
The event host xml tagstatic java.lang.String
TAG_INTERFACE
The event interface xml tagstatic java.lang.String
TAG_NODEID
The event nodeid xml tagstatic java.lang.String
TAG_SERVICE
The event service xml tagstatic java.lang.String
TAG_SNMP_COMMUNITY
The SNMP community xml tagstatic java.lang.String
TAG_SNMP_EID
The SNMP EID xml tagstatic java.lang.String
TAG_SNMP_GENERIC
The SNMP generic xml tagstatic java.lang.String
TAG_SNMP_SPECIFIC
The SNMP specific xml tagstatic java.lang.String
TAG_SNMP_TRAPOID
static java.lang.String
TAG_SNMPHOST
The event snmp host xml tagstatic java.lang.String
TAG_SOURCE
The event source xml tagstatic java.lang.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(java.lang.String value)
EventMatcher
constructMatcher()
boolean
equals(java.lang.Object obj)
java.lang.String
getMename()
The mask element name.java.util.List<java.lang.String>
getMevalues()
int
hashCode()
boolean
removeMevalue(java.lang.String value)
void
setMename(java.lang.String mename)
void
setMevalues(java.util.List<java.lang.String> values)
java.lang.String
toString()
-
-
-
Field Detail
-
TAG_UEI
public static final java.lang.String TAG_UEI
The UEI xml tag- See Also:
- Constant Field Values
-
TAG_SOURCE
public static final java.lang.String TAG_SOURCE
The event source xml tag- See Also:
- Constant Field Values
-
TAG_NODEID
public static final java.lang.String TAG_NODEID
The event nodeid xml tag- See Also:
- Constant Field Values
-
TAG_HOST
public static final java.lang.String TAG_HOST
The event host xml tag- See Also:
- Constant Field Values
-
TAG_INTERFACE
public static final java.lang.String TAG_INTERFACE
The event interface xml tag- See Also:
- Constant Field Values
-
TAG_SNMPHOST
public static final java.lang.String TAG_SNMPHOST
The event snmp host xml tag- See Also:
- Constant Field Values
-
TAG_SERVICE
public static final java.lang.String TAG_SERVICE
The event service xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_EID
public static final java.lang.String TAG_SNMP_EID
The SNMP EID xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_TRAPOID
public static final java.lang.String TAG_SNMP_TRAPOID
- See Also:
- Constant Field Values
-
TAG_SNMP_SPECIFIC
public static final java.lang.String TAG_SNMP_SPECIFIC
The SNMP specific xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_GENERIC
public static final java.lang.String TAG_SNMP_GENERIC
The SNMP generic xml tag- See Also:
- Constant Field Values
-
TAG_SNMP_COMMUNITY
public static final java.lang.String TAG_SNMP_COMMUNITY
The SNMP community xml tag- See Also:
- Constant Field Values
-
-
Method Detail
-
addMevalue
public void addMevalue(java.lang.String value)
-
getMename
public java.lang.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
-
getMevalues
public java.util.List<java.lang.String> getMevalues()
-
removeMevalue
public boolean removeMevalue(java.lang.String value)
-
setMename
public void setMename(java.lang.String mename)
-
setMevalues
public void setMevalues(java.util.List<java.lang.String> values)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
constructMatcher
public EventMatcher constructMatcher()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-