diff options
Diffstat (limited to 'java/demo/RMI/throughput/Throughput.java')
-rwxr-xr-x | java/demo/RMI/throughput/Throughput.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/java/demo/RMI/throughput/Throughput.java b/java/demo/RMI/throughput/Throughput.java new file mode 100755 index 00000000000..7afac1564d1 --- /dev/null +++ b/java/demo/RMI/throughput/Throughput.java @@ -0,0 +1,51 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 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; +} |