KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > iiopperf > interfaces > Session


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.iiopperf.interfaces;
23
24 import java.util.Collection JavaDoc;
25 import java.util.Map JavaDoc;
26 import java.rmi.Remote JavaDoc;
27 import java.rmi.RemoteException JavaDoc;
28 import javax.ejb.EJBObject JavaDoc;
29
30 /**
31  * @author Francisco.Reverbel@jboss.org
32  * @version $Revision: 37406 $
33  */

34 public interface Session
35    extends EJBObject JavaDoc
36 {
37    public void sendReceiveNothing()
38       throws RemoteException JavaDoc;
39
40    public void sendBoolean(boolean flag)
41       throws RemoteException JavaDoc;
42
43    public boolean receiveBoolean()
44       throws RemoteException JavaDoc;
45
46    public boolean sendReceiveBoolean(boolean flag)
47       throws RemoteException JavaDoc;
48
49    public void sendChar(char c)
50       throws RemoteException JavaDoc;
51
52    public char receiveChar()
53       throws RemoteException JavaDoc;
54
55    public char sendReceiveChar(char c)
56       throws RemoteException JavaDoc;
57
58    public void sendByte(byte b)
59       throws RemoteException JavaDoc;
60
61    public byte receiveByte()
62       throws RemoteException JavaDoc;
63
64    public byte sendReceiveByte(byte b)
65       throws RemoteException JavaDoc;
66
67    public void sendShort(short s)
68       throws RemoteException JavaDoc;
69
70    public short receiveShort()
71       throws RemoteException JavaDoc;
72
73    public short sendReceiveShort(short s)
74       throws RemoteException JavaDoc;
75
76    public void sendInt(int i)
77       throws RemoteException JavaDoc;
78
79    public int receiveInt()
80       throws RemoteException JavaDoc;
81
82    public int sendReceiveInt(int i)
83       throws RemoteException JavaDoc;
84
85    public void sendLong(long l)
86       throws RemoteException JavaDoc;
87
88    public long receiveLong()
89       throws RemoteException JavaDoc;
90
91    public long sendReceiveLong(long l)
92       throws RemoteException JavaDoc;
93
94    public void sendFloat(float f)
95       throws RemoteException JavaDoc;
96
97    public float receiveFloat()
98       throws RemoteException JavaDoc;
99
100    public float sendReceiveFloat(float f)
101       throws RemoteException JavaDoc;
102
103    public void sendDouble(double d)
104       throws RemoteException JavaDoc;
105
106    public double receiveDouble()
107       throws RemoteException JavaDoc;
108
109    public double sendReceiveDouble(double d)
110       throws RemoteException JavaDoc;
111
112    public void sendString(String JavaDoc s)
113       throws RemoteException JavaDoc;
114
115    public String JavaDoc receiveString()
116       throws RemoteException JavaDoc;
117
118    public String JavaDoc sendReceiveString(String JavaDoc s)
119       throws RemoteException JavaDoc;
120
121    public void sendRemote(Remote JavaDoc r)
122       throws RemoteException JavaDoc;
123
124    public Remote JavaDoc receiveRemote()
125       throws RemoteException JavaDoc;
126
127    public Remote JavaDoc sendReceiveRemote(Remote JavaDoc r)
128       throws RemoteException JavaDoc;
129
130    public void sendSessionRef(Session s)
131       throws RemoteException JavaDoc;
132
133    public Session receiveSessionRef()
134       throws RemoteException JavaDoc;
135
136    public Session sendReceiveSessionRef(Session s)
137       throws RemoteException JavaDoc;
138
139    public void sendSimpleSerializable(Foo foo)
140       throws RemoteException JavaDoc;
141
142    public Foo receiveSimpleSerializable()
143       throws RemoteException JavaDoc;
144
145    public Foo sendReceiveSimpleSerializable(Foo r)
146       throws RemoteException JavaDoc;
147
148    public void sendSimpleCustomMarshalledSerializable(CMFoo cmfoo)
149       throws RemoteException JavaDoc;
150
151    public CMFoo receiveSimpleCustomMarshalledSerializable()
152       throws RemoteException JavaDoc;
153
154    public CMFoo sendReceiveSimpleCustomMarshalledSerializable(CMFoo cmfoo)
155       throws RemoteException JavaDoc;
156
157    public void sendNestedSerializable(Zoo zoo)
158       throws RemoteException JavaDoc;
159
160    public Zoo receiveNestedSerializable()
161       throws RemoteException JavaDoc;
162
163    public Zoo sendReceiveNestedSerializable(Zoo zoo)
164       throws RemoteException JavaDoc;
165
166    public void sendIntArray(int[] a)
167       throws RemoteException JavaDoc;
168
169    public int[] receiveIntArray()
170       throws RemoteException JavaDoc;
171
172    public int[] sendReceiveIntArray(int[] a)
173       throws RemoteException JavaDoc;
174
175    public void sendStringArray(String JavaDoc[] a)
176       throws RemoteException JavaDoc;
177
178    public String JavaDoc[] receiveStringArray()
179       throws RemoteException JavaDoc;
180
181    public String JavaDoc[] sendReceiveStringArray(String JavaDoc[] a)
182       throws RemoteException JavaDoc;
183
184    public void sendArrayOfSerializables(Foo[] a)
185       throws RemoteException JavaDoc;
186
187    public Foo[] receiveArrayOfSerializables()
188       throws RemoteException JavaDoc;
189
190    public Foo[] sendReceiveArrayOfSerializables(Foo[] a)
191       throws RemoteException JavaDoc;
192
193    public void sendCollection(Collection JavaDoc c)
194       throws RemoteException JavaDoc;
195
196    public Collection JavaDoc receiveCollection()
197       throws RemoteException JavaDoc;
198
199    public Collection JavaDoc sendReceiveCollection(Collection JavaDoc c)
200       throws RemoteException JavaDoc;
201
202    public void sendMap(Map JavaDoc m)
203       throws RemoteException JavaDoc;
204
205    public Map JavaDoc receiveMap()
206       throws RemoteException JavaDoc;
207
208    public Map JavaDoc sendReceiveMap(Map JavaDoc m)
209       throws RemoteException JavaDoc;
210
211    public void throwException()
212       throws TestException, RemoteException JavaDoc;
213    
214 }
215
Popular Tags