java.lang.Object
org.snmp4j.agent.mo.snmp.SnmpProxyMIB
- All Implemented Interfaces:
MOGroup
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final org.snmp4j.smi.OID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addProxyEntry
(org.snmp4j.smi.OctetString name, int type, org.snmp4j.smi.OctetString contextEngineId, org.snmp4j.smi.OctetString contextName, org.snmp4j.smi.OctetString targetParamsIn, org.snmp4j.smi.OctetString singleTargetOut, org.snmp4j.smi.OctetString multipleTargetOut, int storageType) Adds a proxy entry to the snmpProxyTable (descriptions taken from SNMP-PROXY-MIB definition).getProxyRows
(int proxyType, org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString context) Returns the proxy configuration table defined as "snmpProxyTable".void
registerMOs
(MOServer server, org.snmp4j.smi.OctetString context) Registers the managed objects of this group with the server for the supplied context.removeProxyEntry
(org.snmp4j.smi.OctetString name) Removes the proxy entry with the specified name.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
-
oidSnmpProxyEntry
public static final org.snmp4j.smi.OID oidSnmpProxyEntry -
colSnmpProxyType
public static final int colSnmpProxyType- See Also:
-
colSnmpProxyContextEngineID
public static final int colSnmpProxyContextEngineID- See Also:
-
colSnmpProxyContextName
public static final int colSnmpProxyContextName- See Also:
-
colSnmpProxyTargetParamsIn
public static final int colSnmpProxyTargetParamsIn- See Also:
-
colSnmpProxySingleTargetOut
public static final int colSnmpProxySingleTargetOut- See Also:
-
colSnmpProxyMultipleTargetOut
public static final int colSnmpProxyMultipleTargetOut- See Also:
-
colSnmpProxyStorageType
public static final int colSnmpProxyStorageType- See Also:
-
colSnmpProxyRowStatus
public static final int colSnmpProxyRowStatus- See Also:
-
idxSnmpProxyType
public static final int idxSnmpProxyType- See Also:
-
idxSnmpProxyContextEngineID
public static final int idxSnmpProxyContextEngineID- See Also:
-
idxSnmpProxyContextName
public static final int idxSnmpProxyContextName- See Also:
-
idxSnmpProxyTargetParamsIn
public static final int idxSnmpProxyTargetParamsIn- See Also:
-
idxSnmpProxySingleTargetOut
public static final int idxSnmpProxySingleTargetOut- See Also:
-
idxSnmpProxyMultipleTargetOut
public static final int idxSnmpProxyMultipleTargetOut- See Also:
-
idxSnmpProxyStorageType
public static final int idxSnmpProxyStorageType- See Also:
-
idxSnmpProxyRowStatus
public static final int idxSnmpProxyRowStatus- See Also:
-
-
Constructor Details
-
SnmpProxyMIB
public SnmpProxyMIB()
-
-
Method Details
-
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).
-
getSnmpProxyEntry
public MOTable<SnmpProxyMIB.SnmpProxyRow,MOColumn, getSnmpProxyEntry()DefaultMOMutableTableModel<SnmpProxyMIB.SnmpProxyRow>> Returns the proxy configuration table defined as "snmpProxyTable".- Returns:
- a MOTable instance.
-
addProxyEntry
public boolean addProxyEntry(org.snmp4j.smi.OctetString name, int type, org.snmp4j.smi.OctetString contextEngineId, org.snmp4j.smi.OctetString contextName, org.snmp4j.smi.OctetString targetParamsIn, org.snmp4j.smi.OctetString singleTargetOut, org.snmp4j.smi.OctetString multipleTargetOut, int storageType) Adds a proxy entry to the snmpProxyTable (descriptions taken from SNMP-PROXY-MIB definition).- Parameters:
name
- The locally arbitrary, but unique identifier associated with this snmpProxyEntry.type
- The type of message that may be forwarded using the translation parameters defined by this entry. SeeSnmpProxyMIB.SnmpProxyTypeEnum
for possible values.contextEngineId
- The contextEngineID contained in messages that may be forwarded using the translation parameters defined by this entry.contextName
- The contextName contained in messages that may be forwarded using the translation parameters defined by this entry. This object is optional, and if not supported, the contextName contained in a message is ignored when selecting an entry in the snmpProxyTable.targetParamsIn
- This object selects an entry in the snmpTargetParamsTable. The selected entry is used to determine which row of the snmpProxyTable to use for forwarding received messages.singleTargetOut
- This object selects a management target defined in the snmpTargetAddrTable (in the SNMP-TARGET-MIB). The selected target is defined by an entry in the snmpTargetAddrTable whose index value (snmpTargetAddrName) is equal to this object. This object is only used when selection of a single target is required (i.e. when forwarding an incoming read or write request).multipleTargetOut
- This object selects a set of management targets defined in the snmpTargetAddrTable (in the SNMP-TARGET-MIB). This object is only used when selection of multiple targets is required (i.e. when forwarding an incoming notification).storageType
- The storage type of this conceptual row. Conceptual rows having the value 'permanent' need not allow write-access to any columnar objects in the row. SeeStorageType
for possible values.- Returns:
true
if the row could be added,false
otherwise.
-
removeProxyEntry
Removes the proxy entry with the specified name.- Parameters:
name
- the name of the proxy entry to remove from the proxy configuration.- Returns:
- the removed row or
null
if no such row exists.
-
getProxyRows
public List<SnmpProxyMIB.SnmpProxyRow> getProxyRows(int proxyType, org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString context)
-