KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > clients > distribution > A_bankLwrite


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
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.1 of the License, or 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
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: A_bankLwrite.java,v 1.2 2005/02/03 12:16:09 coqp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26
27 package org.objectweb.jonas.jtests.clients.distribution;
28
29 import java.rmi.NoSuchObjectException JavaDoc;
30 import java.rmi.ServerException JavaDoc;
31
32 public abstract class A_bankLwrite extends A_bankRead {
33
34     public A_bankLwrite(String JavaDoc name) {
35         super(name);
36     }
37     /**
38      * Operation= create
39      * min 100 mx 150 loop 1 Thread 1
40      * @throws Exception
41      */

42     public void testBasicCreate() throws Exception JavaDoc {
43         ope(OP_CREATE, 100, 150, 1, 1);
44     }
45     /**
46      * Operation= create
47      * min 6000 mx 8000 loop 100 Thread 1
48      * @throws Exception
49      */

50     public void testShortCreate() throws Exception JavaDoc {
51         ope(OP_CREATE, 6000, 8000, 100, 1);
52     }
53     /**
54      * Operation= create
55      * min 9000 mx 9900 loop 1 Threads 12
56      * @throws Exception
57      */

58     public void testMultiCreate() throws Exception JavaDoc {
59         ope(OP_CREATE, 9000, 9900, 1, 12);
60     }
61
62     /**
63      * Operation= move
64      * min 0 mx 5 loop 1 Threads 5
65      * @throws Exception
66      */

67     public void testMultiMove() throws Exception JavaDoc {
68         ope(OP_MOVE, 0, 5, 1, 5);
69     }
70   
71      /**
72      * Operation= create
73      * min 2000 mx 80000 loop 40 Thread 1
74      * @throws Exception
75      */

76     
77     public void testLongCreate() throws Exception JavaDoc {
78         ope(OP_CREATE, 20000, 80000, 40, 1);
79     }
80     
81     /**
82      * Operation= create
83      * min 10000 mx 50000 loop 20 Threads 4
84      * @throws Exception
85      */

86    
87     public void testMultiLongCreate() throws Exception JavaDoc {
88         ope(OP_CREATE, 10000, 50000, 20, 4);
89   
90     }
91     
92     /**
93      * Operation= move on the same acount
94      * min 6 mx 6 loop 20 Threads 10 amount 10
95      * @throws Exception
96      */

97     public void testMultiLongSameAccount() throws Exception JavaDoc {
98         ope(OP_MOVETO, 6, 6, 20, 10, 10);
99     }
100
101 }
102
Popular Tags