Package java.rmi.registry

Examples of java.rmi.registry.Registry.unbind()


        log.info("Exitting");
        backingEngine.exit();
        // Tidy up any objects we created
        Registry reg = LocateRegistry.getRegistry(this.rmiPort);       
        try {
            reg.unbind(JMETER_ENGINE_RMI_NAME);
        } catch (NotBoundException e) {
            log.warn(JMETER_ENGINE_RMI_NAME+" is not bound",e);
        }
        log.info("Unbound from registry");
        // Help with garbage control
View Full Code Here


            if (registry == null) {
                registry = LocateRegistry.createRegistry(port);
                rmiRegistries.put(Integer.toString(port),
                    registry);
            }
            registry.unbind(serviceName);
        } catch (RemoteException e) {
            RMIHostRuntimeException rmiExec = new RMIHostRuntimeException(e.getMessage());
            rmiExec.setStackTrace(e.getStackTrace());
            throw rmiExec;
        } catch (NotBoundException e) {
View Full Code Here

   */
  @CommandArgument
  public void stop() {
    try {
      Registry registry = getRegistry();
      registry.unbind("AuthenticationService");
      this.jobProgressStates = null;
      System.out.println("Server stopped");
    } catch (Exception e) {
      logger.error("An error occurred while stopping the server", e);
      System.err.println("Server did not shut down cleanly, see log for details.");
View Full Code Here

  public void stop() {
    try {
      jobHub.shutdown();
      jobHub = null;
      Registry registry = getRegistry();
      registry.unbind("AuthenticationService");
      System.out.println("Hub stopped");
    } catch (Exception e) {
      logger.error("An error occurred while stopping the hub", e);
      System.err.println("Hub did not shut down cleanly, see log for details.");
    }
View Full Code Here

                    if (services != null && services.length > 0) {
                        for (String service : services) {
                            if (logger.isInfoEnabled()) {
                                logger.info("Unbind rmi service: " + service);
                            }
                            registry.unbind(service);
                        }
                    }
                } catch (Throwable t) {
                    logger.warn(t.getMessage(), t);
                }
View Full Code Here

            Registry registry = rmiRegistries.get(Integer.toString(rmiURI.port));
            if (registry == null) {
                registry = LocateRegistry.getRegistry(rmiURI.port);
                rmiRegistries.put(Integer.toString(rmiURI.port), registry);
            }
            registry.unbind(rmiURI.serviceName);
            logger.info("RMI service unregistered: " + rmiURI);
        } catch (RemoteException e) {
            RMIHostRuntimeException rmiExec = new RMIHostRuntimeException(e.getMessage());
            rmiExec.setStackTrace(e.getStackTrace());
            throw rmiExec;
View Full Code Here

    @Override
    protected void doStop() throws Exception {
        super.doStop();
        try {
            Registry registry = endpoint.getRegistry();
            registry.unbind(endpoint.getName());
        } catch (Throwable e) {
            // do our best to unregister
        }
        UnicastRemoteObject.unexportObject(proxy, true);
    }
View Full Code Here

    @Override
    protected void doStop() throws Exception {
        super.doStop();
        try {
            Registry registry = endpoint.getRegistry();
            registry.unbind(endpoint.getName());
        } catch (Throwable e) {
            // do our best to unregister
        }
        UnicastRemoteObject.unexportObject(proxy, true);
    }
View Full Code Here

  @Override
  protected void doStop() throws Exception {
    super.doStop();
    try {
          Registry registry = endpoint.getRegistry();
          registry.unbind(endpoint.getName());
    } catch( Throwable e ) { // do our best to unregister
    }
    UnicastRemoteObject.unexportObject(proxy, true);   
  }
 
View Full Code Here

    @Override
    protected void doStop() throws Exception {
        super.doStop();
        try {
            Registry registry = endpoint.getRegistry();
            registry.unbind(endpoint.getName());
        } catch (Throwable e) {
            // do our best to unregister
        }
        UnicastRemoteObject.unexportObject(proxy, true);
    }
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.