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