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, setPluginContext
public 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 ConnectionInfo
public final boolean isDomainServer()
true
if the connection is for a domain server, otherwise false
.true
if the connection is for a domain server, otherwise false
public abstract String goal()
public final org.jboss.as.controller.client.ModelControllerClient getClient()
DomainClient
will be returned.public final void close()
close
in interface Closeable
close
in interface AutoCloseable
public final InetAddress getHostAddress()
getHostAddress
in interface ConnectionInfo
public final CallbackHandler getCallbackHandler()
ConnectionInfo
getCallbackHandler
in interface ConnectionInfo
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.