Package org.wildfly.arquillian.domain
Class AbstractDomainManager
- java.lang.Object
-
- org.wildfly.arquillian.domain.AbstractDomainManager
-
- All Implemented Interfaces:
DomainManager,ServerGroupManager,ServerManager
public abstract class AbstractDomainManager extends Object implements DomainManager
Implements the domain manager operations.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDomainManager(String containerName, boolean lifecycleControlAllowed)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.jboss.as.controller.client.ModelControllerClientgetModelControllerClient()The client used to communicate with the server.StringgetServerGroupName(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.booleanisServerStarted(String hostName, String serverName)Checks the status of the server and returnstrueif the server is fully started.voidreloadServers(String name)Reloads all the servers associated with this server group.voidrestartServer(String hostName, String serverName)Restarts the server.voidrestartServers(String name)Restarts all the servers associated with this server group.voidresumeServer(String hostName, String serverName)Resumes this server after being suspended.voidresumeServers(String name)Resumes all the previously suspended servers associated with this server group.voidstartServer(String hostName, String serverName)Starts the server.voidstartServers(String name)Starts all the servers associated with this server group.voidstopServer(String hostName, String serverName)Stops the server.voidstopServers(String name)Stops all the servers associated with this server group.voidsuspendServer(String hostName, String serverName, int timeout)Suspends this server.voidsuspendServers(String name, int timeout)Suspends all the servers associated with this server group.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.arquillian.domain.api.DomainManager
isDomainStarted
-
-
-
-
Constructor Detail
-
AbstractDomainManager
protected AbstractDomainManager(String containerName, boolean lifecycleControlAllowed)
-
-
Method Detail
-
getServers
public Set<ServerDescription> getServers()
Description copied from interface:DomainManagerReturns all the servers in this domain.- Specified by:
getServersin interfaceDomainManager- Returns:
- all the servers
-
getServers
public Set<ServerDescription> getServers(String hostName)
Description copied from interface:DomainManagerReturns all the servers on the host.- Specified by:
getServersin interfaceDomainManager- Parameters:
hostName- the host to get the serves for- Returns:
- the servers associated with the host
-
getServerGroups
public Set<String> getServerGroups()
Description copied from interface:DomainManagerReturns a set of the server group names.- Specified by:
getServerGroupsin interfaceDomainManager- Returns:
- the server group names
-
startServer
public void startServer(String hostName, String serverName)
Description copied from interface:ServerManagerStarts the server.- Specified by:
startServerin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server
-
stopServer
public void stopServer(String hostName, String serverName)
Description copied from interface:ServerManagerStops the server.- Specified by:
stopServerin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server
-
isServerStarted
public boolean isServerStarted(String hostName, String serverName)
Description copied from interface:ServerManagerChecks the status of the server and returnstrueif the server is fully started.- Specified by:
isServerStartedin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server- Returns:
trueif the server is fully started, otherwisefalse
-
restartServer
public void restartServer(String hostName, String serverName)
Description copied from interface:ServerManagerRestarts the server.- Specified by:
restartServerin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server
-
resumeServer
public void resumeServer(String hostName, String serverName)
Description copied from interface:ServerManagerResumes this server after being suspended.- Specified by:
resumeServerin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server
-
suspendServer
public void suspendServer(String hostName, String serverName, int timeout)
Description copied from interface:ServerManagerSuspends this server.- Specified by:
suspendServerin interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the servertimeout- the timeout for the suspend
-
getServerGroupName
public String getServerGroupName(String hostName, String serverName)
Description copied from interface:ServerManagerThe group name this server is associated with this server.- Specified by:
getServerGroupNamein interfaceServerManager- Parameters:
hostName- the name of the host the server is onserverName- the name of the server- Returns:
- the group name
-
reloadServers
public void reloadServers(String name)
Description copied from interface:ServerGroupManagerReloads all the servers associated with this server group.- Specified by:
reloadServersin interfaceServerGroupManager- Parameters:
name- the name of the server group
-
restartServers
public void restartServers(String name)
Description copied from interface:ServerGroupManagerRestarts all the servers associated with this server group.- Specified by:
restartServersin interfaceServerGroupManager- Parameters:
name- the name of the server group
-
resumeServers
public void resumeServers(String name)
Description copied from interface:ServerGroupManagerResumes all the previously suspended servers associated with this server group.- Specified by:
resumeServersin interfaceServerGroupManager- Parameters:
name- the name of the server group
-
startServers
public void startServers(String name)
Description copied from interface:ServerGroupManagerStarts all the servers associated with this server group.- Specified by:
startServersin interfaceServerGroupManager- Parameters:
name- the name of the server group
-
stopServers
public void stopServers(String name)
Description copied from interface:ServerGroupManagerStops all the servers associated with this server group.- Specified by:
stopServersin interfaceServerGroupManager- Parameters:
name- the name of the server group
-
suspendServers
public void suspendServers(String name, int timeout)
Description copied from interface:ServerGroupManagerSuspends all the servers associated with this server group.- Specified by:
suspendServersin interfaceServerGroupManager- Parameters:
name- the name of the server grouptimeout- the timeout in seconds. A value of 0 returns immediately and a value of -1 will wait indefinitely
-
getModelControllerClient
protected abstract org.jboss.as.controller.client.ModelControllerClient getModelControllerClient()
The client used to communicate with the server.- Returns:
- the client
-
-