- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.SnmpFrameworkMIB
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MODULE_NAME
static java.lang.String
SNMPADMINSTRING
static java.lang.String
SNMPENGINEID
-
Constructor Summary
Constructors Constructor Description SnmpFrameworkMIB(org.snmp4j.security.USM usm, java.util.Collection<org.snmp4j.TransportMapping<? extends org.snmp4j.smi.Address>> transportMappings)
SnmpFrameworkMIB(org.snmp4j.security.USM usm, java.util.Collection<org.snmp4j.TransportMapping<? extends org.snmp4j.smi.Address>> transportMappings, boolean updateUsmFromMIB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the (unique) name of the module definition.MOScalar
getSnmpEngineBoots()
MOScalar
getSnmpEngineID()
MOScalar
getSnmpEngineMaxMessageSize()
MOScalar
getSnmpEngineTime()
TextualConvention
getTextualConvention(java.lang.String name)
Gets the textual convention for the specified name.java.util.Collection<TextualConvention>
getTextualConventions()
Gets a collection ofTextualConvention
instances in thisTCModule
.org.snmp4j.security.USM
getUSM()
boolean
isUpdateUsmFromMIB()
Indicates whether changes on thegetSnmpEngineID()
,getSnmpEngineBoots()
, andgetSnmpEngineTime()
values are propagated to the referenced USM instance.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.
-
-
-
Field Detail
-
MODULE_NAME
public static final java.lang.String MODULE_NAME
- See Also:
- Constant Field Values
-
SNMPADMINSTRING
public static final java.lang.String SNMPADMINSTRING
- See Also:
- Constant Field Values
-
SNMPENGINEID
public static final java.lang.String SNMPENGINEID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SnmpFrameworkMIB
public SnmpFrameworkMIB(org.snmp4j.security.USM usm, java.util.Collection<org.snmp4j.TransportMapping<? extends org.snmp4j.smi.Address>> transportMappings)
-
SnmpFrameworkMIB
public SnmpFrameworkMIB(org.snmp4j.security.USM usm, java.util.Collection<org.snmp4j.TransportMapping<? extends org.snmp4j.smi.Address>> transportMappings, boolean updateUsmFromMIB)
-
-
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).
-
getSnmpEngineBoots
public MOScalar getSnmpEngineBoots()
-
getSnmpEngineID
public MOScalar getSnmpEngineID()
-
getSnmpEngineMaxMessageSize
public MOScalar getSnmpEngineMaxMessageSize()
-
getSnmpEngineTime
public MOScalar getSnmpEngineTime()
-
getUSM
public org.snmp4j.security.USM getUSM()
-
isUpdateUsmFromMIB
public boolean isUpdateUsmFromMIB()
Indicates whether changes on thegetSnmpEngineID()
,getSnmpEngineBoots()
, andgetSnmpEngineTime()
values are propagated to the referenced USM instance. If true, changes of those objects will be applied to the USM.- Returns:
true
if changes are propagated.
-
getName
public java.lang.String getName()
Description copied from interface:TCModule
Returns the (unique) name of the module definition.
-
getTextualConvention
public TextualConvention getTextualConvention(java.lang.String name)
Description copied from interface:TCModule
Gets the textual convention for the specified name.- Specified by:
getTextualConvention
in interfaceTCModule
- Parameters:
name
- the object definition name of the TC MIB definition.- Returns:
- a
TextualConvention
instance.
-
getTextualConventions
public java.util.Collection<TextualConvention> getTextualConventions()
Description copied from interface:TCModule
Gets a collection ofTextualConvention
instances in thisTCModule
.- Specified by:
getTextualConventions
in interfaceTCModule
- Returns:
- a Collection of
TextualConvention
instances.
-
-