public class ApiCmPeer extends Object
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 and Description |
---|
ApiCmPeer() |
Modifier and Type | Method and Description |
---|---|
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() |
public String getName()
public void setName(String name)
public ApiCmPeerType getType()
public void setType(ApiCmPeerType type)
public String getUrl()
public void setUrl(String url)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public Boolean getClouderaManagerCreatedUser()
public void setClouderaManagerCreatedUser(Boolean clouderaManagerCreatedUser)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.