public class DroidCommand extends SQLCommand
DROID [BID queues [TYPE command_name[, ...]] [BLOCK msecs]] | [REGISTER register_name [ATTRIBUTE attributes]] | [ERROR job_id, message_tx [STOP]] | [PROGRESS job_id, message_tx] | [COMPLETE job_id, result_xml [WARNING warning_tx]] | [LOG log_level, message_tx] | [STATUS status_tx]Usage
/* BID for a JOB */ DROID BID excel TYPE EXCEL_PDF /* Record progress on a JOB */ DROID PROGRESS 140002031, '5% complete' /* finish processing the job with an error condition */ DROID ERROR 14000922, 'Could not contact file server' /* complete a job and send back the results */ DROID COMPLETE 14000283, '<DATA>3.142</DATA>' /* make a log entry for this DROID */ DROID LOG 'WARN','Could not load PDF Distiller'; /* Register a DROID */ DROID REGISTER droid12 /* * Record the status of a DROID */ DROID STATUS "could not kill excel";THREAD MODE: SINGLE THREADED command
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_BID
bid for a job
|
static java.lang.String |
TYPE_COMPLETE
complete a job
|
static java.lang.String |
TYPE_ERROR
mark a job in error.
|
static java.lang.String |
TYPE_LOG
Log a message
|
static java.lang.String |
TYPE_PROGRESS
update the progress
|
static java.lang.String |
TYPE_REGISTER
Register a DROID
|
static java.lang.String |
TYPE_STATUS
status of a DROID
|
static java.lang.String |
VARIABLE_COMMAND_NAME
the type code
|
static java.lang.String |
VARIABLE_JOB_ID
The ASCII version of the JOB id
|
static java.lang.String |
VARIABLE_QUEUES
the queue code
|
CURSOR_SIZE
Constructor and Description |
---|
DroidCommand(Connection connection,
Pattern pattern)
constructor for the job command
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser p)
Execute the DROID command.
|
java.lang.String |
getColumnName(int col)
The column name
|
java.lang.String |
getColumnType(int col)
The column type
|
java.lang.String |
getRecordID(int row)
The record ID for this row
|
java.lang.Object |
getValue(int row,
int col)
The value for this row/col
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public static final java.lang.String TYPE_BID
public static final java.lang.String TYPE_COMPLETE
public static final java.lang.String TYPE_ERROR
public static final java.lang.String TYPE_PROGRESS
public static final java.lang.String TYPE_LOG
public static final java.lang.String TYPE_REGISTER
public static final java.lang.String TYPE_STATUS
public static final java.lang.String VARIABLE_JOB_ID
public static final java.lang.String VARIABLE_QUEUES
public static final java.lang.String VARIABLE_COMMAND_NAME
public DroidCommand(Connection connection, Pattern pattern)
connection
- The current connectionpattern
- the command patternprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
col
- offset from 1public java.lang.String getColumnType(int col) throws java.lang.Exception
col
- offset from 1java.lang.Exception
- a serious problempublic java.lang.String getRecordID(int row)
row
- offset from 1public java.lang.Object getValue(int row, int col) throws java.lang.Exception
row
- offset from 1col
- offset from 1java.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.