org.soyatec.windowsazure.management
Class UpgradeConfiguration

java.lang.Object
  extended by org.soyatec.windowsazure.management.Configuration
      extended by org.soyatec.windowsazure.management.UpgradeConfiguration

public class UpgradeConfiguration
extends Configuration

This class is used to setup the configuration of Upgrade operation.

Author:
yyang

Constructor Summary
UpgradeConfiguration()
          Construct a new UpgradeConfiguration object.
UpgradeConfiguration(java.lang.String pkgUrl, BlobStream configurationFileStream, UpgradeType mode, java.lang.String upgradeRole, java.lang.String label)
          Construct a new UpgradeConfiguration object.
UpgradeConfiguration(java.lang.String pkgUrl, java.lang.String configurefileUrl, UpgradeType mode, java.lang.String upgradeRole, java.lang.String label)
          Construct a new UpgradeConfiguration object.
 
Method Summary
 java.lang.String getBase64Label()
           
 BlobStream getConfigurationFileStream()
           
 java.lang.String getDeploymentLabel()
           
 UpgradeType getMode()
           
 java.lang.String getUpgradeRole()
           
 void setConfigurationFileStream(BlobStream configurationFileStream)
           
 void setDeploymentLabel(java.lang.String label)
           
 void setMode(UpgradeType mode)
          Set the mode of UpgradeConfiguration.
 void setUpgradeRole(java.lang.String upgradeRole)
          Set the upgradeRole of UpgradeConfiguration.
 void validate()
          The validate operation is to check whether the deploymentLabel, packageBlobUrl, configurationFileUrl or upgradeRole is empty, if any of them is empty, throw a exception.
 
Methods inherited from class org.soyatec.windowsazure.management.Configuration
getBase64ConfigurationFile, getConfigurationFileUrl, getPackageBlobUrl, setConfigurationFileUrl, setPackageBlobUrl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeConfiguration

public UpgradeConfiguration()
Construct a new UpgradeConfiguration object.


UpgradeConfiguration

public UpgradeConfiguration(java.lang.String pkgUrl,
                            java.lang.String configurefileUrl,
                            UpgradeType mode,
                            java.lang.String upgradeRole,
                            java.lang.String label)
Construct a new UpgradeConfiguration object.


UpgradeConfiguration

public UpgradeConfiguration(java.lang.String pkgUrl,
                            BlobStream configurationFileStream,
                            UpgradeType mode,
                            java.lang.String upgradeRole,
                            java.lang.String label)
Construct a new UpgradeConfiguration object.

Method Detail

getConfigurationFileStream

public BlobStream getConfigurationFileStream()

setConfigurationFileStream

public void setConfigurationFileStream(BlobStream configurationFileStream)

validate

public void validate()
The validate operation is to check whether the deploymentLabel, packageBlobUrl, configurationFileUrl or upgradeRole is empty, if any of them is empty, throw a exception.


getDeploymentLabel

public java.lang.String getDeploymentLabel()
Returns:
the label

setDeploymentLabel

public void setDeploymentLabel(java.lang.String label)
Parameters:
label - the label to set

getBase64Label

public java.lang.String getBase64Label()
Returns:
the base64Label

getMode

public UpgradeType getMode()
Returns:
the mode of UpgradeConfiguration.

setMode

public void setMode(UpgradeType mode)
Set the mode of UpgradeConfiguration.

Parameters:
mode -

getUpgradeRole

public java.lang.String getUpgradeRole()
Returns:
the upgradeRole of UpgradeConfiguration.

setUpgradeRole

public void setUpgradeRole(java.lang.String upgradeRole)
Set the upgradeRole of UpgradeConfiguration.

Parameters:
upgradeRole -