@Override protected Object exportImpl(RemoteStreamServer<?, ?> server) throws RemoteException { return UnicastRemoteObject.exportObject(server, port, clientSocketFactory, serverSocketFactory); }
UnicastRemoteObject.exportObject( this.exportedObject, this.servicePort, this.clientSocketFactory, this.serverSocketFactory); UnicastRemoteObject.exportObject(this.exportedObject, this.servicePort);
final Remote remote = UnicastRemoteObject.exportObject(toBeStubbed, 0); final Registry registry = LocateRegistry.createRegistry(Registry.REGISTRY_PORT); registry.bind(REMOTE_NAME, remote);
UnicastRemoteObject.exportObject( this.exportedObject, this.servicePort, this.clientSocketFactory, this.serverSocketFactory); UnicastRemoteObject.exportObject(this.exportedObject, this.servicePort);
.exportObject(this, resources.getRMIServerPort()); } else { exportable = (RemotableQuartzScheduler) UnicastRemoteObject .exportObject(this);
.exportObject(this, resources.getRMIServerPort()); } else { exportable = (RemotableQuartzScheduler) UnicastRemoteObject .exportObject(this);
@Override public SPI call() throws ProcessException { try { SPIShutdownHook spiShutdownHook = new SPIShutdownHook(); LocalProcessLauncher.ProcessContext.attach( spiConfiguration.getSPIId(), spiConfiguration.getPingInterval(), spiShutdownHook); Runtime runtime = Runtime.getRuntime(); runtime.addShutdownHook(spiShutdownHook); SPI spi = (SPI)UnicastRemoteObject.exportObject(this, 0); RegisterCallback registerCallback = new RegisterCallback(uuid, spi); LocalProcessLauncher.ProcessContext.writeProcessCallable( registerCallback); registrationReference = welder.weld(MPIHelperUtil.getIntraband()); ConcurrentMap<String, Object> attributes = LocalProcessLauncher.ProcessContext.getAttributes(); attributes.put(SPI.SPI_INSTANCE_PUBLICATION_KEY, this); return spi; } catch (RemoteException re) { throw new ProcessException("Failed to export SPI as RMI stub", re); } catch (IOException ioe) { throw new ProcessException(ioe); } }
/** Construct a file manager backed by a set of files contained in <var>searchDirectory</var>. * @exception RemoteException If remote operation failed. */ public RemoteFileManager(String searchDirectory) throws RemoteException { super(searchDirectory); UnicastRemoteObject.exportObject(this); }
/** * Construct a file manager backed by a set of files contained in the default WN search directory. * See {@link FileManagerImpl} for a description of the default search directory. * @exception RemoteException If remote operation failed. */ public RemoteFileManager(String searchDir, Class dictionaryFileType) throws IOException, RemoteException { super(searchDir, dictionaryFileType); UnicastRemoteObject.exportObject(this); }
/** * Constructor - sets the actual ip restrictor object */ public IpRestrictor(org.apache.ftpserver.ip.IpRestrictorInterface ipRestrictor) throws RemoteException { mIpRestrictor = ipRestrictor; UnicastRemoteObject.exportObject(this); }
/** Construct a file manager backed by a set of files contained in the default WN search directory. * See {@link FileManager} for a description of the default search directory. * @exception RemoteException If remote operation failed. */ public RemoteFileManager() throws RemoteException { super(); UnicastRemoteObject.exportObject(this); }
/** Construct a file manager backed by a set of files contained in <var>searchDirectory</var>. * @exception RemoteException If remote operation failed. */ public RemoteFileManager(String searchDirectory) throws RemoteException { super(searchDirectory); UnicastRemoteObject.exportObject(this); }
public <S extends T> T export(S object, int port) { try { return (T) UnicastRemoteObject.exportObject(object, port); } catch (RemoteException re) { LOGGER.error("got exception at export; quitting the platform", re); } return null; }
private void startService () throws RemoteException { try { LocateRegistry.createRegistry (Registry.REGISTRY_PORT); } catch (ExportException ignored) { // NOPMD registry already exists } stub = UnicastRemoteObject.exportObject (this); ref = stub.getRef(); } public boolean isConnected() {
private void startService () throws RemoteException { try { LocateRegistry.createRegistry (Registry.REGISTRY_PORT); } catch (ExportException ignored) { // NOPMD: ok to happen } stub = UnicastRemoteObject.exportObject (this); ref = stub.getRef(); }
@Override protected Remote exportRemoteObject() throws RemoteException { this.service = PhoneDirectoryServiceFactory.getPhoneDirectoryService(); return UnicastRemoteObject.exportObject(this.service, 0); }
/** * Constructor - sets the actual statistics object */ public FtpStatistics(final org.apache.ftpserver.FtpStatistics statistics) throws RemoteException { mStatistics = statistics; mStatisticsListener = new FtpStatisticsListenerAdapter(); mFileListener = new FtpFileListenerAdapter(); UnicastRemoteObject.exportObject(this); }
public ConnectionSet() { try { LocateRegistry.createRegistry(Registry.REGISTRY_PORT); RemoteConnectionSet stub = (RemoteConnectionSet) UnicastRemoteObject.exportObject(this, 0); Registry registry = LocateRegistry.getRegistry(); registry.rebind(CometConnectionManager.NAME, stub); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public Workflow getWorkflow(RemoteWorkflowDescriptor descriptor) throws MappingException, RepositoryException, RemoteException { Workflow workflow = local.getWorkflow(descriptor.category, local.getSession().getNodeByIdentifier(descriptor.identifier)); try { UnicastRemoteObject.exportObject(workflow, port); } catch (RemoteException ex) { throw new RepositoryException("Problem creating workflow proxy", ex); } return workflow; }
/** * Constructor - sets the actual config object. */ public FtpConfig(org.apache.ftpserver.FtpConfig config) throws RemoteException { mConfig = config; mIpRestrictor = new IpRestrictor(config.getIpRestrictor()); mUserManager = new UserManager(config.getUserManager()); mConService = new ConnectionService(config.getConnectionService()); mStatistics = new FtpStatistics(config.getStatistics()); UnicastRemoteObject.exportObject(this); }