public class Snmp4jProxyMib extends Object implements MOGroup, RowStatusListener, MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
Modifier and Type | Class and Description |
---|---|
class |
Snmp4jProxyMib.Snmp4jProxyEntryRow |
static class |
Snmp4jProxyMib.Snmp4jProxyTypeEnum |
class |
Snmp4jProxyMib.SnmpAdminString |
class |
Snmp4jProxyMib.SnmpEngineID |
Modifier | Constructor and Description |
---|---|
protected |
Snmp4jProxyMib()
Constructs a Snmp4jProxyMib instance without actually creating its
ManagedObject instances. |
protected |
Snmp4jProxyMib(MOFactory moFactory)
Constructs a Snmp4jProxyMib instance and actually creates its
ManagedObject instances using the supplied
MOFactory (by calling
createMO(MOFactory moFactory) ). |
|
Snmp4jProxyMib(MOFactory moFactory,
org.snmp4j.Session session,
MOServer server,
SnmpTargetMIB targetMIB)
Constructs a Snmp4jProxyMib 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 . |
MOTable |
getSnmp4jProxyEntry() |
void |
registerMOs(MOServer server,
org.snmp4j.smi.OctetString context)
Registers the managed objects of this group with the server for the
supplied context.
|
void |
rowChanged(MOTableRowEvent event)
A column or a complete row is changed/has been changed.
|
void |
rowStatusChanged(RowStatusEvent event) |
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 oidSnmp4jProxyMib
public static final org.snmp4j.smi.OID oidSnmp4jProxyEntry
public static final org.snmp4j.smi.OID oidSnmp4jProxyName
public static final String tcModuleSnmpFrameworkMib
public static final String tcDefSnmpEngineID
public static final String tcDefSnmpAdminString
public static final String tcModuleSNMPv2Tc
public static final String tcDefStorageType
public static final String tcDefRowStatus
public static final int colSnmp4jProxyContextEngineID
public static final int colSnmp4jProxyContextName
public static final int colSnmp4jProxySubtree
public static final int colSnmp4jProxyType
public static final int colSnmp4jProxyTarget
public static final int colSnmp4jProxyStorageType
public static final int colSnmp4jProxyRowStatus
public static final int colSnmp4jProxyTargetSubtree
public static final int idxSnmp4jProxyContextEngineID
public static final int idxSnmp4jProxyContextName
public static final int idxSnmp4jProxySubtree
public static final int idxSnmp4jProxyType
public static final int idxSnmp4jProxyTarget
public static final int idxSnmp4jProxyStorageType
public static final int idxSnmp4jProxyRowStatus
public static final int idxSnmp4jProxyTargetSubtree
protected Snmp4jProxyMib()
ManagedObject
instances. This has to be done in a
sub-class constructor or after construction by calling
createMO(MOFactory moFactory)
.protected Snmp4jProxyMib(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.public Snmp4jProxyMib(MOFactory moFactory, org.snmp4j.Session session, MOServer server, SnmpTargetMIB targetMIB)
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.session
- the SNMP session to be used for forwarding requests.server
- the MOServer
used to register new subtree proxies.targetMIB
- the SnmpTargetMIB
instance for proxy target
configuration.protected void createMO(MOFactory moFactory)
MOFactory
.moFactory
- the MOFactory
instance to use for object
creation.public MOTable getSnmp4jProxyEntry()
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 rowStatusChanged(RowStatusEvent event)
rowStatusChanged
in interface RowStatusListener
public void rowChanged(MOTableRowEvent event)
MOTableRowListener
rowChanged
in interface MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
event
- a MOTableRowEvent
describing the event. To veto the event
the MOTableRowEvent.setVetoStatus(int)
and optionally also the
MOTableRowEvent.setVetoColumn(int)
can be called.protected void addTCsToFactory(MOFactory moFactory)
public void addImportedTCsToFactory(MOFactory moFactory)
Copyright © 2020 SNMP4J.org. All rights reserved.