Package org.opennms.netmgt.protocols.xmp
Class XmpUtil
- java.lang.Object
-
- org.opennms.netmgt.protocols.xmp.XmpUtil
-
public abstract class XmpUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EQUALS
ConstantEQUALS="="
static java.lang.String
GREATER_THAN
ConstantGREATER_THAN=">"
static java.lang.String
GREATER_THAN_EQUALS
ConstantGREATER_THAN_EQUALS=">="
static java.lang.String
LESS_THAN
ConstantLESS_THAN="<"
static java.lang.String
LESS_THAN_EQUALS
ConstantLESS_THAN_EQUALS="<="
static java.lang.String
MATCHES
ConstantMATCHES="~"
static java.lang.String
NOT_EQUAL
ConstantNOT_EQUAL="!="
-
Constructor Summary
Constructors Constructor Description XmpUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
handleScalarQuery(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String object, java.lang.String valueOperator, java.lang.String valueOperand, boolean caseSensitive)
handleScalarQuerystatic boolean
handleTableQuery(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String table, java.lang.String object, java.lang.String instance, java.util.regex.Pattern instanceRegex, java.lang.String valueOperator, java.lang.String valueOperand, int minMatches, int maxMatches, boolean maxMatchesUnbounded, boolean caseSensitive)
handleTableQuery
-
-
-
Field Detail
-
LESS_THAN
public static final java.lang.String LESS_THAN
ConstantLESS_THAN="<"
- See Also:
- Constant Field Values
-
GREATER_THAN
public static final java.lang.String GREATER_THAN
ConstantGREATER_THAN=">"
- See Also:
- Constant Field Values
-
LESS_THAN_EQUALS
public static final java.lang.String LESS_THAN_EQUALS
ConstantLESS_THAN_EQUALS="<="
- See Also:
- Constant Field Values
-
GREATER_THAN_EQUALS
public static final java.lang.String GREATER_THAN_EQUALS
ConstantGREATER_THAN_EQUALS=">="
- See Also:
- Constant Field Values
-
EQUALS
public static final java.lang.String EQUALS
ConstantEQUALS="="
- See Also:
- Constant Field Values
-
NOT_EQUAL
public static final java.lang.String NOT_EQUAL
ConstantNOT_EQUAL="!="
- See Also:
- Constant Field Values
-
MATCHES
public static final java.lang.String MATCHES
ConstantMATCHES="~"
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleScalarQuery
public static boolean handleScalarQuery(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String object, java.lang.String valueOperator, java.lang.String valueOperand, boolean caseSensitive) throws XmpUtilException
handleScalarQuery
- Parameters:
session
- aXmpSession
object.mib
- aString
object.object
- aString
object.valueOperator
- aString
object.valueOperand
- aString
object.caseSensitive
- a boolean.- Returns:
- a boolean.
- Throws:
XmpUtilException
- if any.
-
handleTableQuery
public static boolean handleTableQuery(org.krupczak.xmp.XmpSession session, java.lang.String mib, java.lang.String table, java.lang.String object, java.lang.String instance, java.util.regex.Pattern instanceRegex, java.lang.String valueOperator, java.lang.String valueOperand, int minMatches, int maxMatches, boolean maxMatchesUnbounded, boolean caseSensitive) throws XmpUtilException
handleTableQuery
- Parameters:
session
- aXmpSession
object.mib
- aString
object.table
- aString
object.object
- aString
object.instance
- aString
object.instanceRegex
- aPattern
object.valueOperator
- aString
object.valueOperand
- aString
object.minMatches
- a int.maxMatches
- a int.maxMatchesUnbounded
- a boolean.caseSensitive
- a boolean.- Returns:
- a boolean.
- Throws:
XmpUtilException
- if any.
-
-