public class StatsPartCommand extends SQLCommand implements CommandBuildResultsAttPlugin
STATSPART [BUILD] | [MEMORY] | [JAVA] | [TASK] | [DBCLASS] | [LINK] | [SOAP] | [THREADPOOL] | [JMS]| [JOB] | [THREAD] | [MEMORYHANDLER] | [DBCONNECTION]| [CLEAR]Usage
STATSPART BUILDTHREAD MODE: SINGLE THREADED command
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COL_BLOCKED
Column Blocked
|
static java.lang.String |
COL_COMMAND
Column Command - Specifies what command is being executed at this time
|
static java.lang.String |
COL_DATABASE_NAME
Column database name - Virtual database name
|
static java.lang.String |
COL_HOST_NAME
Column host name - Hostname from which the connection been established
|
static java.lang.String |
COL_IP_ADDRESS
Column IP Address - From which IP this connection has been established
|
static java.lang.String |
COL_LOGIN_NAME
Colum Login name -require to establish a connection
|
static java.lang.String |
COL_PORT
Column Port
|
static java.lang.String |
COL_PROGRAM_NAME
Column program name - Program that is running this connection
|
static java.lang.String |
COL_SPID
Column SPID
|
static java.lang.String |
COL_STATUS
Column Status - Status of the connection
|
static java.lang.String |
COMMAND_SP_WHO_SYBASE
Command sp
|
protected java.lang.String |
resultClearStats
clear stats
|
CURSOR_SIZE
Constructor and Description |
---|
StatsPartCommand(Connection connection,
Pattern pattern)
std.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser p)
execute the command.
|
java.lang.String[] |
getAttributeNames(int row)
Returns the attribute for the specified row and col
|
java.lang.String[] |
getAttributeNames(int row,
int col)
Returns the attribute for the specified row and col
|
java.lang.String |
getAttributeValue(java.lang.String attribute,
int row)
Returns the attribute for the specified row and col
Example "color:red "
|
java.lang.String |
getAttributeValue(java.lang.String attribute,
int row,
int col)
Returns the attribute for the specified row and col
Example "color:red "
|
java.lang.String |
getColumnName(int col)
the column name
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
void |
makeBuild()
Set the result set of stats build section
|
void |
makeDBClass(MutableDataSource mds)
set the result set for stats Database class section
|
void |
makeDBConnection(MutableDataSource mds)
set the resultset for stats DataBaseConnection section
|
void |
makeJava()
set the resultset for stats java section
|
void |
makeJob(MutableDataSource mds)
set the resultset for stats Job section
|
void |
makeLink()
set the result set for stats Link section
|
void |
makeMemory()
set the resultset for stats memory section
|
void |
makeMemoryHandler()
set the resultset for stats memory handler section
|
void |
makeTask(MutableDataSource mds)
set the resultset for stats Task section
|
void |
makeThread()
set the result set for stats Thread section
|
void |
makeThreadPool()
set the resultset for stats ThreadPool section
|
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 COL_LOGIN_NAME
public static final java.lang.String COL_IP_ADDRESS
public static final java.lang.String COL_HOST_NAME
public static final java.lang.String COL_PROGRAM_NAME
public static final java.lang.String COL_DATABASE_NAME
public static final java.lang.String COL_STATUS
public static final java.lang.String COL_COMMAND
public static final java.lang.String COL_BLOCKED
public static final java.lang.String COL_SPID
public static final java.lang.String COL_PORT
public static final java.lang.String COMMAND_SP_WHO_SYBASE
protected java.lang.String resultClearStats
public StatsPartCommand(Connection connection, Pattern pattern)
connection
- the connectionpattern
- the patternprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
getColumnName
in interface CommandBuildResultsPlugin
col
- the columnpublic java.lang.String getColumnType(int col)
getColumnType
in interface CommandBuildResultsPlugin
col
- the column indexpublic java.lang.String getRecordID(int row)
getRecordID
in interface CommandBuildResultsPlugin
row
- the row indexpublic java.lang.Object getValue(int row, int col)
getValue
in interface CommandBuildResultsPlugin
row
- the row indexcol
- the columnpublic java.lang.String[] getAttributeNames(int row, int col) throws java.lang.Exception
getAttributeNames
in interface CommandBuildResultsAttPlugin
row
- the rowcol
- the columnjava.lang.Exception
- A serious problempublic java.lang.String[] getAttributeNames(int row) throws java.lang.Exception
getAttributeNames
in interface CommandBuildResultsAttPlugin
row
- the rowjava.lang.Exception
- A serious problempublic java.lang.String getAttributeValue(java.lang.String attribute, int row) throws java.lang.Exception
getAttributeValue
in interface CommandBuildResultsAttPlugin
attribute
- the attributerow
- the rowjava.lang.Exception
- A serious problempublic java.lang.String getAttributeValue(java.lang.String attribute, int row, int col) throws java.lang.Exception
getAttributeValue
in interface CommandBuildResultsAttPlugin
attribute
- the attributerow
- the rowcol
- the columnjava.lang.Exception
- A serious problempublic void makeBuild()
public void makeMemory()
public void makeJava()
public void makeTask(MutableDataSource mds) throws java.lang.Exception
mds
- Mutual DataSourcejava.lang.Exception
- Exception is major problempublic void makeDBClass(MutableDataSource mds)
mds
- Mutual DataSourcepublic void makeLink() throws java.lang.Exception
java.lang.Exception
- Exception is major problempublic void makeThread()
public void makeThreadPool()
public void makeJob(MutableDataSource mds)
mds
- Mutual DataSourcepublic void makeMemoryHandler() throws java.lang.InterruptedException
java.lang.InterruptedException
public void makeDBConnection(MutableDataSource mds) throws java.lang.Exception
mds
- Mutual DataSourcejava.lang.Exception
- astSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.