public class ServerUtil extends Object
Constructor and Description |
---|
ServerUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getServer(Connection connection) |
static Connection |
getServerConnection(int server,
Connection... connections) |
static void |
killServer(Process server) |
static Process |
startServer(String artemisInstance,
String serverName) |
static Process |
startServer(String artemisInstance,
String serverName,
int id,
int timeout) |
static void |
waitForServerToStart(int id,
int timeout) |
static void |
waitForServerToStart(String uri,
long timeout) |
public static Process startServer(String artemisInstance, String serverName) throws Exception
Exception
public static Process startServer(String artemisInstance, String serverName, int id, int timeout) throws Exception
artemisInstance
- serverName
- it will be used on logsid
- it will be used to add on the porttimeout
- Exception
public static void waitForServerToStart(int id, int timeout) throws InterruptedException
InterruptedException
public static void waitForServerToStart(String uri, long timeout) throws InterruptedException
InterruptedException
public static int getServer(Connection connection)
public static Connection getServerConnection(int server, Connection... connections)
Copyright © 2018 JBoss by Red Hat. All rights reserved.