org.snmp4j.agent
Interface UpdateStrategy


public interface UpdateStrategy

An UpdateStrategy defines how UpdatableManagedObjects are updated on behalf of server queries to a MOServer.

Version:
1.2
Author:
Frank Fock

Method Summary
 boolean isUpdateNeeded(MOServer server, UpdatableManagedObject mo, MOQuery query)
          Checks whether the supplied UpdatableManagedObject needs to be updated or not to serve the supplied query.
 

Method Detail

isUpdateNeeded

boolean isUpdateNeeded(MOServer server,
                       UpdatableManagedObject mo,
                       MOQuery query)
Checks whether the supplied UpdatableManagedObject needs to be updated or not to serve the supplied query.

Parameters:
server - the MOServer trying to access the mo (can be null if no such server is known).
mo - the accessed updatable managed object.
query - the query accessing the mo.
Returns:
true if the server (or any other interested instance) should call UpdatableManagedObject.update(MOQuery updateScope) to update mo's content.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.