Class ReplicationmanagerClient
- java.lang.Object
-
- com.cloudera.cdp.client.CdpClient
-
- com.cloudera.cdp.replicationmanager.api.ReplicationmanagerClient
-
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen", date="2023-03-09T11:03:09.871-08:00") public class ReplicationmanagerClient extends CdpClient
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Fields inherited from class com.cloudera.cdp.client.CdpClient
NO_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description ReplicationmanagerClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration)
ReplicationmanagerClient(CdpRequestContext<?> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivatePolicyResponse
activatePolicy(ActivatePolicyRequest input)
Resume all replication tasks defined by the policy.CreatePolicyResponse
createPolicy(CreatePolicyRequest input)
Create a Replication Policy.DeletePolicyResponse
deletePolicy(DeletePolicyRequest input)
Delete Replication Policy.GetCredentialsResponse
getCredentials(GetCredentialsRequest input)
Get Cloud Credentials from a Cluster.protected String
getRequestContentType()
Gets the request Content-Type, used by 'Conent-Type' request header.protected String
getResponseContentType()
Gets the expected response Content-Type, used by 'Accept' request header.protected String
getServiceName()
Gets the service name.ListAllCredentialsResponse
listAllCredentials(ListAllCredentialsRequest input)
Lists Cloud Credentials.ListClustersResponse
listClusters(ListClustersRequest input)
Lists all clusters.ListClusterServiceStatusesResponse
listClusterServiceStatuses(ListClusterServiceStatusesRequest input)
Lists Cluster Service Statuses.ListPoliciesResponse
listPolicies(ListPoliciesRequest input)
Get All Replication Policies.SuspendPolicyResponse
suspendPolicy(SuspendPolicyRequest input)
Stop all replication tasks defined by the policy.-
Methods inherited from class com.cloudera.cdp.client.CdpClient
invokeAPI, invokeAPI, invokeAPI, invokeAPI, parameterToPair, parameterToPairs, parameterToString, shutdown
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicationmanagerClient
public ReplicationmanagerClient(CdpCredentials credentials, String endPoint, CdpClientConfiguration clientConfiguration)
-
ReplicationmanagerClient
public ReplicationmanagerClient(CdpRequestContext<?> context)
-
-
Method Detail
-
getServiceName
protected String getServiceName()
Description copied from class:CdpClient
Gets the service name.- Specified by:
getServiceName
in classCdpClient
- Returns:
- the service name
-
getRequestContentType
protected String getRequestContentType()
Description copied from class:CdpClient
Gets the request Content-Type, used by 'Conent-Type' request header.- Overrides:
getRequestContentType
in classCdpClient
- Returns:
- the request Content-Type
-
getResponseContentType
protected String getResponseContentType()
Description copied from class:CdpClient
Gets the expected response Content-Type, used by 'Accept' request header.- Overrides:
getResponseContentType
in classCdpClient
- Returns:
- the response Content-Type
-
activatePolicy
public ActivatePolicyResponse activatePolicy(ActivatePolicyRequest input)
Resume all replication tasks defined by the policy.- Parameters:
input
-- Returns:
- ActivatePolicyResponse
-
createPolicy
public CreatePolicyResponse createPolicy(CreatePolicyRequest input)
Create a Replication Policy.- Parameters:
input
-- Returns:
- CreatePolicyResponse
-
deletePolicy
public DeletePolicyResponse deletePolicy(DeletePolicyRequest input)
Delete Replication Policy.- Parameters:
input
-- Returns:
- DeletePolicyResponse
-
getCredentials
public GetCredentialsResponse getCredentials(GetCredentialsRequest input)
Get Cloud Credentials from a Cluster.- Parameters:
input
-- Returns:
- GetCredentialsResponse
-
listAllCredentials
public ListAllCredentialsResponse listAllCredentials(ListAllCredentialsRequest input)
Lists Cloud Credentials.- Parameters:
input
-- Returns:
- ListAllCredentialsResponse
-
listClusterServiceStatuses
public ListClusterServiceStatusesResponse listClusterServiceStatuses(ListClusterServiceStatusesRequest input)
Lists Cluster Service Statuses.- Parameters:
input
-- Returns:
- ListClusterServiceStatusesResponse
-
listClusters
public ListClustersResponse listClusters(ListClustersRequest input)
Lists all clusters.- Parameters:
input
-- Returns:
- ListClustersResponse
-
listPolicies
public ListPoliciesResponse listPolicies(ListPoliciesRequest input)
Get All Replication Policies.- Parameters:
input
-- Returns:
- ListPoliciesResponse
-
suspendPolicy
public SuspendPolicyResponse suspendPolicy(SuspendPolicyRequest input)
Stop all replication tasks defined by the policy.- Parameters:
input
-- Returns:
- SuspendPolicyResponse
-
-