Package org.opennms.netmgt.trapd.jmx
Class Trapd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon<Trapd>
-
- org.opennms.netmgt.trapd.jmx.Trapd
-
- All Implemented Interfaces:
BaseOnmsMBean
,TrapdMBean
public class Trapd extends AbstractSpringContextJmxServiceDaemon<Trapd> implements TrapdMBean
Trapd class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon
DAEMON_BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description Trapd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getLoggingPrefix()
getLoggingPrefixprotected java.lang.String
getSpringContext()
getSpringContextlong
getTrapsDiscarded()
long
getTrapsErrored()
long
getTrapsReceived()
long
getV1TrapsReceived()
long
getV2cTrapsReceived()
long
getV3TrapsReceived()
long
getVUnknownTrapsReceived()
-
Methods inherited from class org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon
getContext, getDaemon, getStatus, getStatusText, init, start, status, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.daemon.BaseOnmsMBean
getStatus, getStatusText, init, start, status, stop
-
-
-
-
Method Detail
-
getLoggingPrefix
protected java.lang.String getLoggingPrefix()
getLoggingPrefix
- Specified by:
getLoggingPrefix
in classAbstractSpringContextJmxServiceDaemon<Trapd>
- Returns:
- a
String
object.
-
getSpringContext
protected java.lang.String getSpringContext()
getSpringContext
- Specified by:
getSpringContext
in classAbstractSpringContextJmxServiceDaemon<Trapd>
- Returns:
- a
String
object.
-
getTrapsReceived
public long getTrapsReceived()
- Specified by:
getTrapsReceived
in interfaceTrapdMBean
- Returns:
- The number of traps received since Trapd was last started
-
getV1TrapsReceived
public long getV1TrapsReceived()
- Specified by:
getV1TrapsReceived
in interfaceTrapdMBean
- Returns:
- The number of SNMPv1 traps received since Trapd was last started
-
getV2cTrapsReceived
public long getV2cTrapsReceived()
- Specified by:
getV2cTrapsReceived
in interfaceTrapdMBean
- Returns:
- The number of SNMPv2c traps received since Trapd was last started
-
getV3TrapsReceived
public long getV3TrapsReceived()
- Specified by:
getV3TrapsReceived
in interfaceTrapdMBean
- Returns:
- The number of SNMPv3 traps received since Trapd was last started
-
getVUnknownTrapsReceived
public long getVUnknownTrapsReceived()
- Specified by:
getVUnknownTrapsReceived
in interfaceTrapdMBean
- Returns:
- The number of traps with an unknown SNMP protocol version received since Trapd was last started
-
getTrapsDiscarded
public long getTrapsDiscarded()
- Specified by:
getTrapsDiscarded
in interfaceTrapdMBean
- Returns:
- The number of traps discarded, at user request, since Trapd was last started
-
getTrapsErrored
public long getTrapsErrored()
- Specified by:
getTrapsErrored
in interfaceTrapdMBean
- Returns:
- The number of traps not processed due to errors since Trapd was last started
-
-