public class DeploymentResource extends Object
| Constructor and Description |
|---|
DeploymentResource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ValueEntity> |
deploy(javax.servlet.http.HttpServletRequest request,
String targetRef,
String uuid)
The deployment endpoint - processes can invoke this endpoint to deploy
a deployment based on configuration of the provided target.
|
protected String |
deployCLI(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
org.overlord.sramp.client.SrampAtomApiClient client)
Deploys an artifact by deploying to a domain group using the (as7) command line
interface (CLI).
|
protected String |
deployCopy(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
org.overlord.sramp.client.SrampAtomApiClient client)
Deploys an artifact by copying it onto the file system.
|
protected String |
deployMaven(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
org.overlord.sramp.client.SrampAtomApiClient client)
Deploys an artifact to a pre-configured maven repository.
|
protected String |
deployRHQ(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
org.overlord.sramp.client.SrampAtomApiClient client)
Deploys an artifact by deploying to an RHQ group.
|
protected org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType |
getCurrentlyDeployedVersion(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target)
Finds the currently deployed version of the given artifact.
|
protected void |
recordUndeploymentInfo(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
Map<String,String> props,
org.overlord.sramp.client.SrampAtomApiClient client)
Records undeployment information for the given artifact.
|
protected void |
undeploy(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
Target target)
Undeploys the given artifact.
|
protected void |
undeployCLI(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
Undeploy using the JBoss AS CLI.
|
protected void |
undeployCopy(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
Undeploy an artifact that was simply copied to a file location.
|
protected void |
undeployRHQ(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
Undeploy using JBoss RHQ.
|
public Map<String,ValueEntity> deploy(@Context javax.servlet.http.HttpServletRequest request, String targetRef, String uuid) throws Exception
request - targetRef - uuid - Exceptionprotected org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType getCurrentlyDeployedVersion(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target)
throws Exception
client - artifact - target - Exceptionprotected void undeploy(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
Target target)
throws Exception
recordUndeploymentInfo(BaseArtifactType, Target, Map, SrampAtomApiClient)).client - prevVersionArtifact - target - Exceptionprotected String deployCopy(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact, Target target, org.overlord.sramp.client.SrampAtomApiClient client) throws Exception
artifact - target - client - Exceptionprotected String deployMaven(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact, Target target, org.overlord.sramp.client.SrampAtomApiClient client) throws Exception
artifact - target - client - Exceptionprotected String deployRHQ(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact, Target target, org.overlord.sramp.client.SrampAtomApiClient client) throws Exception
target - - name of the pre-configured server group in RHQuuid - org.overlord.sramp.atom.err.SrampAtomExceptionExceptionprotected String deployCLI(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact, Target target, org.overlord.sramp.client.SrampAtomApiClient client) throws Exception
artifact - target - client - Exceptionprotected void recordUndeploymentInfo(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
Target target,
Map<String,String> props,
org.overlord.sramp.client.SrampAtomApiClient client)
throws org.overlord.sramp.client.SrampClientException,
org.overlord.sramp.atom.err.SrampAtomException
artifact - target - props - org.overlord.sramp.atom.err.SrampAtomExceptionorg.overlord.sramp.client.SrampClientExceptionprotected void undeployCLI(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
throws Exception
client - prevVersionArtifact - undeployInfo - target - Exceptionprotected void undeployCopy(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
client - prevVersionArtifact - undeployInfo - target - protected void undeployRHQ(org.overlord.sramp.client.SrampAtomApiClient client,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType prevVersionArtifact,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType undeployInfo,
Target target)
throws Exception
client - prevVersionArtifact - undeployInfo - target - ExceptionCopyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.