001: /*
002: * Copyright 2004,2005 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.wso2.esb.persistence.dataobject;
017:
018: /**
019: * The DO representing a statistics record
020: */
021: public class StatisticsDO extends BaseDO {
022:
023: private String serverId;
024: private long category;
025: private String name;
026: private long totalCount;
027: private long faultCount;
028: private long maxTime;
029: private long minTime;
030: private double avgTime;
031: private long direction;
032:
033: public StatisticsDO() {
034: }
035:
036: public StatisticsDO(String serverId, long category, String name,
037: long totalCount, long faultCount, long maxTime,
038: long minTime, double avgTime, long direction) {
039:
040: this .serverId = serverId;
041: this .category = category;
042: this .name = name;
043: this .totalCount = totalCount;
044: this .faultCount = faultCount;
045: this .maxTime = maxTime;
046: this .minTime = minTime;
047: this .avgTime = avgTime;
048: this .direction = direction;
049: }
050:
051: public String getServerId() {
052: return serverId;
053: }
054:
055: public void setServerId(String serverId) {
056: this .serverId = serverId;
057: }
058:
059: public long getCategory() {
060: return category;
061: }
062:
063: public void setCategory(long category) {
064: this .category = category;
065: }
066:
067: public String getName() {
068: return name;
069: }
070:
071: public void setName(String name) {
072: this .name = name;
073: }
074:
075: public long getTotalCount() {
076: return totalCount;
077: }
078:
079: public void setTotalCount(long totalCount) {
080: this .totalCount = totalCount;
081: }
082:
083: public long getFaultCount() {
084: return faultCount;
085: }
086:
087: public void setFaultCount(long faultCount) {
088: this .faultCount = faultCount;
089: }
090:
091: public long getMaxTime() {
092: return maxTime;
093: }
094:
095: public void setMaxTime(long maxTime) {
096: this .maxTime = maxTime;
097: }
098:
099: public long getMinTime() {
100: return minTime;
101: }
102:
103: public void setMinTime(long minTime) {
104: this .minTime = minTime;
105: }
106:
107: public double getAvgTime() {
108: return avgTime;
109: }
110:
111: public void setAvgTime(double avgTime) {
112: this .avgTime = avgTime;
113: }
114:
115: public long getDirection() {
116: return direction;
117: }
118:
119: public void setDirection(long direction) {
120: this .direction = direction;
121: }
122:
123: public String toString() {
124: return "StatisticsDO{" + "serverId='" + serverId + '\''
125: + ", category=" + category + ", name='" + name + '\''
126: + ", totalCount=" + totalCount + ", faultCount="
127: + faultCount + ", maxTime=" + maxTime + ", minTime="
128: + minTime + ", avgTime=" + avgTime + ", direction="
129: + direction + '}';
130: }
131: }
|