- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.SnmpMpdMib
-
- All Implemented Interfaces:
EventListener,MOGroup,org.snmp4j.event.CounterListener
public class SnmpMpdMib extends Object implements MOGroup, org.snmp4j.event.CounterListener
-
-
Field Summary
Fields Modifier and Type Field Description static org.snmp4j.smi.OIDoidSnmpInvalidMsgsstatic org.snmp4j.smi.OIDoidSnmpMpdMibOID of this MIB module for usage which can be used for its identification.static org.snmp4j.smi.OIDoidSnmpUnknownPDUHandlersstatic org.snmp4j.smi.OIDoidSnmpUnknownSecurityModels
-
Constructor Summary
Constructors Modifier Constructor Description protectedSnmpMpdMib()Constructs a SnmpMpdMib instance without actually creating itsManagedObjectinstances.SnmpMpdMib(MOFactory moFactory)Constructs a SnmpMpdMib instance and actually creates itsManagedObjectinstances using the suppliedMOFactory(by callingcreateMO(MOFactory moFactory)).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImportedTCsToFactory(MOFactory moFactory)protected voidaddTCsToFactory(MOFactory moFactory)protected voidcreateMO(MOFactory moFactory)Create the ManagedObjects defined for this MIB module using the specifiedMOFactory.MOScalar<org.snmp4j.smi.Counter32>getSnmpInvalidMsgs()MOScalar<org.snmp4j.smi.Counter32>getSnmpUnknownPDUHandlers()MOScalar<org.snmp4j.smi.Counter32>getSnmpUnknownSecurityModels()voidincrementCounter(org.snmp4j.event.CounterEvent event)voidregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)Registers the managed objects of this group with the server for the supplied context.voidunregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)Unregisters the managed objects of this group from the supplied server and from the supplied context.
-
-
-
Field Detail
-
oidSnmpMpdMib
public static final org.snmp4j.smi.OID oidSnmpMpdMib
OID 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 Detail
-
SnmpMpdMib
protected SnmpMpdMib()
Constructs a SnmpMpdMib instance without actually creating itsManagedObjectinstances. This has to be done in a sub-class constructor or after construction by callingcreateMO(MOFactory moFactory).
-
SnmpMpdMib
public SnmpMpdMib(MOFactory moFactory)
Constructs a SnmpMpdMib instance and actually creates itsManagedObjectinstances using the suppliedMOFactory(by callingcreateMO(MOFactory moFactory)).- Parameters:
moFactory- theMOFactoryto be used to create the managed objects for this module.
-
-
Method Detail
-
createMO
protected void createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory.- Parameters:
moFactory- theMOFactoryinstance to use for object creation.
-
getSnmpUnknownSecurityModels
public MOScalar<org.snmp4j.smi.Counter32> getSnmpUnknownSecurityModels()
-
getSnmpInvalidMsgs
public MOScalar<org.snmp4j.smi.Counter32> getSnmpInvalidMsgs()
-
getSnmpUnknownPDUHandlers
public MOScalar<org.snmp4j.smi.Counter32> getSnmpUnknownPDUHandlers()
-
registerMOs
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
Description copied from interface:MOGroupRegisters the managed objects of this group with the server for the supplied context.- Specified by:
registerMOsin interfaceMOGroup- Parameters:
server- theMOServerwhere to register the managed objects.context- the context to use (may benullif no specific context is selected).- Throws:
DuplicateRegistrationException- if a managed object's scope (i.e. lower bound) is already registered at the server.
-
unregisterMOs
public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
Description copied from interface:MOGroupUnregisters the managed objects of this group from the supplied server and from the supplied context.- Specified by:
unregisterMOsin interfaceMOGroup- Parameters:
server- theMOServerwhere to unregister the managed objects.context- the context to use (may benullif no specific context is selected).
-
incrementCounter
public void incrementCounter(org.snmp4j.event.CounterEvent event)
- Specified by:
incrementCounterin interfaceorg.snmp4j.event.CounterListener
-
addTCsToFactory
protected void addTCsToFactory(MOFactory moFactory)
-
addImportedTCsToFactory
public void addImportedTCsToFactory(MOFactory moFactory)
-
-