Package org.jboss.bootstrap.spi

Examples of org.jboss.bootstrap.spi.ServerProcess


      MBeanServerConnection adaptor = (MBeanServerConnection) obj;
      ServerProxyHandler handler = new ServerProxyHandler(adaptor, serverJMXName);
      Class<?>[] ifaces = {ServerProcess.class};
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      ServerProcess server = (ServerProcess) Proxy.newProxyInstance(tcl, ifaces, handler);

      if (exit)
      {
         server.exit(exitcode);
      }
      else if (halt)
      {
         server.halt(exitcode);
      }
      else
      {
         server.shutdown();
      }
      System.out.println("Shutdown message has been posted to the server.");
      System.out.println("Server shutdown may take a while - check logfiles for completion");
   }
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.spi.ServerProcess

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.