com.amazonaws.services.elasticmapreduce
Class AmazonElasticMapReduceClient
java.lang.Object
com.amazonaws.AmazonWebServiceClient
com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient
- All Implemented Interfaces:
- AmazonElasticMapReduce
- Direct Known Subclasses:
- AmazonElasticMapReduceAsyncClient
public class AmazonElasticMapReduceClient
- extends AmazonWebServiceClient
- implements AmazonElasticMapReduce
Client for accessing AmazonElasticMapReduce. All service calls made
using this client are blocking, and will not return until the service call
completes.
AmazonElasticMapReduceClient
public AmazonElasticMapReduceClient(AWSCredentials awsCredentials)
- Constructs a new client to invoke service methods on
AmazonElasticMapReduce using the specified AWS account credentials.
All service calls made using this new client object are blocking, and will not
return until the service call completes.
- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.
AmazonElasticMapReduceClient
public AmazonElasticMapReduceClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
- Constructs a new client to invoke service methods on
AmazonElasticMapReduce using the specified AWS account credentials
and client configuration options.
All service calls made using this new client object are blocking, and will not
return until the service call completes.
- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this
client connects to AmazonElasticMapReduce
(ex: proxy settings, retry counts, etc.).
addJobFlowSteps
public void addJobFlowSteps(AddJobFlowStepsRequest addJobFlowStepsRequest)
throws AmazonServiceException,
AmazonClientException
- Specified by:
addJobFlowSteps
in interface AmazonElasticMapReduce
- Parameters:
addJobFlowStepsRequest
- Container for the necessary parameters
to execute the AddJobFlowSteps service method on
AmazonElasticMapReduce.
- Throws:
InternalServerErrorException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonElasticMapReduce indicating
either a problem with the data in the request, or a server side issue.
terminateJobFlows
public void terminateJobFlows(TerminateJobFlowsRequest terminateJobFlowsRequest)
throws AmazonServiceException,
AmazonClientException
- Specified by:
terminateJobFlows
in interface AmazonElasticMapReduce
- Parameters:
terminateJobFlowsRequest
- Container for the necessary parameters
to execute the TerminateJobFlows service method on
AmazonElasticMapReduce.
- Throws:
InternalServerErrorException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonElasticMapReduce indicating
either a problem with the data in the request, or a server side issue.
describeJobFlows
public DescribeJobFlowsResult describeJobFlows(DescribeJobFlowsRequest describeJobFlowsRequest)
throws AmazonServiceException,
AmazonClientException
- Specified by:
describeJobFlows
in interface AmazonElasticMapReduce
- Parameters:
describeJobFlowsRequest
- Container for the necessary parameters
to execute the DescribeJobFlows service method on
AmazonElasticMapReduce.
- Returns:
- The response from the DescribeJobFlows service method, as
returned by AmazonElasticMapReduce.
- Throws:
InternalServerErrorException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonElasticMapReduce indicating
either a problem with the data in the request, or a server side issue.
runJobFlow
public RunJobFlowResult runJobFlow(RunJobFlowRequest runJobFlowRequest)
throws AmazonServiceException,
AmazonClientException
- Specified by:
runJobFlow
in interface AmazonElasticMapReduce
- Parameters:
runJobFlowRequest
- Container for the necessary parameters to
execute the RunJobFlow service method on AmazonElasticMapReduce.
- Returns:
- The response from the RunJobFlow service method, as returned
by AmazonElasticMapReduce.
- Throws:
InternalServerErrorException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonElasticMapReduce indicating
either a problem with the data in the request, or a server side issue.
describeJobFlows
public DescribeJobFlowsResult describeJobFlows()
throws AmazonServiceException,
AmazonClientException
- Specified by:
describeJobFlows
in interface AmazonElasticMapReduce
- Returns:
- The response from the DescribeJobFlows service method, as
returned by AmazonElasticMapReduce.
- Throws:
InternalServerErrorException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonElasticMapReduce indicating
either a problem with the data in the request, or a server side issue.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.