@Service(name="deploy") @PerLookup @ExecuteOn(value=DAS) @TargetType(value={DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER,DEPLOYMENT_GROUP}) public class DeployCommand extends DeployCommandParameters implements AdminCommand, EventListener, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeployCommand.Interceptor
Crude interception mechanisms for deploy comamnd execution
|
DeployCommandParameters.ParameterNamesOpsParams.Command, OpsParams.OriginEventListener.Event<T>altdd, asyncreplication, availabilityenabled, clientJarRequested, contextroot, createtables, dbvendorname, deploymentorder, deploymentplan, description, dropandcreatetables, enabled, force, forceName, generatermistubs, isredeploy, keepfailedstubs, keepreposdir, keepstate, lbenabled, libraries, loadOnly, logReportedErrors, name, path, precompilejsp, previousContextRoot, properties, property, retrieve, runtimealtdd, skipDSFailure, target, type, uniquetablenames, verify, virtualservers_classicstyle, command, origin| Constructor and Description |
|---|
DeployCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
void |
execute(AdminCommandContext context)
Entry point from the framework into the command execution
|
Collection<? extends AccessRequired.AccessCheck> |
getAccessChecks()
Returns the
AccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations. |
boolean |
preAuthorization(AdminCommandContext context) |
static void |
retrieveArtifacts(AdminCommandContext context,
Application app,
String targetLocalDir)
Places into the outgoing payload the downloadable artifacts for an
application.
|
static void |
retrieveArtifacts(AdminCommandContext context,
Application app,
String targetLocalDir,
boolean reportErrorsInTopReport)
Places into the outgoing payload the downloadable artifacts for an
application.
|
getAltdd, getContextRoot, getDBVendorName, getDeploymentPlan, getPath, getPreviousContextRoot, getRetrieve, getRuntimeAltdd, getType, getVirtualServers, isAsyncReplication, isAvailabilityEnabled, isClientJarRequested, isEnabled, isForce, isForceName, isGenerateRMIStubs, isKeepFailedStubs, isKeepReposDir, isLoadOnly, isLogReportedErrors, isPrecompileJsp, isRedeploy, isSkipDSFailure, isVerify, libraries, name, setContextRootgetCommand, getOriginpublic boolean preAuthorization(AdminCommandContext context)
preAuthorization in interface AdminCommandSecurity.Preauthorizationpublic Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
AdminCommandSecurity.AccessCheckProviderAccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations.getAccessChecks in interface AdminCommandSecurity.AccessCheckProviderAccessCheckspublic void execute(AdminCommandContext context)
execute in interface AdminCommandcontext - context for the command.public static void retrieveArtifacts(AdminCommandContext context, Application app, String targetLocalDir)
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 filespublic static void retrieveArtifacts(AdminCommandContext context, Application app, String targetLocalDir, boolean reportErrorsInTopReport)
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-levelpublic void event(EventListener.Event event)
EventListenerevent in interface EventListenerCopyright © 2019. All rights reserved.