ApplicationPackage Interface

Implements

public interface ApplicationPackage
extends ExternalChildResource<ApplicationPackage,Application>, HasInner<ApplicationPackageInner>

An immutable client-side representation of an Azure Batch application package.

Method Summary

Modifier and Type Method and Description
abstract void activate(String format)

Activates the application package.

abstract rx.Completable activateAsync(String format)

Activates the application package asynchronously.

abstract com.microsoft.rest.ServiceFuture<java.lang.Void> activateAsync(String format, ServiceCallback<Void> callback)

Activates the application package asynchronously.

abstract void delete()

Deletes the application package.

abstract java.lang.String format()
abstract org.joda.time.DateTime lastActivationTime()
abstract PackageState state()
abstract java.lang.String storageUrl()
abstract org.joda.time.DateTime storageUrlExpiry()

Method Details

activate

public abstract void activate(String format)

Activates the application package.

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"

activateAsync

public abstract Completable activateAsync(String format)

Activates the application package asynchronously.

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"

Returns:

a representation of the deferred computation of this call

activateAsync

public abstract ServiceFuture activateAsync(String format, ServiceCallback callback)

Activates the application package asynchronously.

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"
callback - the callback to call on success or failure

Returns:

a handle to cancel the request

delete

public abstract void delete()

Deletes the application package.

format

public abstract String format()

Returns:

the format of the application package

lastActivationTime

public abstract DateTime lastActivationTime()

Returns:

the last time this application package was activated

state

public abstract PackageState state()

Returns:

the state of the application package

storageUrl

public abstract String storageUrl()

Returns:

the storage URL of the application package where teh application should be uploaded

storageUrlExpiry

public abstract DateTime storageUrlExpiry()

Returns:

the expiry of the storage URL for the application package

Applies to