geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher M. Cardona" <chris.m.card...@gmail.com>
Subject Re: svn commit: r502533 - /geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/
Date Fri, 02 Feb 2007 19:53:53 GMT
Anita,

I added the new class because the name of the old one is not correct. I 
intentionally left the old one just in case somebody is using it. I'll 
remove it later.

Best wishes,
chris

anita kulshreshtha wrote:
> Chris,
>     BoundedRangeStatisticImpl duplicates BoundedRangeImpl. The new name
> is more uniform. We can get rid of the old one. 
>
> Thanks
> Anita
>
> --- ccardona@apache.org wrote:
>
>   
>> Author: ccardona
>> Date: Fri Feb  2 00:41:53 2007
>> New Revision: 502533
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=502533
>> Log:
>> GERONIMO-2517 : Implement JSR77 Stats interfaces.
>> - Initial check in of Stats interfaces implementing classes
>>
>> Added:
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/BoundedRangeStatisticImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EJBStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EntityBeanStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JCAConnectionPoolStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JCAConnectionStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JCAStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JDBCConnectionPoolStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JDBCConnectionStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JDBCStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSConnectionStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSConsumerStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSEndpointStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSProducerStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSSessionStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JMSStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JTAStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/JavaMailStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/MessageDrivenBeanStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/ServletStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/SessionBeanStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/StatefulSessionBeanStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/StatelessSessionBeanStatsImpl.java
>   
>>    
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/URLStatsImpl.java
>   
>> Added:
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/BoundedRangeStatisticImpl.java
>   
>> URL:
>>
>>     
> http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/BoundedRangeStatisticImpl.java?view=auto&rev=502533
>   
> ==============================================================================
>   
>> ---
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/BoundedRangeStatisticImpl.java
>   
>> (added)
>> +++
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/BoundedRangeStatisticImpl.java
>   
>> Fri Feb  2 00:41:53 2007
>> @@ -0,0 +1,68 @@
>> +/**
>> + *  Licensed to the Apache Software Foundation (ASF) under one or
>> more
>> + *  contributor license agreements.  See the NOTICE file distributed
>> with
>> + *  this work for additional information regarding copyright
>> ownership.
>> + *  The ASF licenses this file to You under the Apache License,
>> Version 2.0
>> + *  (the "License"); you may not use this file except in compliance
>> with
>> + *  the License.  You may obtain a copy of the License at
>> + *
>> + *     http://www.apache.org/licenses/LICENSE-2.0
>> + *
>> + *  Unless required by applicable law or agreed to in writing,
>> software
>> + *  distributed under the License is distributed on an "AS IS"
>> BASIS,
>> + *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> + *  See the License for the specific language governing permissions
>> and
>> + *  limitations under the License.
>> + */
>> +package org.apache.geronimo.management.stats;
>> +
>> +import javax.management.j2ee.statistics.BoundedRangeStatistic;
>> +
>> +/**
>> + * @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16
>> Nov 2006) $
>> + */
>> +public class BoundedRangeStatisticImpl extends RangeStatisticImpl
>> implements BoundedRangeStatistic {
>> +    private long upperBound;
>> +    private long lowerBound;
>> +
>> +    public BoundedRangeStatisticImpl(String name, String unit,
>> String description) {
>> +        super(name, unit, description);
>> +    }
>> +
>> +    public BoundedRangeStatisticImpl(String name, String unit,
>> String description, long currentValue, long lowerBound, long
>> upperBound) {
>> +        super(name, unit, description, currentValue);
>> +        this.upperBound = upperBound;
>> +        this.lowerBound = lowerBound;
>> +    }
>> +
>> +    public long getUpperBound() {
>> +        return upperBound;
>> +    }
>> +
>> +    public void setUpperBound(long upperBound) {
>> +        this.upperBound = upperBound;
>> +    }
>> +
>> +    public long getLowerBound() {
>> +        return lowerBound;
>> +    }
>> +
>> +    public void setLowerBound(long lowerBound) {
>> +        this.lowerBound = lowerBound;
>> +    }
>> +
>> +    public void setBounds(long lower, long upper) {
>> +        upperBound = upper;
>> +        lowerBound = lower;
>> +    }
>> +
>> +    public void setCurrent(long current) {
>> +        super.setCurrent(current);
>> +        if(current < lowerBound) {
>> +            lowerBound = current;
>> +        }
>> +        if(current > upperBound) {
>> +            upperBound = current;
>> +        }
>> +    }
>> +}
>>
>> Added:
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EJBStatsImpl.java
>   
>> URL:
>>
>>     
> http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EJBStatsImpl.java?view=auto&rev=502533
>   
> ==============================================================================
>   
>> ---
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EJBStatsImpl.java
>   
>> (added)
>> +++
>>
>>     
> geronimo/server/trunk/modules/geronimo-management/src/main/java/org/apache/geronimo/management/stats/EJBStatsImpl.java
>   
>> Fri Feb  2 00:41:53 2007
>> @@ -0,0 +1,50 @@
>> +/**
>> + *  Licensed to the Apache Software Foundation (ASF) under one or
>> more
>> + *  contributor license agreements.  See the NOTICE file distributed
>> with
>> + *  this work for additional information regarding copyright
>> ownership.
>> + *  The ASF licenses this file to You under the Apache License,
>> Version 2.0
>> + *  (the "License"); you may not use this file except in compliance
>> with
>> + *  the License.  You may obtain a copy of the License at
>> + *
>> + *     http://www.apache.org/licenses/LICENSE-2.0
>> + *
>> + *  Unless required by applicable law or agreed to in writing,
>> software
>> + *  distributed under the License is distributed on an "AS IS"
>> BASIS,
>> + *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> + *  See the License for the specific language governing permissions
>> and
>> + *  limitations under the License.
>> + */
>> +package org.apache.geronimo.management.stats;
>> +
>> +import javax.management.j2ee.statistics.CountStatistic;
>> +import javax.management.j2ee.statistics.EJBStats;
>> +
>> +/**
>> + * Geronimo implementation of the JSR-77 EJBStats interface.
>> + * 
>> + * @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16
>> Nov 2006) $
>> + */
>> +public class EJBStatsImpl extends StatsImpl implements EJBStats {
>>
>>     
> === message truncated ===
>
>
>
>  
> ____________________________________________________________________________________
> Need a quick answer? Get one in minutes from people who know.
> Ask your question on www.Answers.yahoo.com
>
>   


Mime
View raw message