- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.SnmpProxyMIB
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SnmpProxyMIB.SnmpProxyRow
static class
SnmpProxyMIB.SnmpProxyTypeEnum
-
Field Summary
Fields Modifier and Type Field Description static int
colSnmpProxyContextEngineID
static int
colSnmpProxyContextName
static int
colSnmpProxyMultipleTargetOut
static int
colSnmpProxyRowStatus
static int
colSnmpProxySingleTargetOut
static int
colSnmpProxyStorageType
static int
colSnmpProxyTargetParamsIn
static int
colSnmpProxyType
static int
idxSnmpProxyContextEngineID
static int
idxSnmpProxyContextName
static int
idxSnmpProxyMultipleTargetOut
static int
idxSnmpProxyRowStatus
static int
idxSnmpProxySingleTargetOut
static int
idxSnmpProxyStorageType
static int
idxSnmpProxyTargetParamsIn
static int
idxSnmpProxyType
static org.snmp4j.smi.OID
oidSnmpProxyEntry
-
Constructor Summary
Constructors Constructor Description SnmpProxyMIB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).List<SnmpProxyMIB.SnmpProxyRow>
getProxyRows(int proxyType, org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString context)
MOTable<SnmpProxyMIB.SnmpProxyRow,MOColumn,DefaultMOMutableTableModel<SnmpProxyMIB.SnmpProxyRow>>
getSnmpProxyEntry()
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.SnmpProxyMIB.SnmpProxyRow
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 Detail
-
oidSnmpProxyEntry
public static final org.snmp4j.smi.OID oidSnmpProxyEntry
-
colSnmpProxyType
public static final int colSnmpProxyType
- See Also:
- Constant Field Values
-
colSnmpProxyContextEngineID
public static final int colSnmpProxyContextEngineID
- See Also:
- Constant Field Values
-
colSnmpProxyContextName
public static final int colSnmpProxyContextName
- See Also:
- Constant Field Values
-
colSnmpProxyTargetParamsIn
public static final int colSnmpProxyTargetParamsIn
- See Also:
- Constant Field Values
-
colSnmpProxySingleTargetOut
public static final int colSnmpProxySingleTargetOut
- See Also:
- Constant Field Values
-
colSnmpProxyMultipleTargetOut
public static final int colSnmpProxyMultipleTargetOut
- See Also:
- Constant Field Values
-
colSnmpProxyStorageType
public static final int colSnmpProxyStorageType
- See Also:
- Constant Field Values
-
colSnmpProxyRowStatus
public static final int colSnmpProxyRowStatus
- See Also:
- Constant Field Values
-
idxSnmpProxyType
public static final int idxSnmpProxyType
- See Also:
- Constant Field Values
-
idxSnmpProxyContextEngineID
public static final int idxSnmpProxyContextEngineID
- See Also:
- Constant Field Values
-
idxSnmpProxyContextName
public static final int idxSnmpProxyContextName
- See Also:
- Constant Field Values
-
idxSnmpProxyTargetParamsIn
public static final int idxSnmpProxyTargetParamsIn
- See Also:
- Constant Field Values
-
idxSnmpProxySingleTargetOut
public static final int idxSnmpProxySingleTargetOut
- See Also:
- Constant Field Values
-
idxSnmpProxyMultipleTargetOut
public static final int idxSnmpProxyMultipleTargetOut
- See Also:
- Constant Field Values
-
idxSnmpProxyStorageType
public static final int idxSnmpProxyStorageType
- See Also:
- Constant Field Values
-
idxSnmpProxyRowStatus
public static final int idxSnmpProxyRowStatus
- See Also:
- Constant Field Values
-
-
Method Detail
-
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).
-
getSnmpProxyEntry
public MOTable<SnmpProxyMIB.SnmpProxyRow,MOColumn,DefaultMOMutableTableModel<SnmpProxyMIB.SnmpProxyRow>> getSnmpProxyEntry()
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
public SnmpProxyMIB.SnmpProxyRow removeProxyEntry(org.snmp4j.smi.OctetString name)
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)
-
-