| org.snmp4j.agent.MOQuery
All known Subclasses: org.snmp4j.agent.agentx.master.AgentXNodeQuery, org.snmp4j.agent.DefaultMOQuery,
MOQuery | public interface MOQuery (Code) | | A managed object query is used to lookup managed objects, for example in
a
MOServer repository.
author: Frank Fock version: 1.1 |
Method Summary | |
MOContextScope | getScope() Gets the search range of this query. | boolean | isWriteAccessQuery() Indicates whether this query is issued on behalf of an intended write
access on the ManagedObjects matched by this query. | boolean | matchesQuery(ManagedObject managedObject) Checks whether a managed object matches the internal query criteria
defined by this query. | void | substractScope(MOScope scope) Changes the query to no longer match (cover) the specified scope. |
getScope | MOContextScope getScope()(Code) | | Gets the search range of this query.
a MORange instance denoting upper and lower boundof this queries scope. |
isWriteAccessQuery | boolean isWriteAccessQuery()(Code) | | Indicates whether this query is issued on behalf of an intended write
access on the ManagedObjects matched by this query. This information can
be used to optimize query evaluation or to control resource allocation.
true if this query is performed to change or create amanaged object matching this query and false if thequery is for read-only access on the matched managed objects. since: 1.1 |
matchesQuery | boolean matchesQuery(ManagedObject managedObject)(Code) | | Checks whether a managed object matches the internal query criteria
defined by this query.
Parameters: managedObject - the ManagedObject instance to check.true if the managedObject matches the query. |
substractScope | void substractScope(MOScope scope)(Code) | | Changes the query to no longer match (cover) the specified scope.
If the query's scope is immutable (does not implement the
MutableMOScope interface, then this method will throw an
UnsupportedOperationException .
Parameters: scope - a MOScope instance that defines the range of OIDsthat should be no longer in the scope of this query. |
|
|