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 void |
killServer(Process server,
boolean forcibly) |
static Process |
startServer(String artemisInstance,
String serverName) |
static Process |
startServer(String artemisInstance,
String serverName,
int id,
int timeout) |
static Process |
startServer(String artemisInstance,
String serverName,
String uri,
int timeout) |
static boolean |
waitForServerToStart(int id,
int timeout) |
static boolean |
waitForServerToStart(int id,
String username,
String password,
int timeout) |
static boolean |
waitForServerToStart(String uri,
long timeout) |
static boolean |
waitForServerToStart(String uri,
String username,
String password,
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 Process startServer(String artemisInstance, String serverName, String uri, int timeout) throws Exception
Exception
public static boolean waitForServerToStart(int id, int timeout) throws InterruptedException
InterruptedException
public static boolean waitForServerToStart(int id, String username, String password, int timeout) throws InterruptedException
InterruptedException
public static boolean waitForServerToStart(String uri, long timeout) throws InterruptedException
InterruptedException
public static boolean waitForServerToStart(String uri, String username, String password, long timeout) throws InterruptedException
InterruptedException
public static void killServer(Process server, boolean forcibly) throws Exception
Exception
public static int getServer(Connection connection)
public static Connection getServerConnection(int server, Connection... connections)
Copyright © 2021 JBoss by Red Hat. All rights reserved.