summaryrefslogtreecommitdiff
path: root/java/demo/RMI/throughput/Throughput.java
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2008-12-02 05:16:18 +1000
committerMichi Henning <michi@zeroc.com>2008-12-02 05:16:18 +1000
commitdb378111c940d3495c09264aa5aeb58b7ca4a42e (patch)
treee8271e108e948fbd7aeae732832d8a5db7009ea2 /java/demo/RMI/throughput/Throughput.java
parentAdded build.xml files. (diff)
downloadice-db378111c940d3495c09264aa5aeb58b7ca4a42e.tar.bz2
ice-db378111c940d3495c09264aa5aeb58b7ca4a42e.tar.xz
ice-db378111c940d3495c09264aa5aeb58b7ca4a42e.zip
Add more missing files.
Diffstat (limited to 'java/demo/RMI/throughput/Throughput.java')
-rwxr-xr-xjava/demo/RMI/throughput/Throughput.java51
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;
+}