com.cloudera.api.model
Class ApiHdfsHaArguments

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

public class ApiHdfsHaArguments
extends Object

Arguments used for HDFS HA commands.


Constructor Summary
ApiHdfsHaArguments()
           
 
Method Summary
 boolean equals(Object o)
           
 String getActiveName()
          Name of the active NameNode.
 String getActiveSharedEditsPath()
          Path to the shared edits directory on the active NameNode's host.
 boolean getDeployClientConfigs()
          Whether to re-deploy client configurations.
 String getNameservice()
          Nameservice that identifies the HA pair.
 String getStandByName()
          Name of the stand-by Namenode.
 String getStandBySharedEditsPath()
          Path to the shared edits directory on the stand-by NameNode's host.
 boolean getStartDependentServices()
          Whether to re-start dependent services.
 int hashCode()
           
 boolean isEnableQuorumStorage()
          Deprecated. 
 void setActiveName(String activeName)
           
 void setActiveSharedEditsPath(String annSharedEditsPath)
           
 void setDeployClientConfigs(boolean deploy)
           
 void setEnableQuorumStorage(boolean enableQuorumStorage)
           
 void setNameservice(String nameservice)
           
 void setStandByName(String standByName)
           
 void setStandBySharedEditsPath(String sbnSharedEditsPath)
           
 void setStartDependentServices(boolean start)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiHdfsHaArguments

public ApiHdfsHaArguments()
Method Detail

getActiveName

public String getActiveName()
Name of the active NameNode.


setActiveName

public void setActiveName(String activeName)

getActiveSharedEditsPath

public String getActiveSharedEditsPath()
Path to the shared edits directory on the active NameNode's host. Ignored if Quorum-based Storage is being enabled.


setActiveSharedEditsPath

public void setActiveSharedEditsPath(String annSharedEditsPath)

getStandByName

public String getStandByName()
Name of the stand-by Namenode.


setStandByName

public void setStandByName(String standByName)

getStandBySharedEditsPath

public String getStandBySharedEditsPath()
Path to the shared edits directory on the stand-by NameNode's host. Ignored if Quorum-based Storage is being enabled.


setStandBySharedEditsPath

public void setStandBySharedEditsPath(String sbnSharedEditsPath)

getNameservice

public String getNameservice()
Nameservice that identifies the HA pair.


setNameservice

public void setNameservice(String nameservice)

getStartDependentServices

public boolean getStartDependentServices()
Whether to re-start dependent services. Defaults to true.


setStartDependentServices

public void setStartDependentServices(boolean start)

getDeployClientConfigs

public boolean getDeployClientConfigs()
Whether to re-deploy client configurations. Defaults to true.


setDeployClientConfigs

public void setDeployClientConfigs(boolean deploy)

isEnableQuorumStorage

@Deprecated
public boolean isEnableQuorumStorage()
Deprecated. 

This parameter has been deprecated as of CM 5.0, where HA is only supported using Quorum-based Storage.

Whether to enable Quorum-based Storage. Enabling Quorum-based Storage requires a minimum of three and an odd number of JournalNodes to be created and configured before enabling HDFS HA.

Available since API v2.


setEnableQuorumStorage

public void setEnableQuorumStorage(boolean enableQuorumStorage)

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.