com.cloudera.api.model
Class ApiMigrateRolesArguments

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

public class ApiMigrateRolesArguments
extends Object


Constructor Summary
ApiMigrateRolesArguments()
           
 
Method Summary
 boolean equals(Object o)
           
 boolean getClearStaleRoleData()
          Delete existing stale role data, if any.
 String getDestinationHostId()
          The ID of the host to which the roles should be migrated.
 List<String> getRoleNamesToMigrate()
          The list of role names to migrate.
 int hashCode()
           
 void setClearStaleRoleData(boolean clearStaleRoleData)
           
 void setDestinationHostId(String destinationHostId)
           
 void setRoleNamesToMigrate(List<String> roleNamesToMigrate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiMigrateRolesArguments

public ApiMigrateRolesArguments()
Method Detail

getRoleNamesToMigrate

public List<String> getRoleNamesToMigrate()
The list of role names to migrate.


setRoleNamesToMigrate

public void setRoleNamesToMigrate(List<String> roleNamesToMigrate)

getDestinationHostId

public String getDestinationHostId()
The ID of the host to which the roles should be migrated.


setDestinationHostId

public void setDestinationHostId(String destinationHostId)

getClearStaleRoleData

public boolean getClearStaleRoleData()
Delete existing stale role data, if any. For example, when migrating a NameNode, if the destination host has stale data in the NameNode data directories (possibly because a NameNode role was previously located there), this stale data will be deleted before migrating the role.


setClearStaleRoleData

public void setClearStaleRoleData(boolean clearStaleRoleData)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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