Package org.opennms.netmgt.protocols.xmp
Class XmpUtil
- java.lang.Object
-
- org.opennms.netmgt.protocols.xmp.XmpUtil
-
public abstract class XmpUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
EQUALS
ConstantEQUALS="="
static String
GREATER_THAN
ConstantGREATER_THAN=">"
static String
GREATER_THAN_EQUALS
ConstantGREATER_THAN_EQUALS=">="
static String
LESS_THAN
ConstantLESS_THAN="<"
static String
LESS_THAN_EQUALS
ConstantLESS_THAN_EQUALS="<="
static String
MATCHES
ConstantMATCHES="~"
static 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, String mib, String object, String valueOperator, String valueOperand, boolean caseSensitive)
handleScalarQuerystatic boolean
handleTableQuery(org.krupczak.xmp.XmpSession session, String mib, String table, String object, String instance, Pattern instanceRegex, String valueOperator, String valueOperand, int minMatches, int maxMatches, boolean maxMatchesUnbounded, boolean caseSensitive)
handleTableQuery
-
-
-
Field Detail
-
LESS_THAN
public static final String LESS_THAN
ConstantLESS_THAN="<"
- See Also:
- Constant Field Values
-
GREATER_THAN
public static final String GREATER_THAN
ConstantGREATER_THAN=">"
- See Also:
- Constant Field Values
-
LESS_THAN_EQUALS
public static final String LESS_THAN_EQUALS
ConstantLESS_THAN_EQUALS="<="
- See Also:
- Constant Field Values
-
GREATER_THAN_EQUALS
public static final String GREATER_THAN_EQUALS
ConstantGREATER_THAN_EQUALS=">="
- See Also:
- Constant Field Values
-
EQUALS
public static final String EQUALS
ConstantEQUALS="="
- See Also:
- Constant Field Values
-
NOT_EQUAL
public static final String NOT_EQUAL
ConstantNOT_EQUAL="!="
- See Also:
- Constant Field Values
-
MATCHES
public static final String MATCHES
ConstantMATCHES="~"
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleScalarQuery
public static boolean handleScalarQuery(org.krupczak.xmp.XmpSession session, String mib, String object, String valueOperator, 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, String mib, String table, String object, String instance, Pattern instanceRegex, String valueOperator, 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.
-
-