public abstract class WildflyBaseClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
admin |
static 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 |
static String |
HOST |
static String |
HTTP_REMOTING_PROTOCOL |
static String |
HTTPS_REMOTING_PROTOCOL |
static String |
JBOSS_SERVER_NAME |
protected String |
password |
static String |
PASSWORD |
protected int |
port |
static String |
PORT |
protected String |
profile |
static String |
PROFILE |
protected String |
protocol |
static String |
PROTOCOL |
protected String |
realm |
static String |
REALM |
static String |
REFERENCE_SERVER_HOST |
static String |
REFERENCE_SERVER_NAME |
protected String |
referenceServerHost |
protected String |
referenceServerName |
static String |
SERVER_GROUP |
protected String |
serverGroup |
| 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) |
List<String> |
getHosts() |
String |
getReferenceServerHost() |
String |
getReferenceServerName() |
List<String> |
getServers(String host) |
boolean |
isFailure(org.jboss.dmr.ModelNode response) |
boolean |
isStandalone() |
void |
loadConfig(Properties properties) |
void |
safeClose(Closeable closeable) |
String |
testConnection()
Tests the connection with the server.
|
public static final String HTTP_REMOTING_PROTOCOL
public static final String HTTPS_REMOTING_PROTOCOL
public static final String PROTOCOL
public static final String HOST
public static final String PORT
public static final String ADMIN
public static final String PASSWORD
public static final String REALM
public static final String PROFILE
public static final String SERVER_GROUP
public static final String REFERENCE_SERVER_HOST
public static final String REFERENCE_SERVER_NAME
public static final String JBOSS_SERVER_NAME
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 protocol
protected String host
protected int port
protected String admin
protected String password
protected String realm
protected String profile
protected String serverGroup
protected String referenceServerHost
protected String referenceServerName
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 String testConnection() throws Exception
Exception - If it was not possible to connect to server.public 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)
public boolean isStandalone()
public String getReferenceServerName()
public String getReferenceServerHost()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.