Class DeployFunctionAppTask
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationBase
-
- com.microsoft.azure.toolkit.lib.common.task.AzureTask<FunctionAppBase<?,?,?>>
-
- com.microsoft.azure.toolkit.lib.appservice.task.DeployFunctionAppTask
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.operation.Operation
public class DeployFunctionAppTask extends com.microsoft.azure.toolkit.lib.common.task.AzureTask<FunctionAppBase<?,?,?>>
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DeployFunctionAppTask(FunctionAppBase<?,?,?> target, File stagingFolder, FunctionDeployType deployType)DeployFunctionAppTask(FunctionAppBase<?,?,?> target, File stagingFolder, FunctionDeployType deployType, com.microsoft.azure.toolkit.lib.common.messager.IAzureMessager messager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddeployArtifact()FunctionAppBase<?,?,?>doExecute()com.microsoft.azure.toolkit.lib.common.bundle.AzureStringgetDescription()private List<FunctionEntity>listFunctions(FunctionApp functionApp)private voidlistHTTPTriggerUrls(FunctionApp target)private FilepackageStagingDirectory()private voidsyncTriggers(FunctionApp functionApp)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
execute, getBackgrounded, getBody, 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
-
SYNC_FUNCTION_MAX_ATTEMPTS
private static final int SYNC_FUNCTION_MAX_ATTEMPTS
- See Also:
- Constant Field Values
-
SYNC_FUNCTION_DELAY
private static final int SYNC_FUNCTION_DELAY
- See Also:
- Constant Field Values
-
LIST_TRIGGERS_MAX_RETRY
private static final int LIST_TRIGGERS_MAX_RETRY
- See Also:
- Constant Field Values
-
LIST_TRIGGERS_RETRY_PERIOD_IN_SECONDS
private static final int LIST_TRIGGERS_RETRY_PERIOD_IN_SECONDS
- See Also:
- Constant Field Values
-
RUNNING
private static final String RUNNING
- See Also:
- Constant Field Values
-
AUTH_LEVEL
private static final String AUTH_LEVEL
- See Also:
- Constant Field Values
-
HTTP_TRIGGER
private static final String HTTP_TRIGGER
- See Also:
- Constant Field Values
-
LOCAL_SETTINGS_FILE
private static final String LOCAL_SETTINGS_FILE
- 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
-
HTTP_TRIGGER_URLS
private static final String HTTP_TRIGGER_URLS
- See Also:
- Constant Field Values
-
NO_ANONYMOUS_HTTP_TRIGGER
private static final String NO_ANONYMOUS_HTTP_TRIGGER
- See Also:
- Constant Field Values
-
NO_TRIGGERS_FOUNDED
private static final String NO_TRIGGERS_FOUNDED
- See Also:
- Constant Field Values
-
UNABLE_TO_LIST_NONE_ANONYMOUS_HTTP_TRIGGERS
private static final String UNABLE_TO_LIST_NONE_ANONYMOUS_HTTP_TRIGGERS
- See Also:
- Constant Field Values
-
SKIP_DEPLOYMENT_FOR_DOCKER_APP_SERVICE
private static final String SKIP_DEPLOYMENT_FOR_DOCKER_APP_SERVICE
- See Also:
- Constant Field Values
-
FAILED_TO_LIST_TRIGGERS
private static final String FAILED_TO_LIST_TRIGGERS
- See Also:
- Constant Field Values
-
SYNC_TRIGGERS
private static final String SYNC_TRIGGERS
- See Also:
- Constant Field Values
-
LIST_TRIGGERS
private static final String LIST_TRIGGERS
- See Also:
- Constant Field Values
-
LIST_TRIGGERS_WITH_RETRY
private static final String LIST_TRIGGERS_WITH_RETRY
- See Also:
- Constant Field Values
-
target
private final FunctionAppBase<?,?,?> target
-
stagingDirectory
private final File stagingDirectory
-
deployType
private final FunctionDeployType deployType
-
messager
private final com.microsoft.azure.toolkit.lib.common.messager.IAzureMessager messager
-
-
Constructor Detail
-
DeployFunctionAppTask
public DeployFunctionAppTask(@Nonnull FunctionAppBase<?,?,?> target, @Nonnull File stagingFolder, @Nullable FunctionDeployType deployType)
-
DeployFunctionAppTask
public DeployFunctionAppTask(@Nonnull FunctionAppBase<?,?,?> target, @Nonnull File stagingFolder, @Nullable FunctionDeployType deployType, @Nonnull com.microsoft.azure.toolkit.lib.common.messager.IAzureMessager messager)
-
-
Method Detail
-
getDescription
public com.microsoft.azure.toolkit.lib.common.bundle.AzureString getDescription()
- Specified by:
getDescriptionin interfacecom.microsoft.azure.toolkit.lib.common.operation.Operation- Overrides:
getDescriptionin classcom.microsoft.azure.toolkit.lib.common.task.AzureTask<FunctionAppBase<?,?,?>>
-
doExecute
public FunctionAppBase<?,?,?> doExecute()
- Overrides:
doExecutein classcom.microsoft.azure.toolkit.lib.common.task.AzureTask<FunctionAppBase<?,?,?>>
-
deployArtifact
private void deployArtifact()
-
packageStagingDirectory
private File packageStagingDirectory()
-
listHTTPTriggerUrls
private void listHTTPTriggerUrls(FunctionApp target)
-
syncTriggers
private void syncTriggers(FunctionApp functionApp) throws InterruptedException
- Throws:
InterruptedException
-
listFunctions
private List<FunctionEntity> listFunctions(FunctionApp functionApp)
-
-