- java.lang.Object
-
- org.snmp4j.agent.mo.snmp4j.Snmp4jProxyMib
-
- All Implemented Interfaces:
java.util.EventListener
,MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
,RowStatusListener
,MOGroup
public class Snmp4jProxyMib extends java.lang.Object implements MOGroup, RowStatusListener, MOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Snmp4jProxyMib.Snmp4jProxyEntryRow
static class
Snmp4jProxyMib.Snmp4jProxyTypeEnum
-
Field Summary
Fields Modifier and Type Field Description static int
colSnmp4jProxyContextEngineID
static int
colSnmp4jProxyContextName
static int
colSnmp4jProxyRowStatus
static int
colSnmp4jProxyStorageType
static int
colSnmp4jProxySubtree
static int
colSnmp4jProxyTarget
static int
colSnmp4jProxyTargetSubtree
static int
colSnmp4jProxyType
static int
idxSnmp4jProxyContextEngineID
static int
idxSnmp4jProxyContextName
static int
idxSnmp4jProxyRowStatus
static int
idxSnmp4jProxyStorageType
static int
idxSnmp4jProxySubtree
static int
idxSnmp4jProxyTarget
static int
idxSnmp4jProxyTargetSubtree
static int
idxSnmp4jProxyType
static org.snmp4j.smi.OID
oidSnmp4jProxyEntry
static org.snmp4j.smi.OID
oidSnmp4jProxyMib
OID of this MIB module for usage which can be used for its identification.static org.snmp4j.smi.OID
oidSnmp4jProxyName
static java.lang.String
tcDefRowStatus
static java.lang.String
tcDefSnmpAdminString
static java.lang.String
tcDefSnmpEngineID
static java.lang.String
tcDefStorageType
static java.lang.String
tcModuleSnmpFrameworkMib
static java.lang.String
tcModuleSNMPv2Tc
-
Constructor Summary
Constructors Modifier Constructor Description protected
Snmp4jProxyMib()
Constructs a Snmp4jProxyMib instance without actually creating itsManagedObject
instances.protected
Snmp4jProxyMib(MOFactory moFactory)
Constructs a Snmp4jProxyMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).Snmp4jProxyMib(MOFactory moFactory, org.snmp4j.Session session, MOServer server, SnmpTargetMIB targetMIB)
Constructs a Snmp4jProxyMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 specifiedMOFactory
.MOTable<Snmp4jProxyMib.Snmp4jProxyEntryRow,MOColumn,MOTableModel<Snmp4jProxyMib.Snmp4jProxyEntryRow>>
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<Snmp4jProxyMib.Snmp4jProxyEntryRow> 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.
-
-
-
Field Detail
-
oidSnmp4jProxyMib
public static final org.snmp4j.smi.OID oidSnmp4jProxyMib
OID of this MIB module for usage which can be used for its identification.
-
oidSnmp4jProxyEntry
public static final org.snmp4j.smi.OID oidSnmp4jProxyEntry
-
oidSnmp4jProxyName
public static final org.snmp4j.smi.OID oidSnmp4jProxyName
-
tcModuleSnmpFrameworkMib
public static final java.lang.String tcModuleSnmpFrameworkMib
- See Also:
- Constant Field Values
-
tcDefSnmpEngineID
public static final java.lang.String tcDefSnmpEngineID
- See Also:
- Constant Field Values
-
tcDefSnmpAdminString
public static final java.lang.String tcDefSnmpAdminString
- See Also:
- Constant Field Values
-
tcModuleSNMPv2Tc
public static final java.lang.String tcModuleSNMPv2Tc
- See Also:
- Constant Field Values
-
tcDefStorageType
public static final java.lang.String tcDefStorageType
- See Also:
- Constant Field Values
-
tcDefRowStatus
public static final java.lang.String tcDefRowStatus
- See Also:
- Constant Field Values
-
colSnmp4jProxyContextEngineID
public static final int colSnmp4jProxyContextEngineID
- See Also:
- Constant Field Values
-
colSnmp4jProxyContextName
public static final int colSnmp4jProxyContextName
- See Also:
- Constant Field Values
-
colSnmp4jProxySubtree
public static final int colSnmp4jProxySubtree
- See Also:
- Constant Field Values
-
colSnmp4jProxyType
public static final int colSnmp4jProxyType
- See Also:
- Constant Field Values
-
colSnmp4jProxyTarget
public static final int colSnmp4jProxyTarget
- See Also:
- Constant Field Values
-
colSnmp4jProxyStorageType
public static final int colSnmp4jProxyStorageType
- See Also:
- Constant Field Values
-
colSnmp4jProxyRowStatus
public static final int colSnmp4jProxyRowStatus
- See Also:
- Constant Field Values
-
colSnmp4jProxyTargetSubtree
public static final int colSnmp4jProxyTargetSubtree
- See Also:
- Constant Field Values
-
idxSnmp4jProxyContextEngineID
public static final int idxSnmp4jProxyContextEngineID
- See Also:
- Constant Field Values
-
idxSnmp4jProxyContextName
public static final int idxSnmp4jProxyContextName
- See Also:
- Constant Field Values
-
idxSnmp4jProxySubtree
public static final int idxSnmp4jProxySubtree
- See Also:
- Constant Field Values
-
idxSnmp4jProxyType
public static final int idxSnmp4jProxyType
- See Also:
- Constant Field Values
-
idxSnmp4jProxyTarget
public static final int idxSnmp4jProxyTarget
- See Also:
- Constant Field Values
-
idxSnmp4jProxyStorageType
public static final int idxSnmp4jProxyStorageType
- See Also:
- Constant Field Values
-
idxSnmp4jProxyRowStatus
public static final int idxSnmp4jProxyRowStatus
- See Also:
- Constant Field Values
-
idxSnmp4jProxyTargetSubtree
public static final int idxSnmp4jProxyTargetSubtree
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Snmp4jProxyMib
protected Snmp4jProxyMib()
Constructs a Snmp4jProxyMib instance without actually creating itsManagedObject
instances. This has to be done in a sub-class constructor or after construction by callingcreateMO(MOFactory moFactory)
.
-
Snmp4jProxyMib
protected Snmp4jProxyMib(MOFactory moFactory)
Constructs a Snmp4jProxyMib 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.
-
Snmp4jProxyMib
public Snmp4jProxyMib(MOFactory moFactory, org.snmp4j.Session session, MOServer server, SnmpTargetMIB targetMIB)
Constructs a Snmp4jProxyMib 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.session
- the SNMP session to be used for forwarding requests.server
- theMOServer
used to register new subtree proxies.targetMIB
- theSnmpTargetMIB
instance for proxy target configuration.
-
-
Method Detail
-
createMO
protected void createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.- Parameters:
moFactory
- theMOFactory
instance to use for object creation.
-
getSnmp4jProxyEntry
public MOTable<Snmp4jProxyMib.Snmp4jProxyEntryRow,MOColumn,MOTableModel<Snmp4jProxyMib.Snmp4jProxyEntryRow>> getSnmp4jProxyEntry()
-
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
public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
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).
-
rowStatusChanged
public void rowStatusChanged(RowStatusEvent event)
- Specified by:
rowStatusChanged
in interfaceRowStatusListener
-
rowChanged
public void rowChanged(MOTableRowEvent<Snmp4jProxyMib.Snmp4jProxyEntryRow> event)
Description copied from interface:MOTableRowListener
A column or a complete row is changed/has been changed.- Specified by:
rowChanged
in interfaceMOTableRowListener<Snmp4jProxyMib.Snmp4jProxyEntryRow>
- Parameters:
event
- aMOTableRowEvent
describing the event. To veto the event theMOTableRowEvent.setVetoStatus(int)
and optionally also theMOTableRowEvent.setVetoColumn(int)
can be called. IfMOTableRowEvent.getNumberOfConsecutiveEventsOfSameOrigin()
is greater than zero you need to setMOTableRowEvent.setSendNextEventsOfSameOrigin(boolean)
totrue
in order to receive those consecutive events too. Otherwise they will be ignored and not been propagated to this listener.
-
addTCsToFactory
protected void addTCsToFactory(MOFactory moFactory)
-
addImportedTCsToFactory
public void addImportedTCsToFactory(MOFactory moFactory)
-
-