org.glassfish.deployment.admin
Class DeployCommand

java.lang.Object
  extended by org.glassfish.api.deployment.OpsParams
      extended by org.glassfish.api.deployment.DeployCommandParameters
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.glassfish.api.deployment.DeployCommandParameters
DeployCommandParameters.ParameterNames
 
Nested classes/interfaces inherited from class org.glassfish.api.deployment.OpsParams
OpsParams.Origin
 
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
 
Field Summary
 
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
 
Fields inherited from class org.glassfish.api.deployment.OpsParams
origin
 
Constructor Summary
DeployCommand()
           
 
Method Summary
 void event(EventListener.Event event)
           
 void execute(AdminCommandContext context)
          Entry point from the framework into the command execution
static void retrieveArtifacts(AdminCommandContext context, Application app, java.lang.String targetLocalDir)
          Places into the outgoing payload the downloadable artifacts for an application.
static void retrieveArtifacts(AdminCommandContext context, Application app, java.lang.String targetLocalDir, boolean reportErrorsInTopReport)
          Places into the outgoing payload the downloadable artifacts for an application.
 
Methods inherited from class org.glassfish.api.deployment.DeployCommandParameters
libraries, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployCommand

public DeployCommand()
Method Detail

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 download
app - the application of interest
targetLocalDir - 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 running
app - the application of interest
targetLocalDir - the client-specified local directory to receive the downloaded files
reportErrorsInTopReport - 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.