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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jboss.as.controller.client.ModelControllerClient
Creates a new client.protected org.jboss.as.controller.client.ModelControllerClientConfiguration
Gets a client configuration used to create a newModelControllerClient
.protected String
protected int
abstract String
goal()
The goal of the deployment.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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
-
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
-