geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
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 GMT
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



Mime
View raw message