Package org.wildfly.plugin.common
Class AbstractServerConnection
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.wildfly.plugin.common.AbstractServerConnection
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractStartMojo,AddResourceMojo,DeployArtifactMojo,DeployMojo,ExecuteCommandsMojo,RedeployMojo,ShutdownMojo,UndeployArtifactMojo,UndeployMojo
public abstract class AbstractServerConnection
extends org.apache.maven.plugin.AbstractMojo
The default implementation for connecting to a running WildFly instance
- Author:
- James R. Perkins, Stuart Douglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected intThe timeout, in seconds, to wait for a management connection.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jboss.as.controller.client.ModelControllerClientCreates a new client.protected org.jboss.as.controller.client.ModelControllerClientConfigurationGets a client configuration used to create a newModelControllerClient.protected Stringprotected intabstract Stringgoal()The goal of the deployment.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
DEBUG_MESSAGE_NO_CREDS
- See Also:
-
DEBUG_MESSAGE_NO_ID
- See Also:
-
DEBUG_MESSAGE_NO_SERVER_SECTION
- See Also:
-
DEBUG_MESSAGE_NO_SETTINGS_FILE
- See Also:
-
DEBUG_MESSAGE_POM_HAS_CREDS
- See Also:
-
DEBUG_MESSAGE_SETTINGS_HAS_CREDS
- See Also:
-
DEBUG_MESSAGE_SETTINGS_HAS_ID
- See Also:
-
timeout
@Parameter(property="wildfly.timeout", defaultValue="60") protected int timeoutThe timeout, in seconds, to wait for a management connection.
-
-
Constructor Details
-
AbstractServerConnection
public AbstractServerConnection()
-
-
Method Details
-
goal
The goal of the deployment.- Returns:
- the goal of the deployment.
-
createClient
protected org.jboss.as.controller.client.ModelControllerClient createClient()Creates a new client.- Returns:
- the client
-
getClientConfiguration
protected org.jboss.as.controller.client.ModelControllerClientConfiguration getClientConfiguration()Gets a client configuration used to create a newModelControllerClient.- Returns:
- the configuration to use
-
getManagementPort
protected int getManagementPort() -
getManagementHostName
-