Class DeployWebAppTask
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationBase
-
- com.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
- com.microsoft.azure.toolkit.lib.appservice.task.DeployWebAppTask
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.operation.Operation
public class DeployWebAppTask extends com.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description private List<WebAppArtifact>artifactsprivate static intDEFAULT_DEPLOYMENT_STATUS_MAX_REFRESH_TIMESprivate static intDEFAULT_DEPLOYMENT_STATUS_REFRESH_INTERVALprivate static StringDEPLOY_FINISHprivate static StringDEPLOY_STARTprivate longdeploymentStatusMaxRefreshTimesprivate longdeploymentStatusRefreshIntervalprivate com.microsoft.azure.toolkit.lib.common.messager.IAzureMessagermessagerprivate booleanrestartSiteprivate static StringSKIP_DEPLOYMENT_FOR_DOCKER_APP_SERVICEprivate static StringSTART_APPprivate static StringSTART_APP_DONEprivate BooleanwaitDeploymentCompleteprivate WebAppBase<?,?,?>webApp
-
Constructor Summary
Constructors Constructor Description DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts)DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts, boolean restartSite)DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts, boolean restartSite, Boolean waitDeploymentComplete)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddeployArtifacts()WebAppBase<?,?,?>doExecute()private CsmDeploymentStatusgetDeploymentStatus(WebAppBase<?,?,?> target, KuduDeploymentResult result)private booleanisWaitDeploymentComplete()private static voidstartAppService(WebAppBase<?,?,?> target)private voidtrackDeployment(WebAppBase<?,?,?> target, AtomicReference<KuduDeploymentResult> resultReference)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
execute, getBackgrounded, getBody, getDescription, getExecutionId, getId, getModality, getMonitor, getProject, getType, isBackgroundable, isCancellable, setBackgroundable, setBackgrounded, setMonitor, setType, toString
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.operation.OperationBase
getContext, getParent, setParent
-
-
-
-
Field Detail
-
SKIP_DEPLOYMENT_FOR_DOCKER_APP_SERVICE
private static final String SKIP_DEPLOYMENT_FOR_DOCKER_APP_SERVICE
- See Also:
- Constant Field Values
-
DEPLOY_START
private static final String DEPLOY_START
- See Also:
- Constant Field Values
-
DEPLOY_FINISH
private static final String DEPLOY_FINISH
- See Also:
- Constant Field Values
-
START_APP
private static final String START_APP
- See Also:
- Constant Field Values
-
START_APP_DONE
private static final String START_APP_DONE
- See Also:
- Constant Field Values
-
DEFAULT_DEPLOYMENT_STATUS_REFRESH_INTERVAL
private static final int DEFAULT_DEPLOYMENT_STATUS_REFRESH_INTERVAL
- See Also:
- Constant Field Values
-
DEFAULT_DEPLOYMENT_STATUS_MAX_REFRESH_TIMES
private static final int DEFAULT_DEPLOYMENT_STATUS_MAX_REFRESH_TIMES
- See Also:
- Constant Field Values
-
webApp
private final WebAppBase<?,?,?> webApp
-
artifacts
private final List<WebAppArtifact> artifacts
-
restartSite
private final boolean restartSite
-
waitDeploymentComplete
private final Boolean waitDeploymentComplete
-
messager
private final com.microsoft.azure.toolkit.lib.common.messager.IAzureMessager messager
-
deploymentStatusRefreshInterval
private long deploymentStatusRefreshInterval
-
deploymentStatusMaxRefreshTimes
private long deploymentStatusMaxRefreshTimes
-
-
Constructor Detail
-
DeployWebAppTask
public DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts)
-
DeployWebAppTask
public DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts, boolean restartSite)
-
DeployWebAppTask
public DeployWebAppTask(WebAppBase<?,?,?> webApp, List<WebAppArtifact> artifacts, boolean restartSite, Boolean waitDeploymentComplete)
-
-
Method Detail
-
doExecute
public WebAppBase<?,?,?> doExecute()
- Overrides:
doExecutein classcom.microsoft.azure.toolkit.lib.common.task.AzureTask<WebAppBase<?,?,?>>
-
deployArtifacts
private void deployArtifacts()
-
isWaitDeploymentComplete
private boolean isWaitDeploymentComplete()
-
trackDeployment
private void trackDeployment(WebAppBase<?,?,?> target, AtomicReference<KuduDeploymentResult> resultReference)
-
getDeploymentStatus
private CsmDeploymentStatus getDeploymentStatus(WebAppBase<?,?,?> target, KuduDeploymentResult result)
-
startAppService
private static void startAppService(WebAppBase<?,?,?> target)
-
-