
org.apache.geronimo.management.stats.TimeStatisticImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geronimo-management Show documentation
Show all versions of geronimo-management Show documentation
Contains interfaces that define the management API for Geronimo.
The newest version!
/**
* 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.TimeStatistic;
/**
* @version $Rev: 503407 $ $Date: 2007-02-04 21:57:40 +0800 (Sun, 04 Feb 2007) $
*/
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;
}
public String toString() {
return(getName() + " in " + getUnit() + " -- count: " + count + ", minTime: " + minTime + ", maxTime: " + maxTime +
", totalTime: " + totalTime);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy