ApplicationPackage Interface

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

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

Method Summary

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

Activates the application package.

Completable activateAsync(String format)

Activates the application package asynchronously.

ServiceFuture<Void> activateAsync(String format, ServiceCallback<Void> callback)

Activates the application package asynchronously.

void delete()

Deletes the application package.

String format()
DateTime lastActivationTime()
PackageState state()
String storageUrl()
DateTime storageUrlExpiry()

Inherited Members

Method Details

activate

public void activate(String format)

Activates the application package.

Parameters:

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

activateAsync

public 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 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 void delete()

Deletes the application package.

format

public String format()

Returns:

the format of the application package

lastActivationTime

public DateTime lastActivationTime()

Returns:

the last time this application package was activated

state

public PackageState state()

Returns:

the state of the application package

storageUrl

public String storageUrl()

Returns:

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

storageUrlExpiry

public DateTime storageUrlExpiry()

Returns:

the expiry of the storage URL for the application package

Applies to