|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiCmPeer
public class ApiCmPeer
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 |
---|
public ApiCmPeer()
Method Detail |
---|
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)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |