|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.syslib.FarragoKillUDR
public abstract class FarragoKillUDR
FarragoKillUDR defines some system procedures for killing sessions and executing statements. (Technically these are user-defined procedures.) They are intended for use by a system administrator, and are installed by initsql/createMgmtViews.sql
Field Summary | |
---|---|
(package private) static Logger |
tracer
|
Constructor Summary | |
---|---|
FarragoKillUDR()
|
Method Summary | |
---|---|
static void |
killSession(long id)
Kills a running session, destroying it and releasing any resources associated with it. |
static void |
killSession(long id,
boolean cancelOnly)
Kills a running session. |
static void |
killStatement(long id)
Kills an executing statement, destroying it and releasing any resources associated with it. |
static void |
killStatement(long id,
boolean cancelOnly)
Kills an executing statement. |
static void |
killStatementMatch(String s)
Kills all statements executing SQL that matches a given substring. |
static void |
killStatementMatch(String s,
boolean cancelOnly)
Kills all statements executing SQL that matches a given substring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static Logger tracer
Constructor Detail |
---|
public FarragoKillUDR()
Method Detail |
---|
public static void killSession(long id) throws SQLException
id
- unique session identifier
SQLException
public static void killSession(long id, boolean cancelOnly) throws SQLException
id
- unique session identifiercancelOnly
- if true, just cancel current execution; if false,
destroy session
SQLException
public static void killStatement(long id) throws SQLException
id
- unique statement identifier
SQLException
public static void killStatement(long id, boolean cancelOnly) throws SQLException
id
- unique statement identifiercancelOnly
- if true, just cancel current execution; if false,
destroy statement
SQLException
public static void killStatementMatch(String s) throws SQLException
s
- substring to look for in statement SQL text
SQLException
public static void killStatementMatch(String s, boolean cancelOnly) throws SQLException
s
- substring to look for in statement SQL textcancelOnly
- if true, just cancel current execution; if false,
destroy statement
SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |