Package org.wildfly.plugin.core
Class Deployment
- java.lang.Object
-
- org.wildfly.plugin.core.Deployment
-
- All Implemented Interfaces:
Comparable<Deployment>,DeploymentDescription
@Deprecated(forRemoval=true) public class Deployment extends Object implements DeploymentDescription, Comparable<Deployment>
Deprecated, for removal: This API element is subject to removal in a future version.moved to new https://github.com/wildfly/wildfly-plugin-tools projectRepresents a deployment to be deployed or redeployed to a server.Instances of this are not thread-safe.
- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DeploymentaddServerGroup(String serverGroup)Deprecated, for removal: This API element is subject to removal in a future version.Adds a server group for the deployment.DeploymentaddServerGroups(String... serverGroups)Deprecated, for removal: This API element is subject to removal in a future version.Adds the server groups for the deployment.DeploymentaddServerGroups(Collection<String> serverGroups)Deprecated, for removal: This API element is subject to removal in a future version.Adds the server groups for the deployment.intcompareTo(Deployment o)Deprecated, for removal: This API element is subject to removal in a future version.booleanequals(Object obj)Deprecated, for removal: This API element is subject to removal in a future version.StringgetName()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name for this deployment.StringgetRuntimeName()Deprecated, for removal: This API element is subject to removal in a future version.Returns the runtime name set for the deployment which may benull.Set<String>getServerGroups()Deprecated, for removal: This API element is subject to removal in a future version.Returns the server groups for this deployment.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanisEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether or not the deployment should be enabled by default.static Deploymentlocal(Path content)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the path.static Deploymentof(File content)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the file.static Deploymentof(InputStream content, String name)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the input stream.static Deploymentof(URL url)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the URL.static Deploymentof(Path content)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the path.DeploymentsetEnabled(boolean enabled)Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not the deployment should be enabled.DeploymentsetName(String name)Deprecated, for removal: This API element is subject to removal in a future version.Sets the name for the deployment.DeploymentsetRuntimeName(String runtimeName)Deprecated, for removal: This API element is subject to removal in a future version.Sets the runtime name for the deployment.DeploymentsetServerGroups(String... serverGroups)Deprecated, for removal: This API element is subject to removal in a future version.Sets the server groups for the deployment.DeploymentsetServerGroups(Collection<String> serverGroups)Deprecated, for removal: This API element is subject to removal in a future version.Sets the server groups for the deployment.StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
of
public static Deployment of(File content)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the file. If the file is a directory the content will be deployed exploded using the file system location.- Parameters:
content- the file containing the content- Returns:
- the deployment
-
of
public static Deployment of(Path content)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using the file system location.- Parameters:
content- the path containing the content- Returns:
- the deployment
-
of
public static Deployment of(InputStream content, String name)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the input stream. The name is required for the deployment and cannot benull. IfsetName(String)with anullargument is invoked when using this static factory anIllegalArgumentExceptionwill be thrown.The content will be copied, stored in-memory and then closed. Large content should be written to a file and the
of(Path)orof(File)static factory methods should be used.- Parameters:
content- the input stream representing the contentname- the name for the deployment- Returns:
- the deployment
-
of
public static Deployment of(URL url)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the URL. The target server will require access to the URL.- Parameters:
url- the URL representing the content- Returns:
- the deployment
-
local
public static Deployment local(Path content)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new deployment for the path. If the path is a directory the content will be deployed exploded using the file system location. Otherwise, the content is deployed with the local path as an archive.- Parameters:
content- the path containing the content- Returns:
- the deployment
-
addServerGroup
public Deployment addServerGroup(String serverGroup)
Deprecated, for removal: This API element is subject to removal in a future version.Adds a server group for the deployment.- Parameters:
serverGroup- the server group to add- Returns:
- this deployment
- See Also:
addServerGroups(Collection),addServerGroups(String...)
-
addServerGroups
public Deployment addServerGroups(String... serverGroups)
Deprecated, for removal: This API element is subject to removal in a future version.Adds the server groups for the deployment.- Parameters:
serverGroups- the server groups to add- Returns:
- this deployment
- See Also:
addServerGroup(String),addServerGroups(Collection)
-
addServerGroups
public Deployment addServerGroups(Collection<String> serverGroups)
Deprecated, for removal: This API element is subject to removal in a future version.Adds the server groups for the deployment.- Parameters:
serverGroups- the server groups to add- Returns:
- this deployment
- See Also:
addServerGroup(String),addServerGroups(String...)
-
getServerGroups
public Set<String> getServerGroups()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DeploymentDescriptionReturns the server groups for this deployment.- Specified by:
getServerGroupsin interfaceDeploymentDescription- Returns:
- a set of server groups for this deployment
-
setServerGroups
public Deployment setServerGroups(String... serverGroups)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the server groups for the deployment.- Parameters:
serverGroups- the server groups to set- Returns:
- this deployment
-
setServerGroups
public Deployment setServerGroups(Collection<String> serverGroups)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the server groups for the deployment.- Parameters:
serverGroups- the server groups to set- Returns:
- this deployment
-
isEnabled
public boolean isEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether or not the deployment should be enabled by default.If the value is set to
falsethe content will only be added. An explicitdeployoperation will be required to deploy the content to the runtime.- Returns:
trueif the deployment should be enabled,falseif the deployment should not be enabled
-
setEnabled
public Deployment setEnabled(boolean enabled)
Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not the deployment should be enabled. If set tofalsethe deployment will not be enabled, but the content will be uploaded and added. This is set totrueby default.If the value is set to
falsethe content will only be added. An explicitdeployoperation will be required to deploy the content to the runtime.- Parameters:
enabled-falseto keep the content disabled- Returns:
- this deployment
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DeploymentDescriptionReturns the name for this deployment.- Specified by:
getNamein interfaceDeploymentDescription- Returns:
- the name for this deployment
-
setName
public Deployment setName(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the name for the deployment. This can benullfor a deployment created based on a file system path. If the deployment was created using in input stream and the value isnullanIllegalArgumentExceptionwill be thrown.- Parameters:
name- the name for the deployment- Returns:
- this deployment
-
getRuntimeName
public String getRuntimeName()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the runtime name set for the deployment which may benull.- Returns:
- the runtime name set or
nullif one was not set
-
setRuntimeName
public Deployment setRuntimeName(String runtimeName)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the runtime name for the deployment.- Parameters:
runtimeName- the runtime name, can benull- Returns:
- this deployment
-
compareTo
public int compareTo(Deployment o)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
compareToin interfaceComparable<Deployment>
-
hashCode
public int hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.
-
equals
public boolean equals(Object obj)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-