Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 78001 invoked from network); 8 Sep 2005 21:38:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Sep 2005 21:38:05 -0000 Received: (qmail 8928 invoked by uid 500); 8 Sep 2005 21:38:04 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 8913 invoked by uid 500); 8 Sep 2005 21:38:04 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 8897 invoked by uid 99); 8 Sep 2005 21:38:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2005 14:38:04 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Sep 2005 14:38:16 -0700 Received: (qmail 77990 invoked by uid 65534); 8 Sep 2005 21:38:02 -0000 Message-ID: <20050908213802.77989.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r279645 - /geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java Date: Thu, 08 Sep 2005 21:38:02 -0000 To: scm@geronimo.apache.org From: ammulder@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ammulder Date: Thu Sep 8 14:37:59 2005 New Revision: 279645 URL: http://svn.apache.org/viewcvs?rev=279645&view=rev Log: Add another statistics type Added: geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java (with props) Added: geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java?rev=279645&view=auto ============================================================================== --- geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java (added) +++ geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java Thu Sep 8 14:37:59 2005 @@ -0,0 +1,65 @@ +/** + * + * Copyright 2003-2004 The Apache Software Foundation + * + * Licensed 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.TimeStatistic; + +/** + * @version $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $ + */ +public class TimeStatisticImpl extends StatisticImpl implements TimeStatistic { + long count; + long minTime; + long maxTime; + long totalTime; + + public TimeStatisticImpl(String name, String unit, String description) { + super(name, unit, description); + } + + public long getCount() { + return count; + } + + public void setCount(long count) { + this.count = count; + } + + public long getMinTime() { + return minTime; + } + + public void setMinTime(long minTime) { + this.minTime = minTime; + } + + public long getMaxTime() { + return maxTime; + } + + public void setMaxTime(long maxTime) { + this.maxTime = maxTime; + } + + public long getTotalTime() { + return totalTime; + } + + public void setTotalTime(long totalTime) { + this.totalTime = totalTime; + } +} Propchange: geronimo/trunk/modules/management/src/java/org/apache/geronimo/management/stats/TimeStatisticImpl.java ------------------------------------------------------------------------------ svn:eol-style = native