com.cloudera.api.model
Class ApiCdhUpgradeArgs

java.lang.Object
  extended by com.cloudera.api.model.ApiCdhUpgradeArgs

public class ApiCdhUpgradeArgs
extends Object

Arguments used for the CDH Upgrade command.


Constructor Summary
ApiCdhUpgradeArgs()
           
 
Method Summary
 boolean equals(Object o)
           
 String getCdhPackageVersion()
          If using packages, the full version of the CDH packages being upgraded to, such as "5.1.2".
 String getCdhParcelVersion()
          If using parcels, the full version of an already distributed parcel for the next major CDH version.
 Boolean getDeployClientConfig()
          Deprecated. 
 ApiRollingUpgradeClusterArgs getRollingRestartArgs()
          If provided and rolling restart is available, will perform rolling restart with the requested arguments.
 Boolean getStartAllServices()
          Deprecated. 
 int hashCode()
           
 void setCdhPackageVersion(String cdhPackageVersion)
           
 void setCdhParcelVersion(String cdhParcelVersion)
           
 void setDeployClientConfig(Boolean deployClientConfig)
           
 void setRollingRestartArgs(ApiRollingUpgradeClusterArgs rollingRestartArgs)
           
 void setStartAllServices(Boolean startAllServices)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiCdhUpgradeArgs

public ApiCdhUpgradeArgs()
Method Detail

getCdhParcelVersion

public String getCdhParcelVersion()
If using parcels, the full version of an already distributed parcel for the next major CDH version. Default is null, which indicates this is a package upgrade. Example versions are: '5.0.0-1.cdh5.0.0.p0.11' or '5.0.2-1.cdh5.0.2.p0.32'


setCdhParcelVersion

public void setCdhParcelVersion(String cdhParcelVersion)

getCdhPackageVersion

public String getCdhPackageVersion()
If using packages, the full version of the CDH packages being upgraded to, such as "5.1.2". These packages must already be installed on the cluster before running the upgrade command. For backwards compatibility, if "5.0.0" is specified here, then the upgrade command will relax validation of installed packages to match v6 behavior, only checking major version.

Introduced in v9. Has no effect in older API versions, which assume "5.0.0"


setCdhPackageVersion

public void setCdhPackageVersion(String cdhPackageVersion)

getRollingRestartArgs

public ApiRollingUpgradeClusterArgs getRollingRestartArgs()
If provided and rolling restart is available, will perform rolling restart with the requested arguments. If provided and rolling restart is not available, errors. If omitted, will do a regular restart.

Introduced in v9. Has no effect in older API versions, which must always do a hard restart.


setRollingRestartArgs

public void setRollingRestartArgs(ApiRollingUpgradeClusterArgs rollingRestartArgs)

getDeployClientConfig

@Deprecated
public Boolean getDeployClientConfig()
Deprecated. 

Not used starting in v9 - Client config is always deployed as part of upgrade. For older versions, determines whether client configuration should be deployed as part of upgrade. Default is true.


setDeployClientConfig

public void setDeployClientConfig(Boolean deployClientConfig)

getStartAllServices

@Deprecated
public Boolean getStartAllServices()
Deprecated. 

Not used starting in v9 - All servies are always started as part of upgrade. For older versions, determines whether all services should be started should be deployed as part of upgrade. Default is true.


setStartAllServices

public void setStartAllServices(Boolean startAllServices)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.