public class ManagementClient extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
DomainManager domainManager)
Creates a new management client.
|
|
ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
String mgmtAddress,
int managementPort)
Creates a new management client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Domain |
createDomain(Map<String,String> containerNameMap) |
org.jboss.as.controller.client.helpers.domain.DomainClient |
getControllerClient() |
org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext |
getHTTPDeploymentMetaData(Domain.Server server,
String uniqueDeploymentName) |
String |
getServerState(Domain.Server server) |
boolean |
isDomainInRunningState() |
boolean |
isServerStarted(Domain.Server server) |
void |
startServer(Domain.Server server)
Starts the server on the host.
|
void |
startServerGroup(String groupName)
Starts the servers in the server group.
|
void |
stopServer(Domain.Server server)
Stops the server on the host.
|
void |
stopServerGroup(String groupName)
Stops the servers in the server group.
|
protected ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
DomainManager domainManager)
client - the client to delegate management operations todomainManager - the domain managerpublic ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
String mgmtAddress,
int managementPort)
client - the client to delegate management operations tomgmtAddress - not usedmanagementPort - not usedpublic org.jboss.as.controller.client.helpers.domain.DomainClient getControllerClient()
public String getServerState(Domain.Server server)
public org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext getHTTPDeploymentMetaData(Domain.Server server, String uniqueDeploymentName)
public void startServerGroup(String groupName)
groupName - the server group to start the servers forIllegalStateException - if the lifecycle is controlled by Arquillian or no container has been startedpublic void stopServerGroup(String groupName)
groupName - the server group to stop the servers forIllegalStateException - if the lifecycle is controlled by Arquillian or no container has been startedpublic void startServer(Domain.Server server)
server - the server to startIllegalStateException - if the lifecycle is controlled by Arquillian or no container has been startedpublic void stopServer(Domain.Server server)
server - the server to stopIllegalStateException - if the lifecycle is controlled by Arquillian or no container has been startedpublic boolean isServerStarted(Domain.Server server)
public boolean isDomainInRunningState()
public void close()
Copyright © 2018 JBoss by Red Hat. All rights reserved.