com.cloudera.api.model
Class ApiCmPeer

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

public class ApiCmPeer
extends Object

Information about a Cloudera Manager peer instance.

The requirement and usage of username and password properties are dependent on the clouderaManagerCreatedUser flag.

When creating peers, if 'clouderaManagerCreatedUser' is true, the username/password should be the credentials of a user with administrator privileges on the remote Cloudera Manager. These credentials are not stored, they are used to connect to the peer and create a user in that peer. The newly created user is stored and used for communication with that peer. If 'clouderaManagerCreatedUser' is false, which is not applicable to REPLICATION peer type, the username/password to the remote Cloudera Manager are directly stored and used for all communications with that peer.

When updating peers, if 'clouderaManagerCreatedUser' is true and username/password are set, a new remote user will be created. If 'clouderaManagerCreatedUser' is false and username/password are set, the stored username/password will be updated.


Constructor Summary
ApiCmPeer()
           
 
Method Summary
 boolean equals(Object o)
           
 Boolean getClouderaManagerCreatedUser()
          If true, Cloudera Manager creates a remote user using the given username/password and stores the created user in local DB for use in later communication.
 String getName()
          The name of the remote CM instance.
 String getPassword()
          When creating peers, if 'clouderaManagerCreatedUser' is true, this should be the remote admin password for creating a user in remote Cloudera Manager.
 ApiCmPeerType getType()
          The type of the remote CM instance.
 String getUrl()
          The URL of the remote CM instance.
 String getUsername()
          When creating peers, if 'clouderaManagerCreatedUser' is true, this should be the remote admin username for creating a user in remote Cloudera Manager.
 int hashCode()
           
 void setClouderaManagerCreatedUser(Boolean clouderaManagerCreatedUser)
           
 void setName(String name)
           
 void setPassword(String password)
           
 void setType(ApiCmPeerType type)
           
 void setUrl(String url)
           
 void setUsername(String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiCmPeer

public ApiCmPeer()
Method Detail

getName

public String getName()
The name of the remote CM instance. Immutable during update.


setName

public void setName(String name)

getType

public ApiCmPeerType getType()
The type of the remote CM instance. Immutable during update. Available since API v11.


setType

public void setType(ApiCmPeerType type)

getUrl

public String getUrl()
The URL of the remote CM instance. Mutable during update.


setUrl

public void setUrl(String url)

getUsername

public String getUsername()
When creating peers, if 'clouderaManagerCreatedUser' is true, this should be the remote admin username for creating a user in remote Cloudera Manager. The created remote user will then be stored in the local Cloudera Manager DB and used in later communication. If 'clouderaManagerCreatedUser' is false, which is not applicable to REPLICATION peer type, Cloudera Manager will store this username in the local DB directly and use it together with 'password' for communication. Mutable during update. When set during update, if 'clouderaManagerCreatedUser' is true, a new user in remote Cloudera Manager is created, the newly created remote user will be stored in the local DB. An attempt to delete the previously created remote user will be made; If 'clouderaManagerCreatedUser' is false, the username/password in the local DB will be updated.


setUsername

public void setUsername(String username)

getPassword

public String getPassword()
When creating peers, if 'clouderaManagerCreatedUser' is true, this should be the remote admin password for creating a user in remote Cloudera Manager. The created remote user will then be stored in the local Cloudera Manager DB and used in later communication. If 'clouderaManagerCreatedUser' is false, which is not applicable to REPLICATION peer type, Cloudera Manager will store this password in the local DB directly and use it together with 'username' for communication. Mutable during update. When set during update, if 'clouderaManagerCreatedUser' is true, a new user in remote Cloudera Manager is created, the newly created remote user will be stored in the local DB. An attempt to delete the previously created remote user will be made; If 'clouderaManagerCreatedUser' is false, the username/password in the local DB will be updated.


setPassword

public void setPassword(String password)

getClouderaManagerCreatedUser

public Boolean getClouderaManagerCreatedUser()
If true, Cloudera Manager creates a remote user using the given username/password and stores the created user in local DB for use in later communication. Cloudera Manager will also try to delete the created remote user when deleting such peers. If false, Cloudera Manager will store the provided username/password in the local DB and use them in later communication. 'false' value on this field is not applicable to REPLICATION peer type. Available since API v11. Immutable during update. Should not be set when updating peers.


setClouderaManagerCreatedUser

public void setClouderaManagerCreatedUser(Boolean clouderaManagerCreatedUser)

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.