Uses of Interface
org.snmp4j.agent.ManagedObject
Package
Description
-
Uses of ManagedObject in org.snmp4j.agent
Modifier and TypeInterfaceDescriptioninterface
ManagedObjectValueAccess<SR extends SubRequest<?>>
TheManagedObjectValueAccess
interface provides direct access to instance values of aManagedObject
.interface
RandomAccessManagedObject<SR extends SubRequest<?>>
A random access managed object allows to import and export any instance of aManagedObject
to/from a byte array.interface
RegisteredManagedObject<SR extends SubRequest<?>>
A registered ManagedObject has an unique OID that has been registered world-wide by a MIB module.interface
SerializableManagedObject<SR extends SubRequest<?>>
interface
UpdatableManagedObject<SR extends SubRequest<?>>
TheUpdatableManagedObject
interface defines the basic operations for all SNMP(4J) manageable objects that need to be updated to reflect the up-to-date state of the managed object.Modifier and TypeMethodDescription<MO extends ManagedObject<?>>
MODefaultMOServer.lookup
(MOQuery query, LockRequest lockRequest, MOServerLookupEvent lookupEvent, Class<MO> managedObjectType) Lookup the first (lexicographically ordered) managed object that matches the supplied query and implements the givenManagedObject
class.default <MO extends ManagedObject<?>>
MOLookup the first (lexicographically ordered) managed object that matches the supplied query.<MO extends ManagedObject<?>>
MOMOServer.lookup
(MOQuery query, LockRequest lockRequest, MOServerLookupEvent lookupEvent, Class<MO> managedObjectType) Lookup the first (lexicographically ordered) managed object that matches the supplied query and implements the givenManagedObject
class.Modifier and TypeMethodDescriptionMOServerLookupEvent.getLookupResult()
Returns theManagedObject
that has been looked up.DefaultMOServer.getManagedObject
(org.snmp4j.smi.OID key, org.snmp4j.smi.OctetString context) Returns theManagedObject
with the specifiedOID
as ID returned byRegisteredManagedObject.getID()
or the lower bound (regardless whether the ManagedObject's scope includes it or not) when registered in the supplied context.DefaultMOServer.getManagedObject
(org.snmp4j.smi.OID key, org.snmp4j.smi.OctetString context, boolean fireLookupEvents) Returns theManagedObject
with the specifiedOID
as ID returned byRegisteredManagedObject.getID()
or the lower bound (regardless whether the ManagedObject's scope includes it or not) when registered in the supplied context.default ManagedObject
<?> Lookup the first (lexicographically ordered) managed object that matches the supplied query.default ManagedObject
<?> MOServer.lookup
(MOQuery query, LockRequest lockRequest) Deprecated.default ManagedObject
<?> MOServer.lookup
(MOQuery query, LockRequest lockRequest, MOServerLookupEvent lookupEvent) Lookup the first (lexicographically ordered) managed object that matches the supplied query.DefaultMOServer.unregister
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) MOServer.unregister
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) Removes the registration of the supplied managed object for the specified context.Modifier and TypeMethodDescriptionDefaultMOServer.getRegistry()
DefaultMOServer.iterator()
DefaultMOServer.iterator
(Comparator<MOScope> comparator, MOFilter moFilter) MOServer.iterator()
Return a read-onlyIterator
over the content of this server.default Iterator
<Map.Entry<MOScope, ManagedObject<?>>> MOServer.iterator
(Comparator<MOScope> comparator) Return anIterator
on the registeredManagedObject
s of this server in order defined by the given comparator.MOServer.iterator
(Comparator<MOScope> comparator, MOFilter moFilter) Return anIterator
on the registeredManagedObject
s of this server in order defined by the given comparator and filtered.Modifier and TypeMethodDescriptionvoid
DefaultMOServer.addLookupListener
(MOServerLookupListener listener, ManagedObject<?> mo) void
MOServer.addLookupListener
(MOServerLookupListener listener, ManagedObject<?> mo) Adds a managed object lookup listener for the supplied managed object to this managed object server.protected void
DefaultMOServer.fireLookupEvent
(ManagedObject<?> mo, MOServerLookupEvent event) protected void
DefaultMOServer.fireQueryEvent
(ManagedObject<?> mo, MOServerLookupEvent event) org.snmp4j.smi.OctetString[]
DefaultMOServer.getRegisteredContexts
(ManagedObject<?> managedObject) org.snmp4j.smi.OctetString[]
MOServer.getRegisteredContexts
(ManagedObject<?> managedObject) Returns the contexts for which the suppliedManagedObject
has been registered.DefaultMOServer.getRegisteredScopes
(ManagedObject<?> managedObject) MOServer.getRegisteredScopes
(ManagedObject<?> managedObject) Returns the scopesMOScope
orMOContextScope
for which the suppliedManagedObject
has been registered in a map indexed by context.boolean
DefaultMOServer.lock
(Object owner, ManagedObject<?> managedObject) boolean
DefaultMOServer.lock
(Object owner, ManagedObject<?> managedObject, long timeoutMillis) boolean
DefaultMOServer.lock
(Object owner, ManagedObject<?> managedObject, long timeoutMillis, LockRequest lockRequest) boolean
MOServer.lock
(Object owner, ManagedObject<?> managedObject) Locks a ManagedObject by the supplied owner.boolean
MOServer.lock
(Object owner, ManagedObject<?> managedObject, long timeoutMillis) Locks a ManagedObject by the supplied owner.boolean
DefaultMOQuery.matchesQuery
(ManagedObject<?> managedObject) Checks whether a managed object matches the internal query criteria defined by this query.boolean
MOQuery.matchesQuery
(ManagedObject<?> managedObject) Checks whether a managed object matches the internal query criteria defined by this query.void
DefaultMOServer.register
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) void
MOServer.register
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) Registers a managed object for the specified context.default boolean
MOServer.registerNew
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) Registers a managed object for the specified context if it has not been registered already (otherwise it does nothing but returningfalse
.boolean
DefaultMOServer.removeLookupListener
(MOServerLookupListener listener, ManagedObject<?> mo) boolean
MOServer.removeLookupListener
(MOServerLookupListener listener, ManagedObject<?> mo) Removes a managed object lookup listener for the specified managed object.void
MOServerLookupEvent.setLookupResult
(ManagedObject<?> lookupResult) Sets the lookup result after construction, for example, if the value is not yet known at construction time.boolean
DefaultMOServer.unlock
(Object owner, ManagedObject<?> managedObject) protected boolean
DefaultMOServer.unlock
(Object owner, ManagedObject<?> managedObject, boolean forceUnlock) boolean
MOServer.unlock
(Object owner, ManagedObject<?> managedObject) Unlocks a ManagedObject that has been locked by the specified owner.protected void
CommandProcessor.unlockManagedObjectIfLockedByLookup
(MOServer server, ManagedObject<?> mo, LockRequest lockRequest) Unlock the providedManagedObject
if the also providedLockRequest
indicates that the managed object was locked by a precedingMOServer.lookup(MOQuery, LockRequest)
operation.boolean
DefaultMOServer.unlockNow
(Object owner, ManagedObject<?> managedObject) boolean
MOServer.unlockNow
(Object owner, ManagedObject<?> managedObject) Unlocks a ManagedObject that has been locked by the specified owner.DefaultMOServer.unregister
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) MOServer.unregister
(ManagedObject<?> mo, org.snmp4j.smi.OctetString context) Removes the registration of the supplied managed object for the specified context.ModifierConstructorDescriptionMOServerLookupEvent
(Object source, ManagedObject<?> lookupResult, MOQuery query, MOServerLookupEvent.IntendedUse intendedUse) MOServerLookupEvent
(Object source, ManagedObject<?> lookupResult, MOQuery query, MOServerLookupEvent.IntendedUse intendedUse, boolean withCompletionCallback) -
Uses of ManagedObject in org.snmp4j.agent.mo
Modifier and TypeInterfaceDescriptioninterface
ChangeableManagedObject<SR extends SubRequest<?>>
TheChangeableManagedObject
interface extends theManagedObject
by methods to add/removeMOChangeListener
that should be informed when the object implementing this interface changes.interface
TheGenericManagedObject
interface marksManagedObject
instances that can be used with any type ofSubRequest
, thus with any type of agent (regular, master, and sub-agent).interface
MOTable<R extends MOTableRow,
C extends MOColumn, M extends MOTableModel<R>> TheMOTable
interface describes SNMP conceptual tables.Modifier and TypeClassDescriptionclass
DefaultMOTable<R extends MOTableRow,
C extends MOColumn, M extends MOTableModel<R>> TheDefaultMOTable
class is the default implementation of theMOTable
class.class
MOScalar<V extends org.snmp4j.smi.Variable>
TheMOScalar
class represents scalar SNMP managed objects.Modifier and TypeMethodDescriptionMOPriorityProvider.getBootManagedObject
(org.snmp4j.smi.OctetString context) Returns theManagedObject
that stores the priority information and therefore needs to be stored/restored first to determineMOPriorityProvider.getPriorityMap(OctetString)
for the provided context.MOChangeEvent.getChangedObject()
Modifier and TypeMethodDescriptionboolean
MOGroupImpl.addInstance
(ManagedObject<SubRequest<?>> mo) boolean
MOFilter.passesFilter
(ManagedObject<?> mo) Checks whether the givenManagedObject
passes this filter.boolean
MOGroupImpl.removeInstance
(ManagedObject<SubRequest<?>> mo) ModifierConstructorDescriptionMOChangeEvent
(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID index, MOChangeEvent.Modification modification) Creates a deniableMOChangeEvent
object based on the changed managed object instances that are identified through a common the instance OID (i.e.MOChangeEvent
(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID index, MOChangeEvent.Modification modification, SubRequest<?> subRequest) Creates a deniableMOChangeEvent
object based on the changed managed object instances that are identified through a common the instance OID (i.e.MOChangeEvent
(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue) Creates a deniableMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value.MOChangeEvent
(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable) Creates aMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value.MOChangeEvent
(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable, SubRequest<?> subRequest) Creates aMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value. -
Uses of ManagedObject in org.snmp4j.agent.mo.ext
Modifier and TypeClassDescriptionclass
class
class
class
TheStaticMOGroup
can be used to easily implement static (read-only) managed objects. -
Uses of ManagedObject in org.snmp4j.agent.mo.lock
Modifier and TypeMethodDescriptionboolean
DefaultMOLockStrategy.isLockNeeded
(ManagedObject<?> managedObjectLookedUp, MOQuery query) boolean
MOLockStrategy.isLockNeeded
(ManagedObject<?> managedObjectLookedUp, MOQuery query) Check if the server access to the provided managed object needs a lock. -
Uses of ManagedObject in org.snmp4j.agent.mo.snmp
Modifier and TypeClassDescriptionclass
DateAndTimeScalar<T extends org.snmp4j.smi.OctetString>
TheDateAndTimeScalar
implements the DateAndTime textual convention (TC) from the SNMPv2-TC MIB specification for scalar objects.class
DisplayStringScalar<V extends org.snmp4j.smi.OctetString>
TheDisplayStringScalar
class implements the DisplayString textual convention as defined by the SNMPv2-TC MIB specification for scalar objects.class
EnumeratedScalar<V extends org.snmp4j.smi.Variable>
TheEnumeratedScalar
class represents enumerated SMI INTEGER (=Integer32
) or an OCTET STRING with enumerated named bits for scalar objects.class
class
class
class
static class
class
class
-
Uses of ManagedObject in org.snmp4j.agent.mo.snmp.dh
Modifier and TypeClassDescriptionclass
class
TheUsmDHParametersImpl
class holds the Diffie Hellman parameters for doing a Diffie-Hellman key agreement. -
Uses of ManagedObject in org.snmp4j.agent.mo.snmp4j
Modifier and TypeClassDescriptionclass
In contrast toProxyForwarder
, the MOSubtreeProxy provides a proxy implementation for a single subtree based on the configuration provided by theSnmp4jProxyMib
SnmpProxyMIB
andSnmpTargetMIB
.class
class
Modifier and TypeMethodDescriptionSnmp4jConfigMib.getBootManagedObject
(org.snmp4j.smi.OctetString context) This default implementation ofMOPriorityProvider
does not support context depend configurations. -
Uses of ManagedObject in org.snmp4j.agent.request
Modifier and TypeMethodDescriptionManagedObject
<? super SnmpRequest.SnmpSubRequest> SnmpRequest.SnmpSubRequest.getTargetMO()
ManagedObject
<? super N> SubRequest.getTargetMO()
Gets theManagedObject
that is responsible for processing this sub-request.Modifier and TypeMethodDescriptionvoid
SnmpRequest.SnmpSubRequest.setTargetMO
(ManagedObject<? super SnmpRequest.SnmpSubRequest> managedObject) void
SubRequest.setTargetMO
(ManagedObject<? super N> managedObject) Sets theManagedObject
that is determined as the target object of this sub-request by the agent framework.
MOServer.lookup(MOQuery, LockRequest, MOServerLookupEvent, Class)
instead to specify the intended use, and event source.