01: /* ****************************************************************************
02: * PeerCounter.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package org.openlaszlo.test.xmlrpc;
11:
12: public class PeerCounter extends Counter {
13: int myNum;
14:
15: public PeerCounter() {
16: myNum = mCount;
17: }
18:
19: public int getPeerNum() {
20: return myNum;
21: }
22:
23: public int decrement() {
24: return --mCount;
25: }
26:
27: public void reset() {
28: mCount = 0;
29: }
30:
31: }
|