com.cloudera.api.model
Class ApiEnableJtHaArguments

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

public class ApiEnableJtHaArguments
extends Object

Arguments used for enable JT HA command.


Constructor Summary
ApiEnableJtHaArguments()
           
 
Method Summary
 boolean equals(Object o)
           
 String getFc1RoleName()
          Name of first Failover Controller role to be created.
 String getFc2RoleName()
          Name of second Failover Controller role to be created.
 boolean getForceInitZNode()
          Initialize the ZNode even if it already exists.
 String getLogicalName()
          Logical name of the JobTracker pair.
 String getNewJtHostId()
          Id of host on which second JobTracker role will be added.
 String getNewJtRoleName()
          Name of the second JobTracker role to be created (Optional)
 String getZkServiceName()
          Name of the ZooKeeper service that will be used for auto-failover.
 int hashCode()
           
 void setFc1RoleName(String fc1RoleName)
           
 void setFc2RoleName(String fc2RoleName)
           
 void setForceInitZNode(boolean forceInitZNode)
           
 void setLogicalName(String logicalName)
           
 void setNewJtHostId(String newJtHostId)
           
 void setNewJtRoleName(String newJtRoleName)
           
 void setZkServiceName(String zkServiceName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiEnableJtHaArguments

public ApiEnableJtHaArguments()
Method Detail

getNewJtHostId

public String getNewJtHostId()
Id of host on which second JobTracker role will be added.


setNewJtHostId

public void setNewJtHostId(String newJtHostId)

getForceInitZNode

public boolean getForceInitZNode()
Initialize the ZNode even if it already exists. This can happen if JobTracker HA was enabled before and then disabled. Disable operation doesn't delete this ZNode. Defaults to true.


setForceInitZNode

public void setForceInitZNode(boolean forceInitZNode)

getZkServiceName

public String getZkServiceName()
Name of the ZooKeeper service that will be used for auto-failover. This is an optional parameter if the MapReduce to ZooKeeper dependency is already set in CM.


setZkServiceName

public void setZkServiceName(String zkServiceName)

getNewJtRoleName

public String getNewJtRoleName()
Name of the second JobTracker role to be created (Optional)


setNewJtRoleName

public void setNewJtRoleName(String newJtRoleName)

getFc1RoleName

public String getFc1RoleName()
Name of first Failover Controller role to be created. This is the Failover Controller co-located with the current JobTracker (Optional)


setFc1RoleName

public void setFc1RoleName(String fc1RoleName)

getFc2RoleName

public String getFc2RoleName()
Name of second Failover Controller role to be created. This is the Failover Controller co-located with the new JobTracker (Optional)


setFc2RoleName

public void setFc2RoleName(String fc2RoleName)

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

getLogicalName

public String getLogicalName()
Logical name of the JobTracker pair. If value is not provided, "logicaljt" is used as the default. The name can contain only alphanumeric characters and "-".

Available since API v8.


setLogicalName

public void setLogicalName(String logicalName)


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