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 = AccessController.doPrivileged( new NewThreadAction(new RenewCleanThread(), "RenewClean-" + endpoint, true)); renewCleanThread.start(); }
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$ } }