public class CmPeersResourceApi extends Object
Constructor and Description |
---|
CmPeersResourceApi() |
CmPeersResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiCmPeer |
createPeer(ApiCmPeer body)
Create a new Cloudera Manager peer.
|
com.squareup.okhttp.Call |
createPeerAsync(ApiCmPeer body,
ApiCallback<ApiCmPeer> callback)
Create a new Cloudera Manager peer.
|
com.squareup.okhttp.Call |
createPeerCall(ApiCmPeer body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPeer
|
ApiResponse<ApiCmPeer> |
createPeerWithHttpInfo(ApiCmPeer body)
Create a new Cloudera Manager peer.
|
ApiCmPeer |
deletePeer(String peerName,
String type)
Delete Cloudera Manager peer.
|
com.squareup.okhttp.Call |
deletePeerAsync(String peerName,
String type,
ApiCallback<ApiCmPeer> callback)
Delete Cloudera Manager peer.
|
com.squareup.okhttp.Call |
deletePeerCall(String peerName,
String type,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deletePeer
|
ApiResponse<ApiCmPeer> |
deletePeerWithHttpInfo(String peerName,
String type)
Delete Cloudera Manager peer.
|
ApiClient |
getApiClient() |
ApiCmPeerList |
listPeers()
Retrieves all configured Cloudera Manager peers.
|
com.squareup.okhttp.Call |
listPeersAsync(ApiCallback<ApiCmPeerList> callback)
Retrieves all configured Cloudera Manager peers.
|
com.squareup.okhttp.Call |
listPeersCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for listPeers
|
ApiResponse<ApiCmPeerList> |
listPeersWithHttpInfo()
Retrieves all configured Cloudera Manager peers.
|
ApiCmPeer |
readPeer(String peerName,
String type)
Fetch information about an existing Cloudera Manager peer.
|
com.squareup.okhttp.Call |
readPeerAsync(String peerName,
String type,
ApiCallback<ApiCmPeer> callback)
Fetch information about an existing Cloudera Manager peer.
|
com.squareup.okhttp.Call |
readPeerCall(String peerName,
String type,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readPeer
|
ApiResponse<ApiCmPeer> |
readPeerWithHttpInfo(String peerName,
String type)
Fetch information about an existing Cloudera Manager peer.
|
void |
setApiClient(ApiClient apiClient) |
ApiCommand |
testPeer(String peerName,
String type)
Test the connectivity of a peer.
|
com.squareup.okhttp.Call |
testPeerAsync(String peerName,
String type,
ApiCallback<ApiCommand> callback)
Test the connectivity of a peer.
|
com.squareup.okhttp.Call |
testPeerCall(String peerName,
String type,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for testPeer
|
ApiResponse<ApiCommand> |
testPeerWithHttpInfo(String peerName,
String type)
Test the connectivity of a peer.
|
ApiCmPeer |
updatePeer(String peerName,
ApiCmPeer body)
Update information for a Cloudera Manager peer.
|
com.squareup.okhttp.Call |
updatePeerAsync(String peerName,
ApiCmPeer body,
ApiCallback<ApiCmPeer> callback)
Update information for a Cloudera Manager peer.
|
com.squareup.okhttp.Call |
updatePeerCall(String peerName,
ApiCmPeer body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updatePeer
|
ApiResponse<ApiCmPeer> |
updatePeerWithHttpInfo(String peerName,
ApiCmPeer body)
Update information for a Cloudera Manager peer.
|
public CmPeersResourceApi()
public CmPeersResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createPeerCall(ApiCmPeer body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body
- Peer to create (see above). (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCmPeer createPeer(ApiCmPeer body) throws ApiException
body
- Peer to create (see above). (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCmPeer> createPeerWithHttpInfo(ApiCmPeer body) throws ApiException
body
- Peer to create (see above). (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createPeerAsync(ApiCmPeer body, ApiCallback<ApiCmPeer> callback) throws ApiException
body
- Peer to create (see above). (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deletePeerCall(String peerName, String type, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
peerName
- Name of peer to delete. (required)type
- Type of peer to delete. If null, REPLICATION peer type will be deleted. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCmPeer deletePeer(String peerName, String type) throws ApiException
peerName
- Name of peer to delete. (required)type
- Type of peer to delete. If null, REPLICATION peer type will be deleted. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCmPeer> deletePeerWithHttpInfo(String peerName, String type) throws ApiException
peerName
- Name of peer to delete. (required)type
- Type of peer to delete. If null, REPLICATION peer type will be deleted. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deletePeerAsync(String peerName, String type, ApiCallback<ApiCmPeer> callback) throws ApiException
peerName
- Name of peer to delete. (required)type
- Type of peer to delete. If null, REPLICATION peer type will be deleted. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call listPeersCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCmPeerList listPeers() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCmPeerList> listPeersWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call listPeersAsync(ApiCallback<ApiCmPeerList> callback) throws ApiException
callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readPeerCall(String peerName, String type, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
peerName
- Name of peer to retrieve. (required)type
- Type of peer to retrieve. If null, REPLICATION peer type will be returned. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCmPeer readPeer(String peerName, String type) throws ApiException
peerName
- Name of peer to retrieve. (required)type
- Type of peer to retrieve. If null, REPLICATION peer type will be returned. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCmPeer> readPeerWithHttpInfo(String peerName, String type) throws ApiException
peerName
- Name of peer to retrieve. (required)type
- Type of peer to retrieve. If null, REPLICATION peer type will be returned. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readPeerAsync(String peerName, String type, ApiCallback<ApiCmPeer> callback) throws ApiException
peerName
- Name of peer to retrieve. (required)type
- Type of peer to retrieve. If null, REPLICATION peer type will be returned. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call testPeerCall(String peerName, String type, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
peerName
- Name of peer to test. (required)type
- Type of peer to test. If null, REPLICATION peer type will be tested. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand testPeer(String peerName, String type) throws ApiException
peerName
- Name of peer to test. (required)type
- Type of peer to test. If null, REPLICATION peer type will be tested. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> testPeerWithHttpInfo(String peerName, String type) throws ApiException
peerName
- Name of peer to test. (required)type
- Type of peer to test. If null, REPLICATION peer type will be tested. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call testPeerAsync(String peerName, String type, ApiCallback<ApiCommand> callback) throws ApiException
peerName
- Name of peer to test. (required)type
- Type of peer to test. If null, REPLICATION peer type will be tested. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updatePeerCall(String peerName, ApiCmPeer body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
peerName
- Name of peer to update. (required)body
- Updated peer information. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCmPeer updatePeer(String peerName, ApiCmPeer body) throws ApiException
peerName
- Name of peer to update. (required)body
- Updated peer information. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCmPeer> updatePeerWithHttpInfo(String peerName, ApiCmPeer body) throws ApiException
peerName
- Name of peer to update. (required)body
- Updated peer information. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updatePeerAsync(String peerName, ApiCmPeer body, ApiCallback<ApiCmPeer> callback) throws ApiException
peerName
- Name of peer to update. (required)body
- Updated peer information. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.