Examples of UnicastRef


Examples of gnu.java.rmi.server.UnicastRef

public static Registry getRegistry(String host, int port) throws RemoteException {
  return (getRegistry(host, port, RMISocketFactory.getSocketFactory()));
}

public static Registry getRegistry(String host, int port, RMIClientSocketFactory csf) throws RemoteException {
  RemoteRef ref = new UnicastRef(new ObjID(ObjID.REGISTRY_ID), host, port, csf);
  return (new RegistryImpl_Stub(ref));
}
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastRef

        RenewInfo(Endpoint ep) {
            this.ep = ep;
            try {
                dgcStub = (DGC) dgcStubClass.getConstructor(
                        new Class[] { RemoteRef.class }).newInstance(
                                new Object[] { new UnicastRef(ep, DGC_ID) });
            } catch (Exception ex) {
                // rmi.79=Unable to initialized DGC stub.
                throw new Error(Messages.getString("rmi.79"), ex); //$NON-NLS-1$
            }
        }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastRef

            Class regClass = Class.forName(
                    "org.apache.harmony.rmi.registry.RegistryImpl_Stub"); //$NON-NLS-1$
            RemoteRef ref;

            if (csf == null) {
                ref = new UnicastRef(host, port, new ObjID(ObjID.REGISTRY_ID));
            } else {
                ref = new UnicastRef2(host, port, csf,
                        new ObjID(ObjID.REGISTRY_ID));
            }
            return (Registry) regClass.getConstructor(
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastRef

        RenewInfo(Endpoint ep) {
            this.ep = ep;
            try {
                dgcStub = (DGC) dgcStubClass.getConstructor(
                        new Class[] { RemoteRef.class }).newInstance(
                                new Object[] { new UnicastRef(ep, DGC_ID) });
            } catch (Exception ex) {
                // rmi.79=Unable to initialized DGC stub.
                throw new Error(Messages.getString("rmi.79"), ex); //$NON-NLS-1$
            }
        }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastRef

            Class regClass = Class.forName(
                    "org.apache.harmony.rmi.registry.RegistryImpl_Stub"); //$NON-NLS-1$
            RemoteRef ref;

            if (csf == null) {
                ref = new UnicastRef(host, port, new ObjID(ObjID.REGISTRY_ID));
            } else {
                ref = new UnicastRef2(host, port, csf,
                        new ObjID(ObjID.REGISTRY_ID));
            }
            return (Registry) regClass.getConstructor(
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastRef

        RenewInfo(Endpoint ep) {
            this.ep = ep;
            try {
                dgcStub = (DGC) dgcStubClass.getConstructor(
                        new Class[] { RemoteRef.class }).newInstance(
                                new Object[] { new UnicastRef(ep, DGC_ID) });
            } catch (Exception ex) {
                // rmi.79=Unable to initialized DGC stub.
                throw new Error(Messages.getString("rmi.79"), ex); //$NON-NLS-1$
            }
        }
View Full Code Here

Examples of sun.rmi.server.UnicastRef

  LiveRef liveRef =
      new LiveRef(new ObjID(ObjID.REGISTRY_ID),
      new TCPEndpoint(host, port, csf, null),
      false);
  RemoteRef ref =
      (csf == null) ? new UnicastRef(liveRef) : new UnicastRef2(liveRef);

  return (Registry) Util.createProxy(RegistryImpl.class, ref, false);
    }
View Full Code Here

Examples of sun.rmi.server.UnicastRef

        LiveRef liveRef =
            new LiveRef(new ObjID(ObjID.REGISTRY_ID),
                        new TCPEndpoint(host, port, csf, null),
                        false);
        RemoteRef ref =
            (csf == null) ? new UnicastRef(liveRef) : new UnicastRef2(liveRef);

        return (Registry) Util.createProxy(RegistryImpl.class, ref, false);
    }
View Full Code Here

Examples of sun.rmi.server.UnicastRef

        private EndpointEntry(final Endpoint endpoint) {
            this.endpoint = endpoint;
            try {
                LiveRef dgcRef = new LiveRef(dgcID, endpoint, false);
                dgc = (DGC) Util.createProxy(DGCImpl.class,
                                             new UnicastRef(dgcRef), true);
            } catch (RemoteException e) {
                throw new Error("internal error creating DGC stub");
            }
            renewCleanThread = (Thread) AccessController.doPrivileged(
                new NewThreadAction(new RenewCleanThread(),
View Full Code Here

Examples of sun.rmi.server.UnicastRef

            "\ncorrect interface hash and operation numbers:");

        Registry testImpl = LocateRegistry.createRegistry(PORT);
        System.err.println("created test registry on port " + PORT);

        RemoteRef ref = new UnicastRef(
            new LiveRef(new ObjID(ObjID.REGISTRY_ID),
                        new TCPEndpoint("", PORT), false));
        Registry referenceStub = new ReferenceRegistryStub(ref);
        System.err.println("created reference registry stub: " +
                           referenceStub);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.