public class TaskCommand extends SQLCommand
TASK [SESSION session_id ]
[BEAT code [, trans_id][LOCK lock_id]] |
[LIST [UPDATE_NOTIFY] [MONITOR_LEVEL monitor_level] [MONITORS monitors] [EXCLUDE exclude] ] |
[NEXT code [LOCK lock_id]] |
[START code [KEY start_key] [GROUP trans_group]] |
[END code] |
[ERROR code, error_tx[,trans_id]] |
[UNLOCK code[,lock_id]] |
[DETAIL code[,lock_id]]
Usage/* updates the last tick time */ TASK BEAT alert_mgr /* List the status of the enabled Tasks */ TASK LIST /* Sets the task 'backup' to error. */ TASK ERROR backup, "disk full" /* get the next transaction for this system code */ TASK NEXT /* * starts a task and creates a session id * this command is useful for HA applications */ TASK START abc /* To close a session and allow another HA to start */ TASK SESSION 123 END abc /* To start a task with a locked transaction group */ TASK START export KEY renewals GROUP 123 /* * for non-ha tasks, no session is used, task start and task end * are not used either */ TASK NEXT code TASK BEAT code, trans_id TASK LIST code TASK ERROR code, error_tx, trans_id /* * non-ha tasks can also lock a transaction, which is held until * UNLOCKed or BEAT regardless of heartbeat duration */ TASK NEXT code LOCK lock_id TASK BEAT code, trans_id TASK DETAIL code, lock_id TASK UNLOCK code, lock_id List tasks with monitor level match. TASK LIST MONITOR_LEVEL monitor_level Provides details of requested monitors only. TASK LIST MONITORS monitors Monitors to exclude from the list. TASK LIST EXCLUDE excludeTHREAD MODE: SINGLE THREADED command
CURSOR_SIZE| Constructor and Description |
|---|
TaskCommand(Connection connection,
Pattern pattern)
constructor for TASK command
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Parser p)
execute the command
|
java.lang.String |
getColumnName(int col)
Not mandatory to supply a key for the row as well.
|
java.lang.String |
getColumnType(int col)
get the column type
|
java.lang.String |
getRecordID(int row)
We are at the last row when we return null for the record ID.
|
java.lang.Object |
getValue(int row,
int col)
The value for this column/row
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnlyexecute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawTitlepublic TaskCommand(Connection connection, Pattern pattern)
connection - - connection objectpattern - - Pattern objectprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
CommandBuildResultsPlugincol - column number you are askingpublic java.lang.String getColumnType(int col)
throws java.lang.Exception
CommandBuildResultsPlugincol - column numberjava.lang.Exception - A serious problem.public java.lang.String getRecordID(int row)
CommandBuildResultsPluginrow - numberpublic java.lang.Object getValue(int row,
int col)
throws java.lang.Exception
CommandBuildResultsPluginrow - row id whose value is requiredcol - col id whose value is requiredjava.lang.Exception - A serious problem.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.