Package org.apache.harmony.rmi.test

Examples of org.apache.harmony.rmi.test.TestObject


     */
    private void runTestServer0(int config) throws Exception {
        System.err.println("Test server started");
        System.setSecurityManager(new RMISecurityManager());
        setEnvironmentForConfig(config);
        MyRemoteInterface1 obj = new TestObject();
        UnicastRemoteObject.exportObject(obj, CUSTOM_PORT_4);
        LocateRegistry.getRegistry().rebind(
                TEST_STRING_1, RemoteObject.toStub(obj));
        GCThread.create();
        System.err.println("Test server initialized, telling READY to parent");
View Full Code Here


    private void runTestServer3(int config) throws Exception {
        System.err.println("Test server started");
        System.setSecurityManager(new RMISecurityManager());
        setEnvironmentForConfig(config);
        Registry reg = LocateRegistry.createRegistry(REGISTRY_PORT);
        TestObject obj = new TestObject();
        UnicastRemoteObject.exportObject(obj, REGISTRY_PORT);
        obj = null;
        System.gc();
        System.err.println("Test server exiting");
    }
View Full Code Here

     */
    private void runTestServer0(int config) throws Exception {
        System.err.println("Test server started");
        System.setSecurityManager(new RMISecurityManager());
        setEnvironmentForConfig(config);
        MyRemoteInterface1 obj = new TestObject();
        UnicastRemoteObject.exportObject(obj, CUSTOM_PORT_4);
        LocateRegistry.getRegistry().rebind(
                TEST_STRING_1, RemoteObject.toStub(obj));
        GCThread.create();
        System.err.println("Test server initialized, telling READY to parent");
View Full Code Here

    private void runTestServer3(int config) throws Exception {
        System.err.println("Test server started");
        System.setSecurityManager(new RMISecurityManager());
        setEnvironmentForConfig(config);
        Registry reg = LocateRegistry.createRegistry(REGISTRY_PORT);
        TestObject obj = new TestObject();
        UnicastRemoteObject.exportObject(obj, REGISTRY_PORT);
        obj = null;
        System.gc();
        System.err.println("Test server exiting");
    }
View Full Code Here

TOP

Related Classes of org.apache.harmony.rmi.test.TestObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.