@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_METRICENDPOINT_PREFIXbuilder, describeJobExecution, getCachedResponseMetadata, getPendingJobExecutions, startNextPendingJobExecution, updateJobExecutionaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescribeJobExecution, getCachedResponseMetadata, getPendingJobExecutions, startNextPendingJobExecution, updateJobExecutionpublic static AWSIoTJobsDataPlaneAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DescribeJobExecutionResult> describeJobExecutionAsync(DescribeJobExecutionRequest request)
AWSIoTJobsDataPlaneAsyncGets details of a job execution.
describeJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncpublic Future<DescribeJobExecutionResult> describeJobExecutionAsync(DescribeJobExecutionRequest request, AsyncHandler<DescribeJobExecutionRequest,DescribeJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsyncGets details of a job execution.
describeJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncasyncHandler - 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)
AWSIoTJobsDataPlaneAsyncGets the list of all jobs for a thing that are not in a terminal status.
getPendingJobExecutionsAsync in interface AWSIoTJobsDataPlaneAsyncpublic Future<GetPendingJobExecutionsResult> getPendingJobExecutionsAsync(GetPendingJobExecutionsRequest request, AsyncHandler<GetPendingJobExecutionsRequest,GetPendingJobExecutionsResult> asyncHandler)
AWSIoTJobsDataPlaneAsyncGets the list of all jobs for a thing that are not in a terminal status.
getPendingJobExecutionsAsync in interface AWSIoTJobsDataPlaneAsyncasyncHandler - 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)
AWSIoTJobsDataPlaneAsyncGets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
startNextPendingJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncpublic Future<StartNextPendingJobExecutionResult> startNextPendingJobExecutionAsync(StartNextPendingJobExecutionRequest request, AsyncHandler<StartNextPendingJobExecutionRequest,StartNextPendingJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsyncGets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
startNextPendingJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncasyncHandler - 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)
AWSIoTJobsDataPlaneAsyncUpdates the status of a job execution.
updateJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncpublic Future<UpdateJobExecutionResult> updateJobExecutionAsync(UpdateJobExecutionRequest request, AsyncHandler<UpdateJobExecutionRequest,UpdateJobExecutionResult> asyncHandler)
AWSIoTJobsDataPlaneAsyncUpdates the status of a job execution.
updateJobExecutionAsync in interface AWSIoTJobsDataPlaneAsyncasyncHandler - 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 AWSIoTJobsDataPlaneshutdown in class AWSIoTJobsDataPlaneClient