blob: 92c7f8717a73f2c897fa6deeb9260b5fb6ab9b11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// **********************************************************************
//
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Throughput extends Remote
{
int ByteSeqSize = 500000;
int StringSeqSize = 50000;
class StringDouble implements java.io.Serializable
{
public String s;
public double d;
};
int StringDoubleSeqSize = 50000;
class Fixed implements java.io.Serializable
{
int i;
int j;
double d;
};
int FixedSeqSize = 50000;
void sendByteSeq(byte[] seq) throws RemoteException;
byte[] recvByteSeq() throws RemoteException;
byte[] echoByteSeq(byte[] seq) throws RemoteException;
void sendStringSeq(String[] seq) throws RemoteException;
String[] recvStringSeq() throws RemoteException;
String[] echoStringSeq(String[] seq) throws RemoteException;
void sendStructSeq(StringDouble[] seq) throws RemoteException;
StringDouble[] recvStructSeq() throws RemoteException;
StringDouble[] echoStructSeq(StringDouble[] seq) throws RemoteException;
void sendFixedSeq(Fixed[] seq) throws RemoteException;
Fixed[] recvFixedSeq() throws RemoteException;
Fixed[] echoFixedSeq(Fixed[] seq) throws RemoteException;
void shutdown() throws RemoteException;
}
|