- All Superinterfaces:
EventListener
- All Known Implementing Classes:
Snmp4jLogMib
An object that is interested in callback notifications of lookup events
on a
MOServer
instance has to implement the
MOServerLookupListener
interface.- Version:
- 3.0.4
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
completedUse
(MOServerLookupEvent event, Object result) AMOServer
instance has finished the intended use for whichlookupEvent(MOServerLookupEvent)
has been called previously.void
lookupEvent
(MOServerLookupEvent event) AMOServer
instance has looked up a managed object for which the listener has been registered.void
queryEvent
(MOServerLookupEvent event) AMOServer
instance is about to check if the managed object for which the listener had been registered matches a query.
-
Method Details
-
lookupEvent
AMOServer
instance has looked up a managed object for which the listener has been registered.- Parameters:
event
- aMOServerLookupEvent
describing the lookup query and the managed object that has been looked up.
-
queryEvent
AMOServer
instance is about to check if the managed object for which the listener had been registered matches a query. A managed object with dynamic content like a non-static table might use this event to update its content.- Parameters:
event
- aMOServerLookupEvent
describing the lookup query and the managed object that is to be queried.
-
completedUse
AMOServer
instance has finished the intended use for whichlookupEvent(MOServerLookupEvent)
has been called previously. By default, this method is a no-op. It can be implemented to trigger statistics for GET, GETNEXT, and GETBULK requests as well as to trigger further instrumentation update routines on SET requests.- Parameters:
event
- the same instanceMOServerLookupEvent
provided during lookup but after the intended use has been finished. Note: the lookup event firing instance is responsible to call this method when the intended use is finished. There is no guarantee that this will happen for all intended uses (this is particularly true forMOServerLookupEvent.IntendedUse.undefined
).result
- TheSubRequest
or other objects likeVariableBinding
which triggered the lookup and/or are actually modified by the completed use (i.e., lookup result).
-