|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.DefaultMOQuery
public class DefaultMOQuery
The DefaultMOQuery class is the default implementation of a
managed object query. It is used to lookup managed objects, for example in
a MOServer repository.
The constructor with source object reference has been pushed down into
the new subclass MOQueryWithSource (since version 2.0).
| Constructor Summary | |
|---|---|
DefaultMOQuery(MOContextScope scope)
Creates a context aware query from a context aware OID scope. |
|
DefaultMOQuery(MOContextScope scope,
boolean isWriteAccessIntended)
Creates a context aware query from a context aware OID scope. |
|
| 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMOQuery(MOContextScope scope)
scope - a scope that defines the possible result set of OIDs from a specific
context for this query.
public DefaultMOQuery(MOContextScope scope,
boolean isWriteAccessIntended)
scope - a scope that defines the possible result set of OIDs from a specific
context for this query.isWriteAccessIntended - indicates whether this query serves a write access on
ManagedObjects or not.| Method Detail |
|---|
public MOContextScope getScope()
getScope in interface MOQueryMORange instance denoting upper and lower bound of
this queries scope.public boolean matchesQuery(ManagedObject managedObject)
matchesQuery in interface MOQuerymanagedObject - the ManagedObject instance to check.
true if the managedObject matches the
query.public void substractScope(MOScope scope)
MOQueryMutableMOScope interface, then this method will throw an
UnsupportedOperationException.
substractScope in interface MOQueryscope - a MOScope instance that defines the range of OIDs
that should be no longer in the scope of this query.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isWriteAccessQuery()
MOQuery
isWriteAccessQuery in interface MOQuerytrue if this query is performed to change or create a
managed object matching this query and false if the
query is for read-only access on the matched managed objects.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||