public class SnmpMpdMib extends Object implements MOGroup, org.snmp4j.event.CounterListener
Modifier and Type | Field and Description |
---|---|
static org.snmp4j.smi.OID |
oidSnmpInvalidMsgs |
static org.snmp4j.smi.OID |
oidSnmpMpdMib
OID of this MIB module for usage which can be
used for its identification.
|
static org.snmp4j.smi.OID |
oidSnmpUnknownPDUHandlers |
static org.snmp4j.smi.OID |
oidSnmpUnknownSecurityModels |
Modifier | Constructor and Description |
---|---|
protected |
SnmpMpdMib()
Constructs a SnmpMpdMib instance without actually creating its
ManagedObject instances. |
|
SnmpMpdMib(MOFactory moFactory)
Constructs a SnmpMpdMib instance and actually creates its
ManagedObject instances using the supplied
MOFactory (by calling
createMO(MOFactory moFactory) ). |
Modifier and Type | Method and Description |
---|---|
void |
addImportedTCsToFactory(MOFactory moFactory) |
protected void |
addTCsToFactory(MOFactory moFactory) |
protected void |
createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module
using the specified
MOFactory . |
MOScalar<org.snmp4j.smi.Counter32> |
getSnmpInvalidMsgs() |
MOScalar<org.snmp4j.smi.Counter32> |
getSnmpUnknownPDUHandlers() |
MOScalar<org.snmp4j.smi.Counter32> |
getSnmpUnknownSecurityModels() |
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.
|
public static final org.snmp4j.smi.OID oidSnmpMpdMib
public static final org.snmp4j.smi.OID oidSnmpUnknownSecurityModels
public static final org.snmp4j.smi.OID oidSnmpInvalidMsgs
public static final org.snmp4j.smi.OID oidSnmpUnknownPDUHandlers
protected SnmpMpdMib()
ManagedObject
instances. This has to be done in a
sub-class constructor or after construction by calling
createMO(MOFactory moFactory)
.public SnmpMpdMib(MOFactory moFactory)
ManagedObject
instances using the supplied
MOFactory
(by calling
createMO(MOFactory moFactory)
).moFactory
- the MOFactory
to be used to create the
managed objects for this module.protected void createMO(MOFactory moFactory)
MOFactory
.moFactory
- the MOFactory
instance to use for object
creation.public MOScalar<org.snmp4j.smi.Counter32> getSnmpUnknownSecurityModels()
public MOScalar<org.snmp4j.smi.Counter32> getSnmpInvalidMsgs()
public MOScalar<org.snmp4j.smi.Counter32> getSnmpUnknownPDUHandlers()
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
MOGroup
registerMOs
in interface MOGroup
server
- the MOServer
where to register the managed objects.context
- the context to use (may be null
if no specific context
is selected).DuplicateRegistrationException
- if a managed object's scope (i.e. lower bound) is already registered
at the server.public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
MOGroup
unregisterMOs
in interface MOGroup
server
- the MOServer
where to unregister the managed objects.context
- the context to use (may be null
if no specific context
is selected).public void incrementCounter(org.snmp4j.event.CounterEvent event)
incrementCounter
in interface org.snmp4j.event.CounterListener
protected void addTCsToFactory(MOFactory moFactory)
public void addImportedTCsToFactory(MOFactory moFactory)
Copyright © 2018 SNMP4J.org. All rights reserved.