public abstract class AbstractServerConnection extends org.apache.maven.plugin.AbstractMojo implements ConnectionInfo, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
CLIENT_LOCK |
static String |
DEBUG_MESSAGE_NO_CREDS |
static String |
DEBUG_MESSAGE_NO_ID |
static String |
DEBUG_MESSAGE_NO_SERVER_SECTION |
static String |
DEBUG_MESSAGE_NO_SETTINGS_FILE |
static String |
DEBUG_MESSAGE_POM_HAS_CREDS |
static String |
DEBUG_MESSAGE_SETTINGS_HAS_CREDS |
static String |
DEBUG_MESSAGE_SETTINGS_HAS_ID |
| Constructor and Description |
|---|
AbstractServerConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CallbackHandler |
getCallbackHandler()
The callback handler for authentication.
|
org.jboss.as.controller.client.ModelControllerClient |
getClient()
Gets or creates a new connection to the server and returns the client.
|
InetAddress |
getHostAddress()
Creates gets the address to the host name.
|
int |
getPort()
The port number of the server to deploy to.
|
abstract String |
goal()
The goal of the deployment.
|
String |
hostname()
The hostname to deploy the archive to.
|
boolean |
isDomainServer()
Returns
true if the connection is for a domain server, otherwise false. |
getLog, getPluginContext, setLog, setPluginContextpublic static final String DEBUG_MESSAGE_NO_CREDS
public static final String DEBUG_MESSAGE_NO_ID
public static final String DEBUG_MESSAGE_NO_SERVER_SECTION
public static final String DEBUG_MESSAGE_NO_SETTINGS_FILE
public static final String DEBUG_MESSAGE_POM_HAS_CREDS
public static final String DEBUG_MESSAGE_SETTINGS_HAS_CREDS
public static final String DEBUG_MESSAGE_SETTINGS_HAS_ID
protected static final Object CLIENT_LOCK
public final String hostname()
public final int getPort()
getPort in interface ConnectionInfopublic final boolean isDomainServer()
true if the connection is for a domain server, otherwise false.true if the connection is for a domain server, otherwise falsepublic abstract String goal()
public final org.jboss.as.controller.client.ModelControllerClient getClient()
DomainClient will be returned.public final void close()
close in interface Closeableclose in interface AutoCloseablepublic final InetAddress getHostAddress()
getHostAddress in interface ConnectionInfopublic final CallbackHandler getCallbackHandler()
ConnectionInfogetCallbackHandler in interface ConnectionInfoCopyright © 2013 JBoss by Red Hat. All Rights Reserved.