public class MSDeployArtifactHandlerImpl extends ArtifactHandlerBase
| Modifier and Type | Class and Description |
|---|---|
static class |
MSDeployArtifactHandlerImpl.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_ZIP_DONE |
static String |
CREATE_ZIP_START |
static String |
DELETE_PACKAGE_DONE |
static String |
DELETE_PACKAGE_FAIL |
static String |
DELETE_PACKAGE_START |
static String |
DEPLOY_PACKAGE_DONE |
static String |
DEPLOY_PACKAGE_START |
static String |
DEPLOYMENT_PACKAGE_CONTAINER |
protected String |
functionAppName |
static String |
INTERNAL_STORAGE_CONNECTION_STRING |
static String |
INTERNAL_STORAGE_KEY |
static String |
INTERNAL_STORAGE_NOT_FOUND |
static String |
LOCAL_SETTINGS_FILE |
static String |
REMOVE_LOCAL_SETTINGS |
static String |
STAGE_DIR_NOT_FOUND |
static String |
UPLOAD_PACKAGE_DONE |
static String |
UPLOAD_PACKAGE_START |
static String |
ZIP_EXT |
buildDirectoryAbsolutePath, DEPLOY_ABORT, DEPLOY_FINISH, DEPLOY_START, filtering, log, NO_RESOURCES_CONFIG, project, resources, session, STAGING_FOLDER_EMPTY, stagingDirectoryPath| Modifier | Constructor and Description |
|---|---|
private |
MSDeployArtifactHandlerImpl(MSDeployArtifactHandlerImpl.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
createZipPackage() |
protected void |
deletePackageFromAzureStorage(com.microsoft.azure.storage.CloudStorageAccount storageAccount,
String blobName) |
protected void |
deployWithPackageUri(DeployTarget target,
String packageUri,
Runnable onDeployFinish) |
protected String |
getBlobName() |
protected com.microsoft.azure.storage.CloudStorageAccount |
getCloudStorageAccount(DeployTarget target) |
protected void |
logDebug(String message) |
protected void |
logError(String message) |
protected void |
logInfo(String message) |
void |
publish(DeployTarget target) |
protected String |
uploadPackageToAzureStorage(File zipPackage,
com.microsoft.azure.storage.CloudStorageAccount storageAccount,
String blobName) |
assureStagingDirectoryNotEmpty, prepareResourcespublic static final String DEPLOYMENT_PACKAGE_CONTAINER
public static final String ZIP_EXT
public static final String CREATE_ZIP_START
public static final String CREATE_ZIP_DONE
public static final String STAGE_DIR_NOT_FOUND
public static final String LOCAL_SETTINGS_FILE
public static final String REMOVE_LOCAL_SETTINGS
public static final String INTERNAL_STORAGE_KEY
public static final String INTERNAL_STORAGE_NOT_FOUND
public static final String INTERNAL_STORAGE_CONNECTION_STRING
public static final String UPLOAD_PACKAGE_START
public static final String UPLOAD_PACKAGE_DONE
public static final String DEPLOY_PACKAGE_START
public static final String DEPLOY_PACKAGE_DONE
public static final String DELETE_PACKAGE_START
public static final String DELETE_PACKAGE_DONE
public static final String DELETE_PACKAGE_FAIL
protected final String functionAppName
private MSDeployArtifactHandlerImpl(@Nonnull MSDeployArtifactHandlerImpl.Builder builder)
public void publish(DeployTarget target) throws Exception
Exceptionprotected void logInfo(String message)
protected void logDebug(String message)
protected void logError(String message)
protected com.microsoft.azure.storage.CloudStorageAccount getCloudStorageAccount(DeployTarget target) throws Exception
Exceptionprotected String getBlobName()
protected String uploadPackageToAzureStorage(File zipPackage, com.microsoft.azure.storage.CloudStorageAccount storageAccount, String blobName) throws Exception
Exceptionprotected void deployWithPackageUri(DeployTarget target, String packageUri, Runnable onDeployFinish)
protected void deletePackageFromAzureStorage(com.microsoft.azure.storage.CloudStorageAccount storageAccount,
String blobName)
Copyright © 2019. All rights reserved.