java.lang.Object
org.snmp4j.agent.mo.snmp.SnmpMpdMib
- All Implemented Interfaces:
EventListener
,MOGroup
,org.snmp4j.event.CounterListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.snmp4j.smi.OID
static final org.snmp4j.smi.OID
OID of this MIB module for usage which can be used for its identification.static final org.snmp4j.smi.OID
static final org.snmp4j.smi.OID
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructs a SnmpMpdMib instance without actually creating itsManagedObject
instances.SnmpMpdMib
(MOFactory moFactory) Constructs a SnmpMpdMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
). -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImportedTCsToFactory
(MOFactory moFactory) protected void
addTCsToFactory
(MOFactory moFactory) protected void
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.MOScalar
<org.snmp4j.smi.Counter32> MOScalar
<org.snmp4j.smi.Counter32> MOScalar
<org.snmp4j.smi.Counter32> void
incrementCounter
(org.snmp4j.event.CounterEvent event) void
registerMOs
(MOServer server, org.snmp4j.smi.OctetString context) Registers the managed objects of this group with the server for the supplied context.void
unregisterMOs
(MOServer server, org.snmp4j.smi.OctetString context) Unregisters the managed objects of this group from the supplied server and from the supplied context.
-
Field Details
-
oidSnmpMpdMib
public static final org.snmp4j.smi.OID oidSnmpMpdMibOID of this MIB module for usage which can be used for its identification. -
oidSnmpUnknownSecurityModels
public static final org.snmp4j.smi.OID oidSnmpUnknownSecurityModels -
oidSnmpInvalidMsgs
public static final org.snmp4j.smi.OID oidSnmpInvalidMsgs -
oidSnmpUnknownPDUHandlers
public static final org.snmp4j.smi.OID oidSnmpUnknownPDUHandlers
-
-
Constructor Details
-
SnmpMpdMib
protected SnmpMpdMib()Constructs a SnmpMpdMib instance without actually creating itsManagedObject
instances. This has to be done in a sub-class constructor or after construction by callingcreateMO(MOFactory moFactory)
. -
SnmpMpdMib
Constructs a SnmpMpdMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).- Parameters:
moFactory
- theMOFactory
to be used to create the managed objects for this module.
-
-
Method Details
-
createMO
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.- Parameters:
moFactory
- theMOFactory
instance to use for object creation.
-
getSnmpUnknownSecurityModels
-
getSnmpInvalidMsgs
-
getSnmpUnknownPDUHandlers
-
registerMOs
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException Description copied from interface:MOGroup
Registers the managed objects of this group with the server for the supplied context.- Specified by:
registerMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to register the managed objects.context
- the context to use (may benull
if no specific context is selected).- Throws:
DuplicateRegistrationException
- if a managed object's scope (i.e. lower bound) is already registered at the server.
-
unregisterMOs
Description copied from interface:MOGroup
Unregisters the managed objects of this group from the supplied server and from the supplied context.- Specified by:
unregisterMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to unregister the managed objects.context
- the context to use (may benull
if no specific context is selected).
-
incrementCounter
public void incrementCounter(org.snmp4j.event.CounterEvent event) - Specified by:
incrementCounter
in interfaceorg.snmp4j.event.CounterListener
-
addTCsToFactory
-
addImportedTCsToFactory
-