Methods Summary |
---|
public static void | main(java.lang.String[] args)
new MBeanEasyConfigTester().test();
|
private void | print(java.lang.String str)
System.out.println(str);
|
private void | printInfo(java.lang.Object[] infos)
for(int i=0; i<infos.length; i++)
if(infos[i] instanceof MBeanAttributeInfo)
printInfo((MBeanAttributeInfo)infos[i]);
else
if(infos[i] instanceof MBeanConstructorInfo)
printInfo((MBeanConstructorInfo)infos[i]);
else
if(infos[i] instanceof MBeanNotificationInfo)
printInfo((MBeanNotificationInfo)infos[i]);
else
if(infos[i] instanceof MBeanOperationInfo)
printInfo((MBeanOperationInfo)infos[i]);
else
if(infos[i] instanceof MBeanParameterInfo)
printInfo((MBeanParameterInfo)infos[i]);
else
print(" "+infos[i]); //notif types?
|
private void | printInfo(javax.management.MBeanInfo info)
print("************** MBeanInfo ******************");
print("ClassName="+info.getClassName());
print("Description="+info.getDescription());
printInfo(info.getAttributes());
printInfo(info.getConstructors());
printInfo(info.getNotifications());
printInfo(info.getOperations());
|
private void | printInfo(javax.management.MBeanAttributeInfo info)
print(" ************** MBeanAttributeInfo ******************");
print(" name="+info.getName());
print(" description="+info.getDescription());
print(" type="+info.getType());
print(" isReadable="+info.isReadable());
print(" isWritable="+info.isWritable());
print(" isIs="+info.isIs());
|
private void | printInfo(javax.management.MBeanConstructorInfo info)
print(" ************** MBeanConstructorInfo ******************");
print(" name="+info.getName());
print(" description="+info.getDescription());
printInfo(info.getSignature());
|
private void | printInfo(javax.management.MBeanNotificationInfo info)
print(" ************** MBeanNotificationInfo ******************");
print(" name="+info.getName());
print(" description="+info.getDescription());
printInfo(info.getNotifTypes());
|
private void | printInfo(javax.management.MBeanOperationInfo info)
print(" ************** MBeanOperationInfo ******************");
print(" name="+info.getName());
print(" description="+info.getDescription());
String str = "???";
switch(info.getImpact())
{
case MBeanOperationInfo.UNKNOWN:
str = "UNKNOWN";
break;
case MBeanOperationInfo.ACTION:
str = "ACTION";
break;
case MBeanOperationInfo.INFO:
str = "INFO";
break;
case MBeanOperationInfo.ACTION_INFO:
str = "ACTION_INFO";
break;
}
print(" returnType="+info.getReturnType());
print(" impact="+str);
printInfo(info.getSignature());
|
private void | printInfo(javax.management.MBeanParameterInfo info)
print(" ************** MBeanParameterInfo ******************");
print(" name="+info.getName());
print(" description="+info.getDescription());
print(" type="+info.getType());
|
public void | test()
try
{
printInfo((new EasyConfigTestMBean()).getMBeanInfo());
}
catch(Exception e)
{
e.printStackTrace();
}
|