Class MSFunctionDeployHandler
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.appservice.deploy.MSFunctionDeployHandler
-
- All Implemented Interfaces:
IFunctionDeployHandler
public class MSFunctionDeployHandler extends Object implements IFunctionDeployHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static StringDELETE_PACKAGE_DONEprivate static StringDELETE_PACKAGE_FAILprivate static StringDELETE_PACKAGE_STARTprivate static StringDEPLOY_PACKAGE_DONEprivate static StringDEPLOY_PACKAGE_STARTprivate static StringDEPLOYMENT_PACKAGE_CONTAINERprivate static StringUPLOAD_PACKAGE_DONEprivate static StringUPLOAD_PACKAGE_START-
Fields inherited from interface com.microsoft.azure.toolkit.lib.appservice.deploy.IFunctionDeployHandler
DEPLOY_FINISH, DEPLOY_START
-
-
Constructor Summary
Constructors Constructor Description MSFunctionDeployHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddeletePackageFromAzureStorage(com.microsoft.azure.storage.CloudStorageAccount storageAccount, String blobName)voiddeploy(File file, com.azure.resourcemanager.appservice.models.WebAppBase webAppBase)private voiddeployWithPackageUri(com.azure.resourcemanager.appservice.models.WebAppBase target, String packageUri, Runnable onDeployFinish)private StringgetBlobName(com.azure.resourcemanager.appservice.models.WebAppBase functionApp)private StringuploadPackageToAzureStorage(File zipPackage, com.microsoft.azure.storage.CloudStorageAccount storageAccount, String blobName)
-
-
-
Field Detail
-
DEPLOYMENT_PACKAGE_CONTAINER
private static final String DEPLOYMENT_PACKAGE_CONTAINER
- See Also:
- Constant Field Values
-
UPLOAD_PACKAGE_START
private static final String UPLOAD_PACKAGE_START
- See Also:
- Constant Field Values
-
UPLOAD_PACKAGE_DONE
private static final String UPLOAD_PACKAGE_DONE
- See Also:
- Constant Field Values
-
DEPLOY_PACKAGE_START
private static final String DEPLOY_PACKAGE_START
- See Also:
- Constant Field Values
-
DEPLOY_PACKAGE_DONE
private static final String DEPLOY_PACKAGE_DONE
- See Also:
- Constant Field Values
-
DELETE_PACKAGE_START
private static final String DELETE_PACKAGE_START
- See Also:
- Constant Field Values
-
DELETE_PACKAGE_DONE
private static final String DELETE_PACKAGE_DONE
- See Also:
- Constant Field Values
-
DELETE_PACKAGE_FAIL
private static final String DELETE_PACKAGE_FAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
deploy
public void deploy(File file, com.azure.resourcemanager.appservice.models.WebAppBase webAppBase)
- Specified by:
deployin interfaceIFunctionDeployHandler
-
getBlobName
private String getBlobName(com.azure.resourcemanager.appservice.models.WebAppBase functionApp)
-
uploadPackageToAzureStorage
private String uploadPackageToAzureStorage(File zipPackage, com.microsoft.azure.storage.CloudStorageAccount storageAccount, String blobName)
-
deployWithPackageUri
private void deployWithPackageUri(com.azure.resourcemanager.appservice.models.WebAppBase target, String packageUri, Runnable onDeployFinish)
-
deletePackageFromAzureStorage
private void deletePackageFromAzureStorage(com.microsoft.azure.storage.CloudStorageAccount storageAccount, String blobName)
-
-