KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > common > ParamsTest


1 /**
2  * Speedo: an implementation of JDO compliant personality on top of JORM generic
3  * I/O sub-system.
4  * Copyright (C) 2001-2004 France Telecom R&D
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  *
21  *
22  * Contact: speedo@objectweb.org
23  *
24  * Authors: S.Chassande-Barrioz.
25  *
26  */

27
28 package org.objectweb.speedo.pobjects.common;
29
30 public class ParamsTest {
31     
32     //Number of threads
33
private int nbth;
34     //Number of transactions
35
private int nbtx;
36     //Number of action : number of creation, ....
37
private int nbc;
38     //Thread Timeout
39
private int to;
40     //Start Id
41
private int startid;
42     //Db Size
43
private int dbSize;
44     
45     
46     
47     /**
48      * @return Returns the nbc.
49      */

50     public int getNbc() {
51         return nbc;
52     }
53
54     /**
55      * @param nbc The nbc to set.
56      */

57     public void setNbc(int nbc) {
58         this.nbc = nbc;
59     }
60
61     /**
62      * @return Returns the nbth.
63      */

64     public int getNbth() {
65         return nbth;
66     }
67
68     /**
69      * @param nbth The nbth to set.
70      */

71     public void setNbth(int nbth) {
72         this.nbth = nbth;
73     }
74
75     /**
76      * @return Returns the nbtx.
77      */

78     public int getNbtx() {
79         return nbtx;
80     }
81
82     /**
83      * @param nbtx The nbtx to set.
84      */

85     public void setNbtx(int nbtx) {
86         this.nbtx = nbtx;
87     }
88
89     /**
90      * @return Returns the startid.
91      */

92     public int getStartid() {
93         return startid;
94     }
95
96     /**
97      * @param startid The startid to set.
98      */

99     public void setStartid(int startid) {
100         this.startid = startid;
101     }
102
103     /**
104      * @return Returns the to.
105      */

106     public int getTo() {
107         return to;
108     }
109
110     /**
111      * @param to The to to set.
112      */

113     public void setTo(int to) {
114         this.to = to;
115     }
116     
117     /**
118      * Constuctor for TestCreation
119      * @param nbth
120      * @param nbtx
121      * @param nbc
122      * @param to
123      * @param startid
124      */

125     public ParamsTest(int nbth, int nbtx, int nbc, int to, int startid) {
126         this.nbth = nbth;
127         this.nbtx = nbtx;
128         this.nbc = nbc;
129         this.to = to;
130         this.startid = startid;
131     }
132     /**
133      * Constuctor for testDeletion
134      * @param nbth
135      * @param nbtx
136      * @param nbc
137      * @param to
138      * @param dbSize
139      */

140     public ParamsTest(int nbth, int nbtx, int nbc, int to,int startid, int dbSize) {
141         this.nbth = nbth;
142         this.nbtx = nbtx;
143         this.nbc = nbc;
144         this.to = to;
145         this.dbSize = dbSize;
146     }
147     /**
148      * @return Returns the dbSize.
149      */

150     public int getDbSize() {
151         return dbSize;
152     }
153
154     /**
155      * @param dbSize The dbSize to set.
156      */

157     public void setDbSize(int dbSize) {
158         this.dbSize = dbSize;
159     }
160
161
162 }
163
Popular Tags