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