|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.soyatec.windowsazure.proxy.AbstractProxyDelegate
org.soyatec.windowsazure.management.ServiceManagement
public abstract class ServiceManagement
The class is to manage storage accounts and hosted services, service deployments, and affinity groups.
| Constructor Summary | |
|---|---|
ServiceManagement(java.lang.String subscriptionId,
java.lang.String keyStoreFile,
java.lang.String keyStorePassword,
java.lang.String trustStoreFile,
java.lang.String trustStorePassword,
java.lang.String certificateAlias,
java.lang.String endPointHost)
Construct a new ServiceManagement object with a subscription id, store file key, store password key, trust store file, trust store password, certificate alias and endPointHost. |
|
| Method Summary | |
|---|---|
abstract void |
addCertificate(java.lang.String serviceName,
byte[] data,
CertificateFormat format,
java.lang.String password)
The Add Certificate operation adds a certificate to the subscription. |
abstract java.lang.String |
changeDeploymentConfiguration(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String configurationFileUrl,
AsyncResultCallback callback)
The Change Deployment Configuration operation is to change the configuration of the Deployment. |
abstract java.lang.String |
changeDeploymentConfiguration(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String configurationFileUrl,
AsyncResultCallback callback)
The Change Deployment Configuration operation is to change the configuration of the Deployment. |
abstract void |
createAffinityGroup(java.lang.String groupName,
java.lang.String label,
java.lang.String description,
java.lang.String location)
The Create Affinity Group operation creates a new affinity group for the specified subscription. |
abstract java.lang.String |
createDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
DeploymentConfiguration configuration,
AsyncResultCallback callback)
The Create Deployment operation uploads a new service package and creates a new deployment on staging or production. |
abstract void |
createHostedService(java.lang.String serviceName,
java.lang.String label,
java.lang.String description,
java.lang.String location,
java.lang.String affinityGroup)
The Create Hosted Service operation creates a new hosted service in Windows Azure. |
abstract void |
createStorageAccount(java.lang.String accountName,
java.lang.String label,
java.lang.String description,
java.lang.String location,
java.lang.String affinityGroup,
AsyncResultCallback callback)
The Create Storage Account operation creates a new storage account in Windows Azure. |
abstract void |
deleteAffinityGroup(java.lang.String groupName)
The Delete Affinity Group operation deletes an affinity group in the specified subscription. |
abstract void |
deleteCertificate(java.lang.String serviceName,
java.lang.String thumbprintAlgorithm,
java.lang.String thumbprint)
The Delete Certificate operation deletes a certificate from the subscription's certificate store. |
abstract java.lang.String |
deleteDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
AsyncResultCallback callback)
The Delete Deployment operation Delete the deployment with the service name, deploymentSlotType and asyncResultCallback. |
abstract java.lang.String |
deleteDeployment(java.lang.String serviceName,
java.lang.String deploymentName,
AsyncResultCallback callback)
The Delete Deployment operation Delete the deployment with the service name, deployment name and asyncResultCallback. |
abstract void |
deleteHostedService(java.lang.String serviceName)
The Delete Hosted Service operation deletes the specified hosted service from Windows Azure. |
abstract void |
deleteStorageAccount(java.lang.String accountName)
The Delete Storage Account operation deletes the specified storage account from Windows Azure. |
abstract AffinityGroupProperties |
getAffinityGroupProperties(java.lang.String groupName)
The Get Affinity Group Properties operation get the Affinity Group Properties with group name. |
abstract Certificate |
getCertificate(java.lang.String serviceName,
java.lang.String thumbprintAlgorithm,
java.lang.String thumbprint)
The Get Certificate operation returns the public data for the specified certificate. |
abstract Deployment |
getDeployment(java.lang.String serviceName,
DeploymentSlotType slotType)
The Get Deployment operation get the deployment with the service name and deploymentSlotType. |
abstract Deployment |
getDeployment(java.lang.String serviceName,
java.lang.String deploymentName)
The Get Deployment operation get the deployment with the service name and deployment name. |
abstract HostedServiceProperties |
getHostedServiceProperties(java.lang.String serviceName,
boolean embedDetail)
The Get Service Properties operation Get the hosted service properties with the service name and embedDetail(true/false). |
abstract int |
getMaximumThreadCount()
Get the maximum thead count for polling operation status. |
abstract OperationStatus |
getOperationStatus(java.lang.String requestId)
The Get Operation Status Get the operation status with request id. |
abstract int |
getPollStatusInterval()
Get the interval in milliseconds for polling operation status in asynchronous operations. |
abstract StorageAccountKey |
getStorageAccountKeys(java.lang.String serviceName)
The Get Storage Account Keys operation lists the storage account keys for the specified storage account. |
abstract StorageAccountProperties |
getStorageAccountProperties(java.lang.String serviceName)
The Get Storage Account Properties operation get the storage account properties. |
java.lang.String |
getSubscriptionId()
Windows aure subscription ID. |
boolean |
isBlocking()
Indicate whether the thread will be blocked for some long running operations, such as deployment. |
abstract java.util.List<AffinityGroup> |
listAffinityGroups()
The List Affinity Accounts operation lists the affinity groups available under the current subscription. |
abstract java.util.List<Certificate> |
listCertificates(java.lang.String serviceName)
The List Certificates operation lists all certificates associated with the specified hosted service. |
abstract java.util.List<HostedService> |
listHostedServices()
The List Hosted Services operation lists the hosted services available under the current subscription. |
abstract java.util.List<Location> |
listLocations()
The List Locations operation lists all of the data center locations that are valid for your subscription. |
abstract java.util.List<OperatingSystem> |
listOperatingSystems()
The List Operating Systems operation lists the versions of the guest operating system that are currently available in Windows Azure. |
abstract java.util.List<OperatingSystemFamily> |
listOSFamilies()
The List OS Families operation lists the guest operating system families available in Windows Azure, and also lists the operating system versions available for each family. |
abstract java.util.List<StorageAccount> |
listStorageAccounts()
The List Storage Accounts operation lists the storage accounts available under the current subscription. |
abstract java.util.List<SubscriptionOperation> |
listSubscriptionOperations(java.lang.String startTimeFrame,
java.lang.String endTimeFrame)
The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe. |
abstract java.util.List<SubscriptionOperation> |
listSubscriptionOperations(java.lang.String startTimeFrame,
java.lang.String endTimeFrame,
ObjectIdFilter filter,
OperationState operationStatus,
int limit)
The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe. |
abstract java.lang.String |
rebootRoleInstance(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment. |
abstract java.lang.String |
rebootRoleInstance(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment. |
abstract StorageAccountKey |
regenerateKeys(java.lang.String serviceName,
KeyType type)
The Regenerate Keys operation regenerates the primary or secondary access key for the specified storage account. |
abstract java.lang.String |
reimageRoleInstance(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment. |
abstract java.lang.String |
reimageRoleInstance(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment. |
void |
setBlocking(boolean blocking)
If blocking is true, the thread will be blocked for some long running operations, such as deployment. |
abstract void |
setMaximumThreadCount(int maximumThreadCount)
Set the maximum thead count for polling operation status. |
abstract void |
setPollStatusInterval(int interval)
Set the interval in milliseconds for polling operation status in asynchronous operations. |
abstract java.lang.String |
swapDeployment(java.lang.String serviceName,
java.lang.String productName,
java.lang.String sourceName,
AsyncResultCallback callback)
The Swap Deployment operation is to swap deployment. |
abstract void |
updateAffinityGroup(java.lang.String groupName,
java.lang.String label,
java.lang.String description)
The Update Affinity Group operation updates the label and/or the description for an affinity group for the specified subscription. |
abstract java.lang.String |
updateDeplymentStatus(java.lang.String serviceName,
DeploymentSlotType slotType,
UpdateStatus status,
AsyncResultCallback callback)
The Update Deployment Status operation is update the status of the Deployment. |
abstract java.lang.String |
updateDeplymentStatus(java.lang.String serviceName,
java.lang.String deploymentName,
UpdateStatus status,
AsyncResultCallback callback)
The Update Deployment Status operation is update the status of the Deployment. |
abstract void |
updateHostedService(java.lang.String serviceName,
java.lang.String label,
java.lang.String description)
The Update Hosted Service operation updates the label and/or the description for a hosted service in Windows Azure. |
abstract void |
updateStorageAccount(java.lang.String accountName,
java.lang.String label,
java.lang.String description)
The Update Storage Account operation updates the label and/or the description for a storage account in Windows Azure. |
abstract java.lang.String |
upgradeDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
UpgradeConfiguration configuration,
AsyncResultCallback callback)
The Upgrade Deployment operation initiates an upgrade. |
abstract java.lang.String |
upgradeDeployment(java.lang.String serviceName,
java.lang.String deploymentName,
UpgradeConfiguration configuration,
AsyncResultCallback callback)
The Upgrade Deployment operation initiates an upgrade. |
abstract java.lang.String |
walkUpgradeDomain(java.lang.String serviceName,
DeploymentSlotType slotType,
int domainId,
AsyncResultCallback callback)
The Walk Upgrade Domain operation is walk upgrade the deployment. |
abstract java.lang.String |
walkUpgradeDomain(java.lang.String serviceName,
java.lang.String deploymentName,
int domainId,
AsyncResultCallback callback)
The Walk Upgrade Domain operation is walk upgrade the deployment. |
| Methods inherited from class org.soyatec.windowsazure.proxy.AbstractProxyDelegate |
|---|
disableProxy, isProxyEnabled, setProxyConfiguration |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceManagement(java.lang.String subscriptionId,
java.lang.String keyStoreFile,
java.lang.String keyStorePassword,
java.lang.String trustStoreFile,
java.lang.String trustStorePassword,
java.lang.String certificateAlias,
java.lang.String endPointHost)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public boolean isBlocking()
public void setBlocking(boolean blocking)
blocking - public java.lang.String getSubscriptionId()
public abstract java.util.List<HostedService> listHostedServices()
public abstract java.lang.String createDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
DeploymentConfiguration configuration,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productionconfiguration - It contains information for deployment, such as service
package url, service configuration file, etc.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract Deployment getDeployment(java.lang.String serviceName,
DeploymentSlotType slotType)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or production
public abstract Deployment getDeployment(java.lang.String serviceName,
java.lang.String deploymentName)
serviceName - The name of hosted servicedeploymentName - The name of deployment
public abstract java.lang.String deleteDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productioncallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String deleteDeployment(java.lang.String serviceName,
java.lang.String deploymentName,
AsyncResultCallback callback)
serviceName - The name of hosted servicedeploymentName - The name of deploymentcallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract HostedServiceProperties getHostedServiceProperties(java.lang.String serviceName,
boolean embedDetail)
serviceName - The name of your hosted service.embedDetail - When the embedDetail parameter is specified, the management
service returns properties for all deployments of the service,
as well as for the service itself. The default value is false.
public abstract OperationStatus getOperationStatus(java.lang.String requestId)
requestId - the request id of operation
public abstract java.util.List<StorageAccount> listStorageAccounts()
public abstract java.util.List<AffinityGroup> listAffinityGroups()
public abstract StorageAccountKey getStorageAccountKeys(java.lang.String serviceName)
serviceName - The name of the desired storage account.
public abstract StorageAccountKey regenerateKeys(java.lang.String serviceName,
KeyType type)
serviceName - The name of the desired storage account.type - Indicate what key should be regenerated.
public abstract StorageAccountProperties getStorageAccountProperties(java.lang.String serviceName)
serviceName - The name of the desired storage account.
public abstract AffinityGroupProperties getAffinityGroupProperties(java.lang.String groupName)
groupName - The name of the desired affinity group
public abstract void createAffinityGroup(java.lang.String groupName,
java.lang.String label,
java.lang.String description,
java.lang.String location)
groupName - The name of the affinity group that is unique to the
subscription.label - Required. A label for the affinity group. The label may be up
to 100 characters in length.description - Optional. A description for the affinity group. The
description may be up to 1024 characters in length.location - The location where the affinity group will be created. To list
available locations, use the List Locations operation.public abstract void deleteAffinityGroup(java.lang.String groupName)
groupName - The name of the desired affinity group
public abstract void updateAffinityGroup(java.lang.String groupName,
java.lang.String label,
java.lang.String description)
groupName - The name of the desired affinity grouplabel - Required. A label for the affinity group. The label may be up
to 100 characters in length.description - Optional. A description for the affinity group. The
description may be up to 1024 characters in length.
public abstract java.lang.String updateDeplymentStatus(java.lang.String serviceName,
DeploymentSlotType slotType,
UpdateStatus status,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productionstatus - The deployment status, either running or suspendedcallback -
public abstract java.lang.String updateDeplymentStatus(java.lang.String serviceName,
java.lang.String deploymentName,
UpdateStatus status,
AsyncResultCallback callback)
serviceName - The name of hosted servicedeploymentName - The unique name of your deploymentstatus - The deployment status, either running or suspendedcallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String upgradeDeployment(java.lang.String serviceName,
DeploymentSlotType slotType,
UpgradeConfiguration configuration,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productionconfiguration - It contains information for upgrade, including the service
package url, the role name etc.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String upgradeDeployment(java.lang.String serviceName,
java.lang.String deploymentName,
UpgradeConfiguration configuration,
AsyncResultCallback callback)
serviceName - The name of hosted servicedeploymentName - The name of deploymentconfiguration - It contains information for upgrade, including the service
package url, the role name etc.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String walkUpgradeDomain(java.lang.String serviceName,
java.lang.String deploymentName,
int domainId,
AsyncResultCallback callback)
serviceName - The name of hosted servicedeploymentName - The name of deploymentdomainId - An integer value that identifies the upgrade domain to walk.
Upgrade domains are identified with a zero-based index: the
first upgrade domain has an ID of 0, the second has an ID of
1, and so on.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String walkUpgradeDomain(java.lang.String serviceName,
DeploymentSlotType slotType,
int domainId,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productiondomainId - An integer value that identifies the upgrade domain to walk.
Upgrade domains are identified with a zero-based index: the
first upgrade domain has an ID of 0, the second has an ID of
1, and so on.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String configurationFileUrl,
AsyncResultCallback callback)
serviceName - The name of hosted serviceslotType - Deployment slot type, either staging or productionconfigurationFileUrl - The file path of service configuration file.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String configurationFileUrl,
AsyncResultCallback callback)
serviceName - The name of hosted servicedeploymentName - The name of deploymentconfigurationFileUrl - The file path of service configuration file.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String swapDeployment(java.lang.String serviceName,
java.lang.String productName,
java.lang.String sourceName,
AsyncResultCallback callback)
serviceName - The name of hosted service.productName - The name of the production deployment.sourceName - The name of the source deployment, which will be swapped
withproduction.callback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.util.List<Certificate> listCertificates(java.lang.String serviceName)
serviceName - The name of hosted service
public abstract Certificate getCertificate(java.lang.String serviceName,
java.lang.String thumbprintAlgorithm,
java.lang.String thumbprint)
serviceName - The name of hosted servicethumbprintAlgorithm - The algorithm for the certificate's thumbprintthumbprint - The hexadecimal representation of the thumbprint
public abstract void deleteCertificate(java.lang.String serviceName,
java.lang.String thumbprintAlgorithm,
java.lang.String thumbprint)
serviceName - The name of hosted servicethumbprintAlgorithm - The algorithm for the certificate's thumbprintthumbprint - The hexadecimal representation of the thumbprint
public abstract void addCertificate(java.lang.String serviceName,
byte[] data,
CertificateFormat format,
java.lang.String password)
serviceName - The name of hosted servicedata - The content of certificate file in byte array.format - The format of certificate filepassword - The password of certificate filepublic abstract java.util.List<OperatingSystem> listOperatingSystems()
public abstract void setPollStatusInterval(int interval)
interval - the interval in milliseconds for polling operation statuspublic abstract int getMaximumThreadCount()
public abstract void setMaximumThreadCount(int maximumThreadCount)
maximumThreadCount - public abstract int getPollStatusInterval()
public abstract java.util.List<OperatingSystemFamily> listOSFamilies()
public abstract java.util.List<Location> listLocations()
public abstract void createHostedService(java.lang.String serviceName,
java.lang.String label,
java.lang.String description,
java.lang.String location,
java.lang.String affinityGroup)
serviceName - Required. A name for the hosted service that is unique to the
subscription. It is also used as the prefix of service URL.label - Required. A label for the hosted service. The label may be up to 100
characters in length.description - Optional. A description for the hosted service. The description may be
up to 1024 characters in length.location - The location where the hosted service will be created. To list
available locations, use the listLocations operation.affinityGroup - The name of an existing affinity group associated with this
subscription. To list available affinity groups, use the
listAffinityGroups operation.public abstract void deleteHostedService(java.lang.String serviceName)
serviceName - The name of your hosted service.
public abstract void updateHostedService(java.lang.String serviceName,
java.lang.String label,
java.lang.String description)
serviceName - The name of your hosted service.label - A label for the hosted service. The label may be up to 100
characters in length. You must specify a value for either
Label or Description, or for both.description - A description for the hosted service. The description may be
up to 1024 characters in length. You must specify a value for
either Label or Description, or for both.
public abstract java.lang.String rebootRoleInstance(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
serviceName - The name of your hosted service.slotType - Deployment slot type, either staging or productionroleInstanceName - The name of role instancecallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String rebootRoleInstance(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
serviceName - The name of your hosted service.deploymentName - The name of deploymentroleInstanceName - The name of role instancecallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String reimageRoleInstance(java.lang.String serviceName,
DeploymentSlotType slotType,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
serviceName - The name of your hosted service.slotType - Deployment slot type, either staging or productionroleInstanceName - The name of role instancecallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.lang.String reimageRoleInstance(java.lang.String serviceName,
java.lang.String deploymentName,
java.lang.String roleInstanceName,
AsyncResultCallback callback)
serviceName - The name of your hosted service.deploymentName - The name of deploymentroleInstanceName - The name of role instancecallback - The callback instance will be notified when the asynchronous
operation is completed.
public abstract java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame,
java.lang.String endTimeFrame)
startTimeFrame - The start of the timeframe to begin listing subscription
operations in UTC format. This parameter and the
endTimeFrame - The end of the timeframe to begin listing subscription
operations in UTC format. This parameter and the
public abstract java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame,
java.lang.String endTimeFrame,
ObjectIdFilter filter,
OperationState operationStatus,
int limit)
startTimeFrame - The start of the timeframe to begin listing subscription
operations in UTC format. This parameter and the
endTimeFrame - The end of the timeframe to begin listing subscription
operations in UTC format. This parameter and the
filter - Optional. Returns subscription operations only for the
specified object type and object ID. This parameter must be
set equal to the URL value for performing an HTTP GET on the
object. If no object is specified, a filter is not applied.operationStatus - Optional. Returns subscription operations only for the
specified result status, either Succeeded, Failed, or
InProgress. This filter can be combined with the
ObjectIdFilter to select subscription operations for an object
with a specific result status. If no result status is
specified, a filter is not applied.limit - The number of Subscription Operation that should be returned.
If you specify -1, it will return all Subscription Operations
during the specified timeframe.
public abstract void createStorageAccount(java.lang.String accountName,
java.lang.String label,
java.lang.String description,
java.lang.String location,
java.lang.String affinityGroup,
AsyncResultCallback callback)
accountName - Required. A name for the storage account that is unique to the
subscription.label - Required. A label for the storage account. The label may be up
to 100 characters in length.description - Optional. A description for the storage account. The
description may be up to 1024 characters in length.location - Required if AffinityGroup is not specified. The location where
the storage account is created. Specify either Location or
AffinityGroup, but not both.affinityGroup - Required if Location is not specified. The name of an existing
affinity group in the specified subscription. Specify either
Location or AffinityGroup, but not both.callback - The callback instance will be notified when the asynchronous
operation is completed.public abstract void deleteStorageAccount(java.lang.String accountName)
accountName - the name of the storage account
public abstract void updateStorageAccount(java.lang.String accountName,
java.lang.String label,
java.lang.String description)
accountName - the name of the storage accountlabel - Optional. A label for the storage account. The label may be up
to 100 characters in length. You must specify a value for
either Label or Description, or for both.description - Optional. A description for the storage account. The
description may be up to 1024 characters in length. You must
specify a value for either Label or Description, or for both.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||