Methods Summary |
---|
javax.management.MBeanOperationInfo | createOperationInfo(java.lang.reflect.Method method)
return new MBeanOperationInfo(method.getName(),
"Method " + method.getName(),
getParameterInfo(method.getParameterTypes()),
method.getReturnType().getName(),
MBeanOperationInfo.INFO);
|
public java.lang.Object | getAttribute(java.lang.String str)
throw new UnsupportedOperationException(
sm.getString("monitor.jndi.unsupported_method"));
|
public javax.management.AttributeList | getAttributes(java.lang.String[] str)
throw new UnsupportedOperationException(
sm.getString("monitor.jndi.unsupported_method"));
|
public javax.management.MBeanInfo | getMBeanInfo()
if(mbeanInfo == null) {
mbeanInfo = new MBeanInfo(this.getClass().getName(),
"Managed Object for " + this.getClass().getName(),
null, null, getOperationInfo(), null);
}
return mbeanInfo;
|
public java.util.ArrayList | getNames(java.lang.String context)Gets all the jndi entry names given a specific context name. This
method uses the JndiMBeanHelper object to execute all logic involved
in querying entries via jndi to the application server's naming
service.
java.util.ArrayList names = null;
names = helper.getJndiEntriesByContextPath(context);
return names;
|
javax.management.MBeanOperationInfo[] | getOperationInfo()
Method[] methods = this.getClass().getMethods();
MBeanOperationInfo[] mInfo = new MBeanOperationInfo[methods.length];
for(int i= 0; i < methods.length; i++){
mInfo[i]= createOperationInfo(methods[i]);
}
return mInfo;
|
javax.management.MBeanParameterInfo[] | getParameterInfo(java.lang.Class[] paramTypes)
MBeanParameterInfo[] params=null;
if(paramTypes != null){
params = new MBeanParameterInfo[paramTypes.length];
for(int i = 0; i < paramTypes.length; i++){
try {
params[i] = new MBeanParameterInfo("param" + i,
paramTypes[i].getName(),
paramTypes[i].getName());
} catch(java.lang.IllegalArgumentException e){
logger.log(Level.INFO, e.toString());
}
}
}
return params;
|
void | initialize()Initializes the JndiMBeanImpl mbean object for servicing queries
related to the jndi entries of the application server's naming
service. This initialization involves the creation of the object's
JndiMBeanHelper for delegating requests.
helper = new JndiMBeanHelper();
|
public java.lang.Object | invoke(java.lang.String str, java.lang.Object[] obj, java.lang.String[] str2)
Object a = null;
Class[] c = new Class[str2.length];
for(int i=0; i < str2.length; i++){
c[i] = str2[i].getClass();
}
try {
a = (Object)this.getClass().getMethod(str, c).invoke(this, obj);
} catch(InvocationTargetException e){
logger.log(Level.INFO,e.getMessage(), e);
MBeanException me =
new MBeanException((Exception)e.getTargetException());
throw me;
} catch (Exception e) {
throw new MBeanException(e);
}
return a;
|
boolean | isAttrGetterOrSetter(java.lang.reflect.Method operation)
if(operation.getName().startsWith("get")
|| operation.getName().startsWith("set")){
return true;
}
return false;
|
public void | setAttribute(javax.management.Attribute attribute)
throw new UnsupportedOperationException(
sm.getString("monitor.jndi.unsupported_method"));
|
public javax.management.AttributeList | setAttributes(javax.management.AttributeList attributeList)
throw new UnsupportedOperationException(
sm.getString("monitor.jndi.unsupported_method"));
|