你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeploymentSlot Interface

Implements

public interface DeploymentSlot
extends IndependentChildResource<AppServiceManager,SiteInner>, WebDeploymentSlotBasic, SupportsOneDeploy, DeploymentSlotBase<DeploymentSlot>, Updatable<Update<DeploymentSlot>>, HasParent<WebApp>

An immutable client-side representation of an Azure Web App deployment slot.

Method Summary

Modifier and Type Method and Description
abstract void warDeploy(File warFile)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract void warDeploy(File warFile, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract void warDeploy(InputStream warFile, long length)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract void warDeploy(InputStream warFile, long length, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract Mono<Void> warDeployAsync(File warFile)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract Mono<Void> warDeployAsync(File warFile, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract Mono<Void> warDeployAsync(InputStream warFile, long length)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

abstract Mono<Void> warDeployAsync(InputStream warFile, long length, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

Method Details

warDeploy

public abstract void warDeploy(File warFile)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deploy(DeployType.WAR, warFile, new DeployOptions().withPath("webapps/ROOT"))

Parameters:

warFile - the WAR file to upload

warDeploy

public abstract void warDeploy(File warFile, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deploy(DeployType.WAR, warFile, new DeployOptions().withPath("webapps/"))

Parameters:

warFile - the WAR file to upload
appName - the name of the app, default to "ROOT" when not provided

warDeploy

public abstract void warDeploy(InputStream warFile, long length)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deploy(DeployType.WAR, warFile, length, new DeployOptions().withPath("webapps/ROOT"))

Parameters:

warFile - the WAR file to upload
length - the length of the file

warDeploy

public abstract void warDeploy(InputStream warFile, long length, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deploy(DeployType.WAR, warFile, length, new DeployOptions().withPath("webapps/"))

Parameters:

warFile - the WAR file to upload
length - the length of the file
appName - the name of the app, default to "ROOT" when not provided

warDeployAsync

public abstract Mono<Void> warDeployAsync(File warFile)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deployAsync(DeployType.WAR, warFile, new DeployOptions().withPath("webapps/ROOT"))

Parameters:

warFile - the WAR file to upload

Returns:

a completable of the operation

warDeployAsync

public abstract Mono<Void> warDeployAsync(File warFile, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deployAsync(DeployType.WAR, warFile, new DeployOptions().withPath("webapps/"))

Parameters:

warFile - the WAR file to upload
appName - the name of the app, default to "ROOT" when not provided

Returns:

a completable of the operation

warDeployAsync

public abstract Mono<Void> warDeployAsync(InputStream warFile, long length)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deployAsync(DeployType.WAR, warFile, length, new DeployOptions().withPath("webapps/ROOT"))

Parameters:

warFile - the WAR file to upload
length - the length of the file

Returns:

a completable of the operation

warDeployAsync

public abstract Mono<Void> warDeployAsync(InputStream warFile, long length, String appName)

Deploys a WAR file onto the Azure specialized Tomcat on this web app.

It is recommended to call deploymentSlot.deployAsync(DeployType.WAR, warFile, length, new DeployOptions().withPath("webapps/"))

Parameters:

warFile - the WAR file to upload
length - the length of the file
appName - the name of the app, default to "ROOT" when not provided

Returns:

a completable of the operation

Applies to