WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
The Get Rollup Job API can be used to get one or all rollup jobs from the
cluster. It accepts a
GetRollupJobRequest object as a request and returns
GetRollupJobRequest can be built without any parameters to get all of the
rollup jobs or with a job name to get a single job:
The Get Rollup Job API can be executed through a
instance. Such instance can be retrieved from a
GetRollupJobResponse response = client.rollup().getRollupJob(getJob, RequestOptions.DEFAULT);
GetRollupJobResponse includes a
JobWrapper per returned job
which contains the configuration of the job, the job’s current status, and
statistics about the job’s past execution.
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once it is
ActionListener is called back using the
if the execution successfully completed or using the
onFailure method if
A typical listener for
GetRollupJobResponse looks like: