public class Job
extends java.util.concurrent.CompletableFuture<java.lang.Void>
CompletableFuture
representing an asynchronous operation of the ADB Graph client.Modifier and Type | Class and Description |
---|---|
static class |
Job.LogEntry
A log entry of a job.
|
static class |
Job.Status
The job status
|
static class |
Job.Type
The type of job
|
Constructor and Description |
---|
Job(oracle.pg.rdbms.internal.adb.GraphStudioClient client, long id, java.lang.String name, java.lang.String description, Job.Type type, Job.Status status, java.lang.String createdBy, java.lang.String error, java.util.List<Job.LogEntry> logEntries) |
Modifier and Type | Method and Description |
---|---|
oracle.pg.rdbms.internal.adb.GraphStudioClient |
getClient() |
java.lang.String |
getCreatedBy()
The database username who created this job.
|
java.lang.String |
getDescription()
The job description.
|
java.lang.String |
getError()
An optional error message returned by the server.
|
long |
getId()
The job ID.
|
java.util.List<Job.LogEntry> |
getLogEntries()
List of log entries emitted by this job.
|
java.lang.String |
getName()
The job name.
|
Job.Status |
getStatus()
The job status.
|
Job.Type |
getType()
The job type.
|
Job |
poll()
Starts polling the server using a background thread using
AdbGraphClientConfiguration.getExecutorService() and updates this job's status and log as results come in. |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
public Job(oracle.pg.rdbms.internal.adb.GraphStudioClient client, long id, java.lang.String name, java.lang.String description, Job.Type type, Job.Status status, java.lang.String createdBy, java.lang.String error, java.util.List<Job.LogEntry> logEntries)
public oracle.pg.rdbms.internal.adb.GraphStudioClient getClient()
public java.lang.String getCreatedBy()
public java.lang.String getDescription()
public java.lang.String getError()
public long getId()
public java.util.List<Job.LogEntry> getLogEntries()
public java.lang.String getName()
public Job.Status getStatus()
public Job.Type getType()
public Job poll()
AdbGraphClientConfiguration.getExecutorService()
and updates this job's status and log as results come in. Once job completes, fails or gets cancelled, this CompletableFuture
is marked as such as well. If this job has completed, this method will do nothing.