View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.jdiagnose.remote.system;
17  
18  /***
19   * @author jmccrindle
20   */
21  public class DefaultCompositeStatistics implements CompositeStatistics {
22  
23      private int totalChildren;
24      private int upChildren;
25      private int downChildren;
26      
27      /***
28       * @param totalChildren
29       * @param upChildren
30       * @param downChildren
31       */
32      public DefaultCompositeStatistics(int totalChildren, int upChildren,
33              int downChildren) {
34          super();
35          this.totalChildren = totalChildren;
36          this.upChildren = upChildren;
37          this.downChildren = downChildren;
38      }
39  
40      /***
41       * @return Returns the downChildren.
42       */
43      public int getDownChildren() {
44          return downChildren;
45      }
46      /***
47       * @return Returns the totalChildren.
48       */
49      public int getTotalChildren() {
50          return totalChildren;
51      }
52      /***
53       * @return Returns the upChildren.
54       */
55      public int getUpChildren() {
56          return upChildren;
57      }
58  }