R
- the result class for completed uses.java.util.EventListener
Snmp4jLogMib
public interface MOServerLookupListener<R>
extends java.util.EventListener
MOServer
instance has to implement the
MOServerLookupListener
interface.Modifier and Type | Method | Description |
---|---|---|
default void |
completedUse(MOServerLookupEvent event,
R result) |
A
MOServer instance has finished the intended use for which lookupEvent(MOServerLookupEvent) has
been called previously. |
void |
lookupEvent(MOServerLookupEvent event) |
A
MOServer instance has looked up a managed object for which the
listener has been registered. |
void |
queryEvent(MOServerLookupEvent event) |
A
MOServer instance is about to check if the managed object for
which the listener had been registered matches a query. |
void lookupEvent(MOServerLookupEvent event)
MOServer
instance has looked up a managed object for which the
listener has been registered.event
- a MOServerLookupEvent
describing the lookup query and the
managed object that has been looked up.void queryEvent(MOServerLookupEvent event)
MOServer
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.event
- a MOServerLookupEvent
describing the lookup query and the
managed object that is to be queried.default void completedUse(MOServerLookupEvent event, R result)
MOServer
instance has finished the intended use for which lookupEvent(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.event
- the same instance MOServerLookupEvent
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 for
MOServerLookupEvent.IntendedUse.undefined
).result
- The sub-request that provides the result of the completed use.Copyright © 2018 SNMP4J.org. All rights reserved.