org.jboss.test.util.server
Class ServerController

java.lang.Object
  extended byorg.jboss.test.util.server.ServerController

public abstract class ServerController
extends Object

Starts, stops, and (eventually) reboots server instances.

Version:
$Revision: 1.3 $
Author:
Ryan Campbell

Method Summary
static void startServer(Server server, ServerManager manager)
          Start the server and pump its output and error streams.
static void stopServer(Server server, ServerManager manager)
          Stop the server using shutdown.jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startServer

public static void startServer(Server server,
                               ServerManager manager)
                        throws IOException
Start the server and pump its output and error streams.

Parameters:
server -
manager -
Throws:
IOException

stopServer

public static void stopServer(Server server,
                              ServerManager manager)
                       throws IOException
Stop the server using shutdown.jar. Process.destroy() the server if it fails to shutdown.

Parameters:
server -
manager -
Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.