37 lines
4.0 KiB
HTML
37 lines
4.0 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg"><head><title>BATCH_JOB_EXECUTION</title><link rel="stylesheet" type="text/css" href="docbook-epub.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"/><link rel="prev" href="apbs03.xhtml" title="BATCH_JOB_EXECUTION_PARAMS"/><link rel="next" href="apbs05.xhtml" title="BATCH_STEP_EXECUTION"/></head><body><header/><section class="section" title="BATCH_JOB_EXECUTION" epub:type="division" id="metaDataBatchJobExecution"><div class="titlepage"><div><div><h2 class="title" style="clear: both">BATCH_JOB_EXECUTION</h2></div></div></div><p>The BATCH_JOB_EXECUTION table holds all information relevant to the
|
|
<code class="classname">JobExecution</code> object. Every time a
|
|
<code class="classname">Job</code> is run there will always be a new
|
|
<code class="classname">JobExecution</code>, and a new row in this table:</p><pre class="programlisting">CREATE TABLE BATCH_JOB_EXECUTION (
|
|
JOB_EXECUTION_ID BIGINT PRIMARY KEY ,
|
|
VERSION BIGINT,
|
|
JOB_INSTANCE_ID BIGINT NOT NULL,
|
|
CREATE_TIME TIMESTAMP NOT NULL,
|
|
START_TIME TIMESTAMP DEFAULT NULL,
|
|
END_TIME TIMESTAMP DEFAULT NULL,
|
|
STATUS VARCHAR(10),
|
|
EXIT_CODE VARCHAR(20),
|
|
EXIT_MESSAGE VARCHAR(2500),
|
|
LAST_UPDATED TIMESTAMP,
|
|
JOB_CONFIGURATION_LOCATION VARCHAR(2500) NULL,
|
|
constraint JOB_INSTANCE_EXECUTION_FK foreign key (JOB_INSTANCE_ID)
|
|
references BATCH_JOB_INSTANCE(JOB_INSTANCE_ID)
|
|
) ;</pre><p>Below are descriptions for each column:</p><div class="itemizedlist" epub:type="list"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem" epub:type="list-item"><p>JOB_EXECUTION_ID: Primary key that uniquely identifies this
|
|
execution. The value of this column is obtainable by calling the
|
|
<code class="methodname">getId</code> method of the
|
|
<code class="classname">JobExecution</code> object.</p></li><li class="listitem" epub:type="list-item"><p>VERSION: See above section.</p></li><li class="listitem" epub:type="list-item"><p>JOB_INSTANCE_ID: Foreign key from the BATCH_JOB_INSTANCE table
|
|
indicating the instance to which this execution belongs. There may be
|
|
more than one execution per instance.</p></li><li class="listitem" epub:type="list-item"><p>CREATE_TIME: Timestamp representing the time that the execution
|
|
was created.</p></li><li class="listitem" epub:type="list-item"><p>START_TIME: Timestamp representing the time the execution was
|
|
started.</p></li><li class="listitem" epub:type="list-item"><p>END_TIME: Timestamp representing the time the execution was
|
|
finished, regardless of success or failure. An empty value in this
|
|
column even though the job is not currently running indicates that
|
|
there has been some type of error and the framework was unable to
|
|
perform a last save before failing.</p></li><li class="listitem" epub:type="list-item"><p>STATUS: Character string representing the status of the
|
|
execution. This may be COMPLETED, STARTED, etc. The object
|
|
representation of this column is the
|
|
<code class="classname">BatchStatus</code> enumeration.</p></li><li class="listitem" epub:type="list-item"><p>EXIT_CODE: Character string representing the exit code of the
|
|
execution. In the case of a command line job, this may be converted
|
|
into a number.</p></li><li class="listitem" epub:type="list-item"><p>EXIT_MESSAGE: Character string representing a more detailed
|
|
description of how the job exited. In the case of failure, this might
|
|
include as much of the stack trace as is possible.</p></li><li class="listitem" epub:type="list-item"><p>LAST_UPDATED: Timestamp representing the last time this
|
|
execution was persisted.</p></li></ul></div></section><footer/></body></html> |