001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.iiopperf.interfaces;
023:
024: import java.util.Collection;
025: import java.util.Map;
026: import java.rmi.Remote;
027: import java.rmi.RemoteException;
028: import javax.ejb.EJBObject;
029:
030: /**
031: * @author Francisco.Reverbel@jboss.org
032: * @version $Revision: 57211 $
033: */
034: public interface Session extends EJBObject {
035: public void sendReceiveNothing() throws RemoteException;
036:
037: public void sendBoolean(boolean flag) throws RemoteException;
038:
039: public boolean receiveBoolean() throws RemoteException;
040:
041: public boolean sendReceiveBoolean(boolean flag)
042: throws RemoteException;
043:
044: public void sendChar(char c) throws RemoteException;
045:
046: public char receiveChar() throws RemoteException;
047:
048: public char sendReceiveChar(char c) throws RemoteException;
049:
050: public void sendByte(byte b) throws RemoteException;
051:
052: public byte receiveByte() throws RemoteException;
053:
054: public byte sendReceiveByte(byte b) throws RemoteException;
055:
056: public void sendShort(short s) throws RemoteException;
057:
058: public short receiveShort() throws RemoteException;
059:
060: public short sendReceiveShort(short s) throws RemoteException;
061:
062: public void sendInt(int i) throws RemoteException;
063:
064: public int receiveInt() throws RemoteException;
065:
066: public int sendReceiveInt(int i) throws RemoteException;
067:
068: public void sendLong(long l) throws RemoteException;
069:
070: public long receiveLong() throws RemoteException;
071:
072: public long sendReceiveLong(long l) throws RemoteException;
073:
074: public void sendFloat(float f) throws RemoteException;
075:
076: public float receiveFloat() throws RemoteException;
077:
078: public float sendReceiveFloat(float f) throws RemoteException;
079:
080: public void sendDouble(double d) throws RemoteException;
081:
082: public double receiveDouble() throws RemoteException;
083:
084: public double sendReceiveDouble(double d) throws RemoteException;
085:
086: public void sendString(String s) throws RemoteException;
087:
088: public String receiveString() throws RemoteException;
089:
090: public String sendReceiveString(String s) throws RemoteException;
091:
092: public void sendRemote(Remote r) throws RemoteException;
093:
094: public Remote receiveRemote() throws RemoteException;
095:
096: public Remote sendReceiveRemote(Remote r) throws RemoteException;
097:
098: public void sendSessionRef(Session s) throws RemoteException;
099:
100: public Session receiveSessionRef() throws RemoteException;
101:
102: public Session sendReceiveSessionRef(Session s)
103: throws RemoteException;
104:
105: public void sendSimpleSerializable(Foo foo) throws RemoteException;
106:
107: public Foo receiveSimpleSerializable() throws RemoteException;
108:
109: public Foo sendReceiveSimpleSerializable(Foo r)
110: throws RemoteException;
111:
112: public void sendSimpleCustomMarshalledSerializable(CMFoo cmfoo)
113: throws RemoteException;
114:
115: public CMFoo receiveSimpleCustomMarshalledSerializable()
116: throws RemoteException;
117:
118: public CMFoo sendReceiveSimpleCustomMarshalledSerializable(
119: CMFoo cmfoo) throws RemoteException;
120:
121: public void sendNestedSerializable(Zoo zoo) throws RemoteException;
122:
123: public Zoo receiveNestedSerializable() throws RemoteException;
124:
125: public Zoo sendReceiveNestedSerializable(Zoo zoo)
126: throws RemoteException;
127:
128: public void sendIntArray(int[] a) throws RemoteException;
129:
130: public int[] receiveIntArray() throws RemoteException;
131:
132: public int[] sendReceiveIntArray(int[] a) throws RemoteException;
133:
134: public void sendStringArray(String[] a) throws RemoteException;
135:
136: public String[] receiveStringArray() throws RemoteException;
137:
138: public String[] sendReceiveStringArray(String[] a)
139: throws RemoteException;
140:
141: public void sendArrayOfSerializables(Foo[] a)
142: throws RemoteException;
143:
144: public Foo[] receiveArrayOfSerializables() throws RemoteException;
145:
146: public Foo[] sendReceiveArrayOfSerializables(Foo[] a)
147: throws RemoteException;
148:
149: public void sendCollection(Collection c) throws RemoteException;
150:
151: public Collection receiveCollection() throws RemoteException;
152:
153: public Collection sendReceiveCollection(Collection c)
154: throws RemoteException;
155:
156: public void sendMap(Map m) throws RemoteException;
157:
158: public Map receiveMap() throws RemoteException;
159:
160: public Map sendReceiveMap(Map m) throws RemoteException;
161:
162: public void throwException() throws TestException, RemoteException;
163:
164: }
|