public abstract class AbstractDomainManager extends Object implements DomainManager
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDomainManager(String containerName,
boolean lifecycleControlAllowed) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.jboss.as.controller.client.ModelControllerClient |
getModelControllerClient()
The client used to communicate with the server.
|
String |
getServerGroupName(String hostName,
String serverName)
The group name this server is associated with this server.
|
Set<String> |
getServerGroups()
Returns a set of the server group names.
|
Set<ServerDescription> |
getServers()
Returns all the servers in this domain.
|
Set<ServerDescription> |
getServers(String hostName)
Returns all the servers on the host.
|
boolean |
isServerStarted(String hostName,
String serverName)
Checks the status of the server and returns
true if the server is fully started. |
void |
reloadServers(String name)
Reloads all the servers associated with this server group.
|
void |
restartServer(String hostName,
String serverName)
Restarts the server.
|
void |
restartServers(String name)
Restarts all the servers associated with this server group.
|
void |
resumeServer(String hostName,
String serverName)
Resumes this server after being suspended.
|
void |
resumeServers(String name)
Resumes all the previously suspended servers associated with this server group.
|
void |
startServer(String hostName,
String serverName)
Starts the server.
|
void |
startServers(String name)
Starts all the servers associated with this server group.
|
void |
stopServer(String hostName,
String serverName)
Stops the server.
|
void |
stopServers(String name)
Stops all the servers associated with this server group.
|
void |
suspendServer(String hostName,
String serverName,
int timeout)
Suspends this server.
|
void |
suspendServers(String name,
int timeout)
Suspends all the servers associated with this server group.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDomainStartedprotected AbstractDomainManager(String containerName, boolean lifecycleControlAllowed)
public Set<ServerDescription> getServers()
DomainManagergetServers in interface DomainManagerpublic Set<ServerDescription> getServers(String hostName)
DomainManagergetServers in interface DomainManagerhostName - the host to get the serves forpublic Set<String> getServerGroups()
DomainManagergetServerGroups in interface DomainManagerpublic void startServer(String hostName, String serverName)
ServerManagerstartServer in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the serverpublic void stopServer(String hostName, String serverName)
ServerManagerstopServer in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the serverpublic boolean isServerStarted(String hostName, String serverName)
ServerManagertrue if the server is fully started.isServerStarted in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the servertrue if the server is fully started, otherwise falsepublic void restartServer(String hostName, String serverName)
ServerManagerrestartServer in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the serverpublic void resumeServer(String hostName, String serverName)
ServerManagerresumeServer in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the serverpublic void suspendServer(String hostName, String serverName, int timeout)
ServerManagersuspendServer in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the servertimeout - the timeout for the suspendpublic String getServerGroupName(String hostName, String serverName)
ServerManagergetServerGroupName in interface ServerManagerhostName - the name of the host the server is onserverName - the name of the serverpublic void reloadServers(String name)
ServerGroupManagerreloadServers in interface ServerGroupManagername - the name of the server grouppublic void restartServers(String name)
ServerGroupManagerrestartServers in interface ServerGroupManagername - the name of the server grouppublic void resumeServers(String name)
ServerGroupManagerresumeServers in interface ServerGroupManagername - the name of the server grouppublic void startServers(String name)
ServerGroupManagerstartServers in interface ServerGroupManagername - the name of the server grouppublic void stopServers(String name)
ServerGroupManagerstopServers in interface ServerGroupManagername - the name of the server grouppublic void suspendServers(String name, int timeout)
ServerGroupManagersuspendServers in interface ServerGroupManagername - the name of the server grouptimeout - the timeout in seconds. A value of 0 returns immediately and a value of -1 will wait indefinitelyprotected abstract org.jboss.as.controller.client.ModelControllerClient getModelControllerClient()
Copyright © 2018 JBoss by Red Hat. All rights reserved.