Methods Summary |
---|
public void | addParameter(ParameterInfo parameter)Add a new parameter to the set of arguments for this operation.
synchronized (parameters) {
ParameterInfo results[] = new ParameterInfo[parameters.length + 1];
System.arraycopy(parameters, 0, results, 0, parameters.length);
results[parameters.length] = parameter;
parameters = results;
this.info = null;
}
|
javax.management.MBeanOperationInfo | createOperationInfo()Create and return a ModelMBeanOperationInfo object that
corresponds to the attribute described by this instance.
// Return our cached information (if any)
if (info == null) {
// Create and return a new information object
int impact = MBeanOperationInfo.UNKNOWN;
if ("ACTION".equals(getImpact()))
impact = MBeanOperationInfo.ACTION;
else if ("ACTION_INFO".equals(getImpact()))
impact = MBeanOperationInfo.ACTION_INFO;
else if ("INFO".equals(getImpact()))
impact = MBeanOperationInfo.INFO;
info = new MBeanOperationInfo(getName(), getDescription(),
getMBeanParameterInfo(),
getReturnType(), impact);
}
return (MBeanOperationInfo)info;
|
public java.lang.String | getImpact()The "impact" of this operation, which should be a (case-insensitive)
string value "ACTION", "ACTION_INFO", "INFO", or "UNKNOWN".
// ------------------------------------------------------------- Properties
return (this.impact);
|
protected javax.management.MBeanParameterInfo[] | getMBeanParameterInfo()
ParameterInfo params[] = getSignature();
MBeanParameterInfo parameters[] =
new MBeanParameterInfo[params.length];
for (int i = 0; i < params.length; i++)
parameters[i] = params[i].createParameterInfo();
return parameters;
|
public java.lang.String | getReturnType()The fully qualified Java class name of the return type for this
operation.
if(type == null) {
type = "void";
}
return type;
|
public java.lang.String | getRole()The role of this operation ("getter", "setter", "operation", or
"constructor").
return (this.role);
|
public ParameterInfo[] | getSignature()The set of parameters for this operation.
return (this.parameters);
|
public void | setImpact(java.lang.String impact)
if (impact == null)
this.impact = null;
else
this.impact = impact.toUpperCase();
|
public void | setReturnType(java.lang.String returnType)
this.type = returnType;
|
public void | setRole(java.lang.String role)
this.role = role;
|