public abstract class WildflyBaseClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
admin |
protected static String |
DEFAULT_ADMIN |
protected static String |
DEFAULT_ADMIN_PASSWORD |
protected static String |
DEFAULT_HOST |
protected static int |
DEFAULT_PORT |
protected static String |
DEFAULT_REALM |
protected String |
host |
protected String |
password |
protected int |
port |
protected String |
realm |
| Constructor and Description |
|---|
WildflyBaseClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkResponse(org.jboss.dmr.ModelNode response)
Checks the outcome returned by server when an operation was executed.
|
org.jboss.as.controller.client.ModelControllerClient |
createControllerClient() |
org.jboss.as.controller.client.ModelControllerClient |
createControllerClient(boolean checkConnection) |
boolean |
isFailure(org.jboss.dmr.ModelNode response) |
void |
loadConfig(Properties properties) |
void |
safeClose(Closeable closeable) |
protected static final String DEFAULT_HOST
protected static final int DEFAULT_PORT
protected static final String DEFAULT_ADMIN
protected static final String DEFAULT_ADMIN_PASSWORD
protected static final String DEFAULT_REALM
protected String host
protected int port
protected String admin
protected String password
protected String realm
public void loadConfig(Properties properties)
public org.jboss.as.controller.client.ModelControllerClient createControllerClient()
throws Exception
Exceptionpublic org.jboss.as.controller.client.ModelControllerClient createControllerClient(boolean checkConnection)
throws Exception
Exceptionpublic void checkResponse(org.jboss.dmr.ModelNode response)
throws Exception
response - ModelNode returned by server as response.Exceptionpublic boolean isFailure(org.jboss.dmr.ModelNode response)
public void safeClose(Closeable closeable)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.