You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gh...@apache.org on 2006/05/18 22:01:30 UTC

svn commit: r407625 [16/16] - in /incubator/harmony/enhanced/classlib/trunk/modules/rmi3: ./ doc/ make/ src/ src/common/ src/common/javasrc/ src/common/javasrc/java/ src/common/javasrc/java/rmi/ src/common/javasrc/java/rmi/activation/ src/common/javasr...

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/MyRemoteObject_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestInterface.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestInterface.java?rev=407625&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestInterface.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestInterface.java Thu May 18 13:01:22 2006
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @author  Mikhail A. Markov, Vasily Zakharov
+ * @version $Revision: 1.1.2.2 $
+ */
+package org.apache.harmony.rmi.test;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+
+/**
+ * @author  Mikhail A. Markov, Vasily Zakharov
+ * @version $Revision: 1.1.2.2 $
+ */
+public interface TestInterface extends Remote {
+
+    public void runRemote(Remote r) throws RemoteException;
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestInterface.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject.java?rev=407625&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject.java Thu May 18 13:01:22 2006
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @author  Mikhail A. Markov, Vasily Zakharov
+ * @version $Revision: 1.1.2.1 $
+ */
+package org.apache.harmony.rmi.test;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+
+/**
+ * @author  Mikhail A. Markov, Vasily Zakharov
+ * @version $Revision: 1.1.2.1 $
+ */
+public class TestObject implements MyRemoteInterface1, TestInterface {
+
+    Remote r;
+
+    String msg;
+
+    public TestObject() {
+        msg = null;
+    }
+
+    public TestObject(String msg) {
+        this.msg = msg;
+    }
+
+    public String test1() throws RemoteException {
+        if (msg == null) {
+            System.out.println("TestObject.test1() started");
+
+            try {
+                Thread.sleep(10000);
+            } catch (InterruptedException e) {}
+
+            System.out.println("TestObject.test1() complete");
+            return null;
+        } else {
+            return msg;
+        }
+    }
+
+    public void runRemote(Remote r) throws RemoteException {
+        this.r = r;
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject_Stub.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject_Stub.java?rev=407625&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject_Stub.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject_Stub.java Thu May 18 13:01:22 2006
@@ -0,0 +1,64 @@
+/*
+ * RMI stub class
+ * for class org.apache.harmony.rmi.test.TestObject
+ * Compatible with stub protocol version 1.2
+ *
+ * Generated by DRL RMI Compiler (rmic).
+ *
+ * DO NOT EDIT!!!
+ * Contents subject to change without notice!
+ */
+package org.apache.harmony.rmi.test;
+
+
+public final class TestObject_Stub extends java.rmi.server.RemoteStub
+        implements org.apache.harmony.rmi.test.MyRemoteInterface1, org.apache.harmony.rmi.test.TestInterface {
+
+    private static final long serialVersionUID = 2;
+
+    private static java.lang.reflect.Method $method_runRemote_0;
+    private static java.lang.reflect.Method $method_test1_1;
+
+    static {
+        try {
+            $method_runRemote_0 = org.apache.harmony.rmi.test.TestInterface.class.getMethod("runRemote", new java.lang.Class[] {java.rmi.Remote.class});
+            $method_test1_1 = org.apache.harmony.rmi.test.MyRemoteInterface1.class.getMethod("test1", new java.lang.Class[] {});
+        } catch (java.lang.NoSuchMethodException e) {
+            throw new java.lang.NoSuchMethodError(
+                    "Stub class initialization failed: org.apache.harmony.rmi.test.TestObject_Stub");
+        }
+    }
+
+    public TestObject_Stub(java.rmi.server.RemoteRef ref) {
+        super(ref);
+    }
+
+    // Implementation of runRemote(Remote)
+    public void runRemote(java.rmi.Remote $param_Remote_1)
+            throws java.rmi.RemoteException {
+        try {
+            ref.invoke(this, $method_runRemote_0, new java.lang.Object[] {$param_Remote_1}, -3789895345284725521L);
+        } catch (java.lang.RuntimeException e) {
+            throw e;
+        } catch (java.rmi.RemoteException e) {
+            throw e;
+        } catch (java.lang.Exception e) {
+            throw new java.rmi.UnexpectedException("Undeclared checked exception", e);
+        }
+    }
+
+    // Implementation of test1()
+    public java.lang.String test1()
+            throws java.rmi.RemoteException {
+        try {
+            java.lang.Object $result = ref.invoke(this, $method_test1_1, null, -52386119061268754L);
+            return ((java.lang.String) $result);
+        } catch (java.lang.RuntimeException e) {
+            throw e;
+        } catch (java.rmi.RemoteException e) {
+            throw e;
+        } catch (java.lang.Exception e) {
+            throw new java.rmi.UnexpectedException("Undeclared checked exception", e);
+        }
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/rmi3/test/common/unit/org/apache/harmony/rmi/test/TestObject_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native