/** * Indicates whether the job's results are available by streaming. * * @return {@code true} if results can be streamed, {@code false} if not. */ public boolean getResultIsStreaming() { checkReady(); return getBoolean("resultIsStreaming"); }
/** * Indicates whether the events from this job are available by streaming. * * @return {@code true} if events can be streamed, {@code false} if not. */ public boolean getEventIsStreaming() { checkReady(); return getBoolean("eventIsStreaming"); }
/** * Indicates whether the process running the search is dead but with the * search not finished. * * @return {@code true} if the job is a zombie, {@code false} if not. */ public boolean isZombie() { checkReady(); return getBoolean("isZombie"); }
/** * Indicates whether the job is to be saved indefinitely. * * @return {@code true} if the job has been saved, {@code false} if not. */ public boolean isSaved() { checkReady(); return getBoolean("isSaved"); }
/** * Indicates whether the job failed. * * @return {@code true} if the job failed, {@code false} if not. */ public boolean isFailed() { checkReady(); return getBoolean("isFailed"); }
/** * Indicates whether preview for the job is enabled. * * @return {@code true} if preview is enabled, {@code false} if not. */ public boolean isPreviewEnabled() { checkReady(); return getBoolean("isPreviewEnabled"); }
/** * Indicates whether the job is a real-time search. * * @return {@code true} if the job is a real-time search, {@code false} if * not. */ public boolean isRealTimeSearch() { checkReady(); return getBoolean("isRealTimeSearch"); }
/** * Indicates whether this job was run as a saved search (via scheduler). * * @return {@code true} if the job is from a saved search, {@code false} * if not. */ public boolean isSavedSearch() { checkReady(); return getBoolean("isSavedSearch"); }
/** * Indicates whether any events from this job have not been stored. * @return {@code true} if the event return is truncated, {@code false} if * not. */ public boolean getEventIsTruncated() { checkReady(); return getBoolean("eventIsTruncated"); }
/** * Indicates whether the job is finalized (forced to finish). * * @return {@code true} if the job is finalized, {@code false} if not. */ public boolean isFinalized() { checkReady(); return getBoolean("isFinalized"); }
/** * Indicates whether the job is paused. * * @return {@code true} if the job is paused, {@code false} if not. */ public boolean isPaused() { checkReady(); return getBoolean("isPaused"); }
/** * Indicates whether the job has a remote timeline component. * * @return {@code true} if the job has a remote timeline component, * {@code false} if not. */ public boolean isRemoteTimeline() { checkReady(); return getBoolean("isRemoteTimeline"); }
/** * Indicates whether the job is done. * * @return {@code true} if the job is done, {@code false} if not. */ public boolean isDone() { if (!isReady()) return false; if (!getBoolean("isDone")) { this.refresh(); } return getBoolean("isDone"); }