dev@glassfish.java.net

Re: Improving QL speed by removing mbean log

From: Qingqing Ouyang <Qingqing.Ouyang_at_Sun.COM>
Date: Tue, 02 Aug 2005 12:19:29 -0500

+1 (an enthusiastic one)

Jeanfrancois Arcand wrote:

> Hi,
>
> when the management test is run, it prints all kind of (unusefull..at
> least for me :-)) mbean information. Since this info isn't required
> for marking the test pass or fail, can we remove the hudge output? It
> improve the test speed significantly. But maybe there is a reason for
> printing this info?
>
> Thanks
>
> -- Jeanfrancois
>
>> Index: Client.java
>> ===================================================================
>> RCS file:
>> /cvs/glassfish/appserv-tests/sqetests/management/mejb/client/Client.java,v
>>
>> retrieving revision 1.1.1.1
>> diff -u -r1.1.1.1 Client.java
>> --- Client.java 28 May 2005 00:40:15 -0000 1.1.1.1
>> +++ Client.java 2 Aug 2005 17:04:30 -0000
>> @@ -83,31 +83,6 @@
>> attrNames[i] = attrInfo[i].getName();
>> }
>>
>> - // Get attr values from MEJB and print them
>> - try{
>> - AttributeList attrs = mejb.getAttributes(name,
>> attrNames);
>> - for ( int i=0; i<attrs.size(); i++ ) {
>> -
>> - if (attrs.get(i) != null) {
>> - System.out.println("TYPE = " +
>> - attrs.get(i).getClass().getName());
>> - }
>> -
>> - if (attrs.get(i) instanceof Attribute) {
>> - Attribute attr = (Attribute)attrs.get(i);
>> - System.out.println("Attribute name =
>> "+attr.getName()- +"value
>> = "+attr.getValue());
>> - } else {
>> - Object attr = attrs.get(i);
>> - System.out.println("Attribute = " + attr);
>> - }
>> - }
>> - }
>> - catch(Exception exp){
>> - //exp.printStackTrace();
>> - System.out.println("***Exception occured while "+
>> - "accessing mbean details: Keep
>> continuing\n");
>> - }
>> System.out.println("=======================");
>> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>