org.glassfish.deployment.admin
Class DeployCommand
java.lang.Object
org.glassfish.api.deployment.OpsParams
org.glassfish.api.deployment.DeployCommandParameters
org.glassfish.deployment.admin.DeployCommand
- All Implemented Interfaces:
- AdminCommand, CommandParameters, EventListener
- Direct Known Subclasses:
- DeployDirCommand
@Service(name="deploy")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value=DAS)
@TargetType(value={DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER})
public class DeployCommand- extends DeployCommandParameters
- implements AdminCommand, EventListener
Deploy command
- Author:
- Jerome Dochez
| Fields inherited from class org.glassfish.api.deployment.DeployCommandParameters |
asyncreplication, availabilityenabled, clientJarRequested, contextroot, createtables, dbvendorname, deploymentplan, description, dropandcreatetables, enabled, force, generatermistubs, isredeploy, keepfailedstubs, keepreposdir, keepstate, lbenabled, libraries, logReportedErrors, name, path, precompilejsp, previousContextRoot, properties, property, retrieve, target, type, uniquetablenames, verify, virtualservers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeployCommand
public DeployCommand()
execute
public void execute(AdminCommandContext context)
- Entry point from the framework into the command execution
- Specified by:
execute in interface AdminCommand
- Parameters:
context - context for the command.
retrieveArtifacts
public static void retrieveArtifacts(AdminCommandContext context,
Application app,
java.lang.String targetLocalDir)
- Places into the outgoing payload the downloadable artifacts for an application.
- Parameters:
context - the admin command context for the command requesting the artifacts downloadapp - the application of interesttargetLocalDir - the client-specified local directory to receive the downloaded files
retrieveArtifacts
public static void retrieveArtifacts(AdminCommandContext context,
Application app,
java.lang.String targetLocalDir,
boolean reportErrorsInTopReport)
- Places into the outgoing payload the downloadable artifacts for an application.
- Parameters:
context - the admin command context for the command currently runningapp - the application of interesttargetLocalDir - the client-specified local directory to receive the downloaded filesreportErrorsInTopReport - whether to include error indications in the report's top-level
event
public void event(EventListener.Event event)
- Specified by:
event in interface EventListener
Copyright © 2012 GlassFish Community. All Rights Reserved.