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 StringTAG_HOSTThe event host xml tagstatic StringTAG_INTERFACEThe event interface xml tagstatic StringTAG_NODEIDThe event nodeid xml tagstatic StringTAG_SERVICEThe event service xml tagstatic StringTAG_SNMP_COMMUNITYThe SNMP community xml tagstatic StringTAG_SNMP_EIDThe SNMP EID xml tagstatic StringTAG_SNMP_GENERICThe SNMP generic xml tagstatic StringTAG_SNMP_SPECIFICThe SNMP specific xml tagstatic StringTAG_SNMP_TRAPOIDstatic StringTAG_SNMPHOSTThe event snmp host xml tagstatic StringTAG_SOURCEThe event source xml tagstatic StringTAG_UEIThe UEI xml tag
-
Constructor Summary
Constructors Constructor Description Maskelement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMevalue(String value)EventMatcherconstructMatcher()booleanequals(Object obj)StringgetMename()The mask element name.List<String>getMevalues()inthashCode()booleanremoveMevalue(String value)voidsetMename(String mename)voidsetMevalues(List<String> values)StringtoString()
-
-
-
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()
-
-