Methods Summary |
---|
public static javax.management.QueryExp | and(javax.management.QueryExp q1, javax.management.QueryExp q2)Returns a query expression that is the conjunction of two other query
expressions.
return new AndQueryExp(q1, q2);
|
public static javax.management.QueryExp | anySubString(javax.management.AttributeValueExp a, javax.management.StringValueExp s)Returns a query expression that represents a matching constraint on
a string argument. The value must contain the given string value.
return new MatchQueryExp(a, new StringValueExp("*"+s.getValue()+"*"));
|
public static javax.management.AttributeValueExp | attr(java.lang.String name)Returns a new attribute expression.
Evaluating this expression for a given
objectName includes performing {@link
MBeanServer#getAttribute MBeanServer.getAttribute(objectName,
name)}.
return new AttributeValueExp(name);
|
public static javax.management.AttributeValueExp | attr(java.lang.String className, java.lang.String name)Returns a new qualified attribute expression.
Evaluating this expression for a given
objectName includes performing {@link
MBeanServer#getObjectInstance
MBeanServer.getObjectInstance(objectName)} and {@link
MBeanServer#getAttribute MBeanServer.getAttribute(objectName,
name)}.
return new QualifiedAttributeValueExp(className, name);
|
public static javax.management.QueryExp | between(javax.management.ValueExp v1, javax.management.ValueExp v2, javax.management.ValueExp v3)Returns a query expression that represents the constraint that one
value is between two other values.
return new BetweenQueryExp(v1, v2, v3);
|
public static javax.management.AttributeValueExp | classattr()Returns a new class attribute expression which can be used in any
Query call that expects a ValueExp.
Evaluating this expression for a given
objectName includes performing {@link
MBeanServer#getObjectInstance
MBeanServer.getObjectInstance(objectName)}.
return new ClassAttributeValueExp();
|
public static javax.management.ValueExp | div(javax.management.ValueExp value1, javax.management.ValueExp value2)Returns a binary expression representing the quotient of two numeric
values.
return new BinaryOpValueExp(DIV, value1, value2);
|
public static javax.management.QueryExp | eq(javax.management.ValueExp v1, javax.management.ValueExp v2)Returns a query expression that represents an equality constraint on
two values.
return new BinaryRelQueryExp(EQ, v1, v2);
|
public static javax.management.QueryExp | finalSubString(javax.management.AttributeValueExp a, javax.management.StringValueExp s)Returns a query expression that represents a matching constraint on
a string argument. The value must contain the given string value.
return new MatchQueryExp(a, new StringValueExp("*"+ s.getValue()));
|
public static javax.management.QueryExp | geq(javax.management.ValueExp v1, javax.management.ValueExp v2)Returns a query expression that represents a "greater than or equal
to" constraint on two values.
return new BinaryRelQueryExp(GE, v1, v2);
|
public static javax.management.QueryExp | gt(javax.management.ValueExp v1, javax.management.ValueExp v2)Returns a query expression that represents a "greater than" constraint on
two values.
return new BinaryRelQueryExp(GT, v1, v2);
|
public static javax.management.QueryExp | in(javax.management.ValueExp val, javax.management.ValueExp[] valueList)Returns an expression constraining a value to be one of an explicit list.
return new InQueryExp(val, valueList);
|
public static javax.management.QueryExp | initialSubString(javax.management.AttributeValueExp a, javax.management.StringValueExp s)Returns a query expression that represents a matching constraint on
a string argument. The value must start with the given string value.
return new MatchQueryExp(a, new StringValueExp(s.getValue()+"*"));
|
public static javax.management.QueryExp | leq(javax.management.ValueExp v1, javax.management.ValueExp v2)Returns a query expression that represents a "less than or equal to"
constraint on two values.
return new BinaryRelQueryExp(LE, v1, v2);
|
public static javax.management.QueryExp | lt(javax.management.ValueExp v1, javax.management.ValueExp v2)Returns a query expression that represents a "less than" constraint on
two values.
return new BinaryRelQueryExp(LT, v1, v2);
|
public static javax.management.QueryExp | match(javax.management.AttributeValueExp a, javax.management.StringValueExp s)Returns a query expression that represents a matching constraint on
a string argument. The matching syntax is consistent with file globbing:
Supports "? ", "* ", "[ ",
each of which may be escaped with "\ ";
Character classes may use "! " for negation and
"- " for range.
(* for any character sequence,
? for a single arbitrary character,
[...] for a character sequence).
For example: a*b?c would match a string starting
with the character a , followed
by any number of characters, followed by a b ,
any single character, and a c .
return new MatchQueryExp(a, s);
|
public static javax.management.ValueExp | minus(javax.management.ValueExp value1, javax.management.ValueExp value2)Returns a binary expression representing the difference between two numeric
values.
return new BinaryOpValueExp(MINUS, value1, value2);
|
public static javax.management.QueryExp | not(javax.management.QueryExp queryExp)Returns a constraint that is the negation of its argument.
return new NotQueryExp(queryExp);
|
public static javax.management.QueryExp | or(javax.management.QueryExp q1, javax.management.QueryExp q2)Returns a query expression that is the disjunction of two other query
expressions.
return new OrQueryExp(q1, q2);
|
public static javax.management.ValueExp | plus(javax.management.ValueExp value1, javax.management.ValueExp value2)Returns a binary expression representing the sum of two numeric values,
or the concatenation of two string values.
return new BinaryOpValueExp(PLUS, value1, value2);
|
public static javax.management.ValueExp | times(javax.management.ValueExp value1, javax.management.ValueExp value2)Returns a binary expression representing the product of two numeric values.
return new BinaryOpValueExp(TIMES, value1, value2);
|
public static javax.management.StringValueExp | value(java.lang.String val)Returns a new string expression.
return new StringValueExp(val);
|
public static javax.management.ValueExp | value(java.lang.Number val)Returns a numeric value expression that can be used in any Query call
that expects a ValueExp.
return new NumericValueExp(val);
|
public static javax.management.ValueExp | value(int val)Returns a numeric value expression that can be used in any Query call
that expects a ValueExp.
return new NumericValueExp(new Long(val));
|
public static javax.management.ValueExp | value(long val)Returns a numeric value expression that can be used in any Query call
that expects a ValueExp.
return new NumericValueExp(new Long(val));
|
public static javax.management.ValueExp | value(float val)Returns a numeric value expression that can be used in any Query call
that expects a ValueExp.
return new NumericValueExp(new Double(val));
|
public static javax.management.ValueExp | value(double val)Returns a numeric value expression that can be used in any Query call
that expects a ValueExp.
return new NumericValueExp(new Double(val));
|
public static javax.management.ValueExp | value(boolean val)Returns a boolean value expression that can be used in any Query call
that expects a ValueExp.
return new BooleanValueExp(val);
|