public abstract class Job extends Func
| Modifier and Type | Class and Description |
|---|---|
static class |
Job.ChunkProgress |
static class |
Job.ChunkProgressJob |
static class |
Job.ColumnsJob
A job which has an input represented by a frame and frame column filter.
|
static class |
Job.Fail |
static class |
Job.FrameJob
A job which operates with a frame.
|
static class |
Job.HexJob |
static class |
Job.JobCancelledException |
static class |
Job.JobState
Possible job states.
|
static class |
Job.List |
static class |
Job.ModelJob
A job producing a model.
|
static interface |
Job.Progress |
static interface |
Job.ProgressMonitor |
static class |
Job.ValidatedJob
Job which produces model and validate it on a given dataset.
|
Request2.ColumnSelect, Request2.Dependent, Request2.DoClassBoolean, Request2.DRFCopyDataBoolean, Request2.MultiVecSelect, Request2.MultiVecSelectType, Request2.TypeaheadKey, Request2.VecClassSelect, Request2.VecSelectRequest.API, Request.Default, Request.Filter, Request.Validator<V>RequestBuilders.ArrayBuilder, RequestBuilders.ArrayHeaderRowBuilder, RequestBuilders.ArrayRowBuilder, RequestBuilders.ArrayRowElementBuilder, RequestBuilders.ArrayRowSingleColBuilder, RequestBuilders.BooleanStringBuilder, RequestBuilders.Builder, RequestBuilders.ElementBuilder, RequestBuilders.HideBuilder, RequestBuilders.KeyCellBuilder, RequestBuilders.KeyElementBuilder, RequestBuilders.KeyLinkElementBuilder, RequestBuilders.KeyMinAvgMaxBuilder, RequestBuilders.NoCaptionObjectBuilder, RequestBuilders.ObjectBuilder, RequestBuilders.PaginatedTable, RequestBuilders.PreFormattedBuilder, RequestBuilders.Response, RequestBuilders.ResponseInfo, RequestBuilders.WarningCellBuilderRequestArguments.Argument<T>, RequestArguments.Bool, RequestArguments.CaseModeSelect, RequestArguments.CaseSelect, RequestArguments.ClassifyBool, RequestArguments.DRFCopyDataBool, RequestArguments.EnumArgument<T extends java.lang.Enum<T>>, RequestArguments.ExistingFile, RequestArguments.FrameClassVec, RequestArguments.FrameKeyMultiVec, RequestArguments.FrameKeyVec, RequestArguments.GeneralFile, RequestArguments.H2OCategoryStrata, RequestArguments.H2OCategoryWeights, RequestArguments.H2OExistingKey, RequestArguments.H2OGLMModelKey, RequestArguments.H2OHexKey, RequestArguments.H2OHexKeyCol, RequestArguments.H2OIllegalArgumentException, RequestArguments.H2OKey, RequestArguments.H2OKey2, RequestArguments.H2OKMeansModelKey, RequestArguments.H2OModelKey<TM extends OldModel,TK extends TypeaheadKeysRequest>, RequestArguments.HexAllColumnSelect, RequestArguments.HexColumnSelect, RequestArguments.HexKeyClassCol, RequestArguments.HexNonClassColumnSelect, RequestArguments.HexNonConstantColumnSelect, RequestArguments.HexPCAColumnSelect, RequestArguments.InputCheckBox, RequestArguments.InputSelect<T>, RequestArguments.InputText<T>, RequestArguments.Int, RequestArguments.LongInt, RequestArguments.MultipleSelect<T>, RequestArguments.MultipleText<T>, RequestArguments.NTree, RequestArguments.NumberSequence, RequestArguments.NumberSequenceFloat, RequestArguments.Real, RequestArguments.Record<T>, RequestArguments.RFModelKey, RequestArguments.RSeq, RequestArguments.RSeqFloat, RequestArguments.Str, RequestArguments.StringList, RequestArguments.TypeaheadInputText<T>RequestStatics.RequestTypeConstants.Extensions, Constants.Schemes, Constants.Suffixes| Modifier and Type | Field and Description |
|---|---|
H2O.H2OCountedCompleter |
_fjtask |
java.lang.String |
description |
Key |
destination_key |
static DocGen.FieldDoc[] |
DOC_FIELDS |
long |
end_time |
java.lang.String |
exception |
Key |
job_key |
static Key |
LIST
A system key for global list of Job keys.
|
long |
start_time |
Job.JobState |
state |
_parms, response_info_requestHelp, SUPPORTS_ONLY_V1, SUPPORTS_ONLY_V2, SUPPORTS_V1_V2ARRAY_BUILDER, ARRAY_HEADER_ROW_BUILDER, ARRAY_ROW_BUILDER, ARRAY_ROW_ELEMENT_BUILDER, ARRAY_ROW_SINGLECOL_BUILDER, ELEMENT_BUILDER, GSON_BUILDER, OBJECT_BUILDER, ROOT_OBJECT_queryHtml_argumentsALPHA, ARGUMENTS, AUC, BASE, BEST_THRESHOLD, BETA_EPS, BIN_LIMIT, BROWSE, BUCKET, BUILT_IN_KEY_JOBS, CANCELLED, CARDINALITY, CASE, CASE_MODE, CHUNK, CLASS, CLOUD_HEALTH, CLOUD_NAME, CLOUD_SIZE, CLOUD_UPTIME_MILLIS, CLUSTERS, COEFFICIENTS, COL_INDEX, COLS, COLUMN_NAME, COLUMNS_DISPLAY, CONSENSUS, CONTENTS, COUNT, DATA_KEY, DEPTH, DESCRIPTION, DEST_KEY, DTHRESHOLDS, ELAPSED, END_TIME, ENUM_DOMAIN_SIZE, ERROR, ESCAPE_NAN, EXCLUSIVE_SPLIT_LIMIT, EXPRESSION, FAILED, FAMILY, FEATURES, FILE, FILES, FILTER, FIRST_CHUNK, FJ_QUEUE_HI, FJ_QUEUE_LO, FJ_THREADS_HI, FJ_THREADS_LO, FREE_DISK, FREE_MEM, HEADER, HEIGHT, HELP, IGNORE, ITEMS, ITERATIVE_CM, JOB, JOB_KEY, JOBS, JSON_H2O, KEY, KEYS, LAMBDA, LAST_CONTACT, LIMIT, LINK, LOCKED, MAX, MAX_DISK, MAX_ITER, MAX_MEM, MAX_ROWS, MEAN, MIN, MODEL_KEY, MODELS, MORE, MTRY, MTRY_NODES, NAME, NEG_X, NO_CM, NODE, NODE_HEALTH, NODE_NAME, NODES, NORMALIZE, NUM_COLS, NUM_CPUS, NUM_FAILED, NUM_KEYS, NUM_MISSING_VALUES, NUM_ROWS, NUM_SUCCEEDED, NUM_TREES, OBJECT, OFFSET, OOBEE, PARALLEL, PARSER_TYPE, PATH, PREVIEW, PREVIOUS_MODEL_KEY, PROGRESS, PROGRESS_KEY, PROGRESS_TOTAL, REDIRECT, REDIRECT_ARGS, REPLICATION_FACTOR, REQUEST_TIME, RESPONSE, RHO, ROW, ROW_SIZE, ROWS, RPCS, SAMPLE, SAMPLING_STRATEGY, SCALE, SEED, SENT_ROWS, SEPARATOR, SIZE, SOURCE_KEY, STACK_TRACES, START_TIME, STAT_TYPE, STATUS, STEP, STRATA_SAMPLES, SUCCEEDED, SYSTEM_LOAD, TASK_KEY, TCPS_ACTIVE, TCPS_DUTY, TIME, TO_ENUM, TOT_MEM, TREE_COUNT, TREE_DEPTH, TREE_LEAVES, TREE_NUM, TREES, TWEEDIE_POWER, TYPE, URL, USE_NON_LOCAL_DATA, VALUE, VALUE_SIZE, VALUE_TYPE, VARIANCE, VERSION, VIEW, WARNINGS, WEIGHT, WEIGHTS, WIDTH, X, XVAL, Y| Modifier and Type | Method and Description |
|---|---|
static Job[] |
all()
Returns a list of all jobs in a system.
|
void |
cancel()
Signal cancellation of this job.
|
void |
cancel(java.lang.String msg)
Signal exceptional cancellation of this job.
|
void |
cancel(java.lang.Throwable ex)
Signal exceptional cancellation of this job.
|
static boolean |
checkIdx(Frame source,
int[] idx) |
protected Key |
defaultDestKey() |
protected Key |
defaultJobKey() |
Key |
dest() |
static Job |
findJob(Key jobkey)
Finds a job with given key or returns null.
|
static Job |
findJobByDest(Key destKey)
Finds a job with given dest key or returns null
|
Job |
fork()
Forks computation of this job.
|
<T> T |
get()
Blocks and get result of this job.
|
Job.JobState |
getState() |
int |
gridParallelism() |
protected void |
init()
Invoked before job runs.
|
void |
invoke()
Invoke this function in blocking way.
|
boolean |
isCancelledOrCrashed()
Returns true if the job was cancelled by the user or crashed.
|
boolean |
isCancelledXX()
Returns true if the job was cancelled by the user.
|
boolean |
isCrashed()
Returns true if the job was terminated by unexpected exception.
|
boolean |
isDone()
Returns true if this job is correctly finished.
|
static boolean |
isEnded(Key jobkey)
Returns true if job is not running.
|
boolean |
isRunning()
Returns true if this job is running
|
static boolean |
isRunning(Key job_key)
Check if given job is running.
|
protected void |
onCancelled()
Callback which is called after job cancellation (by user, by exception).
|
float |
progress()
Return progress of this job.
|
protected RequestBuilders.Response |
redirect() |
void |
remove()
Marks job as finished and records job end time.
|
long |
runTimeMs()
Returns job execution time in milliseconds.
|
Key |
self() |
protected RequestBuilders.Response |
serve()
Implements UI call.
|
java.lang.String |
speedDescription()
Description of a speed criteria: msecs/frob
|
long |
speedValue()
Value of the described speed criteria: msecs/frob
|
Job |
start(H2O.H2OCountedCompleter fjtask)
Start this task based on given top-level fork-join task representing job computation.
|
static void |
waitUntilJobEnded(Key jobkey)
Block synchronously waiting for a job to end, success or not.
|
static void |
waitUntilJobEnded(Key jobkey,
int pollingIntervalMillis)
Block synchronously waiting for a job to end, success or not.
|
cleanup, emptyLTrash, exec, execImpl, gtrash, gtrash, ltrash, ltrashcreate, fillResponseInfo, input, logStart, makeJsonBox, registered, serveGrid, set, split, superServeGrid, supportedVersions, toJSON, toStringaddToNavbar, addToNavbar, addToNavbar, DocExampleFail, DocExampleSucc, href, href, hrefType, HTMLHelp, htmlTemplate, initializeNavBar, log, mapTypeahead, ReSTHelp, serve, serveJava, serveResponse, toDocGET, toHTML, toJava, wrap, wrap, wrap, writeJSONFieldsbuild, buildJSONResponseBox, buildResponseHeader, namebuildQuery, checkArguments, queryArgumentValueSetarguments, argumentsToJson, frameColumnNameToIndex, vaCategoryNames, vaCategoryNames, vaColumnNameToIndexcheckJsonName, encodeRedirectArgs, JSON2HTML, jsonError, requestName, Str2JSONclone, frozenType, init, newInstance, read, toDocField, write, writeJSONpublic static DocGen.FieldDoc[] DOC_FIELDS
public static final Key LIST
public Key job_key
public Key destination_key
public java.lang.String description
public long start_time
public long end_time
public java.lang.String exception
public Job.JobState state
public transient H2O.H2OCountedCompleter _fjtask
public Key self()
public Key dest()
public int gridParallelism()
protected Key defaultJobKey()
protected Key defaultDestKey()
public Job start(H2O.H2OCountedCompleter fjtask)
fjtask - top-level job computation task.Job.JobState.RUNNING stateJob.JobState,
H2O.H2OCountedCompleterpublic float progress()
public <T> T get()
The call blocks on working task which was passed via #start(H2OCountedCompleter) method
and returns the result which is fetched from UKV based on job destination key.
#start(H2OCountedCompleter),
UKVpublic void cancel()
The job will be switched to state Job.JobState.CANCELLED which signals that
the job was cancelled by a user.
public void cancel(java.lang.Throwable ex)
ex - exception causing the termination of job.public void cancel(java.lang.String msg)
msg - cancellation message explaining reason for cancelationprotected void onCancelled()
public boolean isCancelledOrCrashed()
Job.JobState.CANCELLED or Job.JobState.CRASHEDpublic boolean isCancelledXX()
Job.JobState.CANCELLED.public boolean isCrashed()
public boolean isDone()
public boolean isRunning()
public Job.JobState getState()
public static Job[] all()
public static boolean isRunning(Key job_key)
job_key - job keypublic static boolean isEnded(Key jobkey)
jobkey - job identification keypublic void remove()
public static final Job findJob(Key jobkey)
jobkey - job keypublic static final Job findJobByDest(Key destKey)
public final long runTimeMs()
public java.lang.String speedDescription()
public long speedValue()
protected RequestBuilders.Response serve()
RequestThis should be call only from UI layer - i.e., RequestServer.
serve in class FuncRequestServerprotected RequestBuilders.Response redirect()
public Job fork()
The call does not block.
public void invoke()
Funcprotected void init()
throws java.lang.IllegalArgumentException
public static void waitUntilJobEnded(Key jobkey, int pollingIntervalMillis)
jobkey - Job to wait for.pollingIntervalMillis - Polling interval sleep time.public static void waitUntilJobEnded(Key jobkey)
jobkey - Job to wait for.public static boolean checkIdx(Frame source, int[] idx)