public interface ServerManager
| Modifier and Type | Method and Description |
|---|---|
String |
getServerGroupName(String hostName,
String serverName)
The group name this server is associated with this server.
|
boolean |
isServerStarted(String hostName,
String serverName)
Checks the status of the server and returns
true if the server is fully started. |
void |
restartServer(String hostName,
String serverName)
Restarts the server.
|
void |
resumeServer(String hostName,
String serverName)
Resumes this server after being suspended.
|
void |
startServer(String hostName,
String serverName)
Starts the server.
|
void |
stopServer(String hostName,
String serverName)
Stops the server.
|
void |
suspendServer(String hostName,
String serverName,
int timeout)
Suspends this server.
|
void startServer(String hostName, String serverName)
hostName - the name of the host the server is onserverName - the name of the serverIllegalStateException - if lifecycle operations are not allowedRuntimeException - if the start operation failsvoid stopServer(String hostName, String serverName)
hostName - the name of the host the server is onserverName - the name of the serverIllegalStateException - if lifecycle operations are not allowedRuntimeException - if the stop operation failsboolean isServerStarted(String hostName, String serverName)
true if the server is fully started.hostName - the name of the host the server is onserverName - the name of the servertrue if the server is fully started, otherwise falseRuntimeException - if the operation failsvoid restartServer(String hostName, String serverName)
hostName - the name of the host the server is onserverName - the name of the serverIllegalStateException - if lifecycle operations are not allowedRuntimeException - if the restart operation failsvoid resumeServer(String hostName, String serverName)
hostName - the name of the host the server is onserverName - the name of the serverIllegalStateException - if lifecycle operations are not allowedRuntimeException - if the resume operation failsvoid suspendServer(String hostName, String serverName, int timeout)
hostName - the name of the host the server is onserverName - the name of the servertimeout - the timeout for the suspendIllegalStateException - if lifecycle operations are not allowedRuntimeException - if the suspend operation failsString getServerGroupName(String hostName, String serverName)
hostName - the name of the host the server is onserverName - the name of the serverRuntimeException - if the operation failsCopyright © 2018 JBoss by Red Hat. All rights reserved.