@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSIoTJobsDataPlaneAsyncClient extends AWSIoTJobsDataPlaneClient implements AWSIoTJobsDataPlaneAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.
To create a job, you make a job document which is a description of the remote operations to be performed, and you specify a list of targets that should perform the operations. The targets can be individual things, thing groups or both.
AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the execution of the job by downloading the job document, performing the operations it specifies, and reporting its progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and for all the targets of the job
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, describeJobExecution, getCachedResponseMetadata, getPendingJobExecutions, startNextPendingJobExecution, updateJobExecution
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeJobExecution, getCachedResponseMetadata, getPendingJobExecutions, startNextPendingJobExecution, updateJobExecution
public static AWSIoTJobsDataPlaneAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DescribeJobExecutionResult> describeJobExecutionAsync(DescribeJobExecutionRequest request)
AWSIoTJobsDataPlaneAsync
Gets details of a job execution.
describeJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
public Future<DescribeJobExecutionResult> describeJobExecutionAsync(DescribeJobExecutionRequest request, AsyncHandler<DescribeJobExecutionRequest,DescribeJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsync
Gets details of a job execution.
describeJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPendingJobExecutionsResult> getPendingJobExecutionsAsync(GetPendingJobExecutionsRequest request)
AWSIoTJobsDataPlaneAsync
Gets the list of all jobs for a thing that are not in a terminal status.
getPendingJobExecutionsAsync
in interface AWSIoTJobsDataPlaneAsync
public Future<GetPendingJobExecutionsResult> getPendingJobExecutionsAsync(GetPendingJobExecutionsRequest request, AsyncHandler<GetPendingJobExecutionsRequest,GetPendingJobExecutionsResult> asyncHandler)
AWSIoTJobsDataPlaneAsync
Gets the list of all jobs for a thing that are not in a terminal status.
getPendingJobExecutionsAsync
in interface AWSIoTJobsDataPlaneAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartNextPendingJobExecutionResult> startNextPendingJobExecutionAsync(StartNextPendingJobExecutionRequest request)
AWSIoTJobsDataPlaneAsync
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
startNextPendingJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
public Future<StartNextPendingJobExecutionResult> startNextPendingJobExecutionAsync(StartNextPendingJobExecutionRequest request, AsyncHandler<StartNextPendingJobExecutionRequest,StartNextPendingJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsync
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
startNextPendingJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateJobExecutionResult> updateJobExecutionAsync(UpdateJobExecutionRequest request)
AWSIoTJobsDataPlaneAsync
Updates the status of a job execution.
updateJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
public Future<UpdateJobExecutionResult> updateJobExecutionAsync(UpdateJobExecutionRequest request, AsyncHandler<UpdateJobExecutionRequest,UpdateJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsync
Updates the status of a job execution.
updateJobExecutionAsync
in interface AWSIoTJobsDataPlaneAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSIoTJobsDataPlane
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.