Methods Summary |
---|
private static void | debug(java.lang.String clz, java.lang.String func, java.lang.String info)
Trace.send(Trace.LEVEL_DEBUG, Trace.INFO_MBEANSERVER, clz, func, info);
|
private static void | debug(java.lang.String func, java.lang.String info)
debug(dbgTag, func, info);
|
private static void | debugX(java.lang.String func, java.lang.Throwable e)
if (isDebugOn()) {
final StringWriter s = new StringWriter();
e.printStackTrace(new PrintWriter(s));
final String stack = s.toString();
debug(dbgTag,func,"Exception caught in "+ func+"(): "+e);
debug(dbgTag,func,stack);
// java.lang.System.err.println("**** Exception caught in "+
// func+"(): "+e);
// java.lang.System.err.println(stack);
}
|
protected java.lang.Class | findClass(java.lang.String className, java.lang.ClassLoader loader)Find a class using the specified ClassLoader.
return instantiator.findClass(className, loader);
|
protected java.lang.Class[] | findSignatureClasses(java.lang.String[] signature, java.lang.ClassLoader loader)Find the classes from a signature using the specified ClassLoader.
return ((signature == null)?null:
instantiator.findSignatureClasses(signature,loader));
|
public final java.lang.Object | getAttribute(java.lang.Object instance, java.lang.String attribute)
final MetaData meta = getMetaData(instance);
return meta.getAttribute(instance,attribute);
|
public final javax.management.AttributeList | getAttributes(java.lang.Object instance, java.lang.String[] attributes)
final MetaData meta = getMetaData(instance);
return meta.getAttributes(instance, attributes);
|
public final java.lang.String | getMBeanClassName(java.lang.Object moi)
final MetaData meta = getMetaData(moi);
return meta.getMBeanClassName(moi);
|
public final javax.management.MBeanInfo | getMBeanInfo(java.lang.Object moi)
final MetaData meta = getMetaData(moi);
return meta.getMBeanInfo(moi);
|
public javax.management.MBeanInfo | getMBeanInfoFromClass(java.lang.Class beanClass)This method discovers the attributes and operations that an MBean
exposes for management.
return standard.getMBeanInfoFromClass(beanClass);
|
public java.lang.Class | getMBeanInterfaceFromClass(java.lang.Class c)This methods returns the MBean interface of an MBean
return standard.getMBeanInterfaceFromClass(c);
|
protected MetaData | getMetaData(java.lang.Class c)
if (DynamicMBean.class.isAssignableFrom(c))
return dynamic;
else
return standard;
|
protected MetaData | getMetaData(java.lang.Object moi)
if (moi instanceof DynamicMBean)
return dynamic;
else
return standard;
|
public final java.lang.Object | invoke(java.lang.Object instance, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
if (operationName == null) {
final RuntimeException r =
new IllegalArgumentException("Operation name cannot be null");
throw new RuntimeOperationsException(r,
"Exception occured trying to invoke the operation on the MBean");
}
final MetaData meta = getMetaData(instance);
return meta.invoke(instance,operationName,params,signature);
|
private static boolean | isDebugOn()
return Trace.isSelected(Trace.LEVEL_DEBUG, Trace.INFO_MBEANSERVER);
|
public boolean | isInstanceOf(java.lang.Object instance, java.lang.String className)
// XXX revisit here: ModelMBean ???
final MetaData meta = getMetaData(instance);
return meta.isInstanceOf(instance,className);
|
private static boolean | isTraceOn()
return Trace.isSelected(Trace.LEVEL_TRACE, Trace.INFO_MBEANSERVER);
|
public void | postDeregisterInvoker(java.lang.Object moi)
if (!(moi instanceof MBeanRegistration)) return;
final MetaData meta = getMetaData(moi);
meta.postDeregisterInvoker(moi);
|
public void | postRegisterInvoker(java.lang.Object moi, boolean registrationDone)
if (!(moi instanceof MBeanRegistration)) return;
final MetaData meta = getMetaData(moi);
meta.postRegisterInvoker(moi,registrationDone);
|
public void | preDeregisterInvoker(java.lang.Object moi)
if (!(moi instanceof MBeanRegistration)) return;
final MetaData meta = getMetaData(moi);
meta.preDeregisterInvoker(moi);
|
public javax.management.ObjectName | preRegisterInvoker(java.lang.Object moi, javax.management.ObjectName name, javax.management.MBeanServer mbs)
if (!(moi instanceof MBeanRegistration)) return name;
final MetaData meta = getMetaData(moi);
return meta.preRegisterInvoker(moi,name,mbs);
|
public final java.lang.Object | setAttribute(java.lang.Object instance, javax.management.Attribute attribute)
final MetaData meta = getMetaData(instance);
return meta.setAttribute(instance,attribute);
|
public final javax.management.AttributeList | setAttributes(java.lang.Object instance, javax.management.AttributeList attributes)
final MetaData meta = getMetaData(instance);
return meta.setAttributes(instance,attributes);
|
public synchronized void | testCompliance(java.lang.Class c)This methods tests if the MBean is JMX compliant
final MetaData meta = getMetaData(c);
meta.testCompliance(c);
|
private static void | trace(java.lang.String clz, java.lang.String func, java.lang.String info)
Trace.send(Trace.LEVEL_TRACE, Trace.INFO_MBEANSERVER, clz, func, info);
|
private static void | trace(java.lang.String func, java.lang.String info)
trace(dbgTag, func, info);
|