public class ManagementClient extends Object implements Closeable
Instances of this type are not thread-safe.
| Constructor and Description |
|---|
ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
CommonContainerConfiguration config) |
ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
String mgmtAddress,
int managementPort,
String protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.jboss.as.controller.client.ModelControllerClient |
getControllerClient()
Returns the client used to connect to the server.
|
String |
getMgmtAddress() |
int |
getMgmtPort() |
String |
getMgmtProtocol() |
org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData |
getProtocolMetaData(String deploymentName)
Gets the meta-data.
|
URI |
getRemoteEjbURL()
Returns the URI for EJB's.
|
JMXServiceURL |
getRemoteJMXURL() |
URI |
getWebUri() |
boolean |
isClosed()
Checks whether or not the client has been closed.
|
boolean |
isServerInRunningState()
Checks whether or not the server is running.
|
public ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
String mgmtAddress,
int managementPort,
String protocol)
public ManagementClient(org.jboss.as.controller.client.ModelControllerClient client,
CommonContainerConfiguration config)
public org.jboss.as.controller.client.ModelControllerClient getControllerClient()
IllegalStateException - if this has been closedpublic URI getWebUri()
IllegalStateException - if this has been closedpublic org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData getProtocolMetaData(String deploymentName)
IllegalStateException - if this has been closedpublic boolean isServerInRunningState()
Note that if this client has been closed the state of the server cannot be checked.
true if the server is running, otherwise falseIllegalStateException - if this has been closedpublic boolean isClosed()
true if the client has been closed otherwise falsepublic void close()
close in interface Closeableclose in interface AutoCloseablepublic JMXServiceURL getRemoteJMXURL()
public int getMgmtPort()
public String getMgmtAddress()
public String getMgmtProtocol()
public URI getRemoteEjbURL()
IllegalStateException - if this has been closedCopyright © 2022 JBoss by Red Hat. All rights reserved.