|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.server.Execution
public class Execution
Execution context.
Loosely corresponds to a CellSet. A given statement may be executed several times over its lifetime, but at most one execution can be going on at a time.
| Field Summary | |
|---|---|
static Execution |
NONE
|
(package private) StatementImpl |
statement
|
| Constructor Summary | |
|---|---|
Execution(Statement statement,
long timeoutIntervalMillis)
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
void |
checkCancelOrTimeout()
|
void |
cleanStatements()
Called when the execution needs to clean all of its resources for whatever reasons, typically when an exception has occurred or the execution has ended. |
(package private) void |
end()
Called when query execution has completed. |
long |
getElapsedMillis()
|
long |
getId()
|
Statement |
getMondrianStatement()
|
QueryTiming |
getQueryTiming()
|
long |
getStartTime()
|
boolean |
isCancelOrTimeout()
Returns whether this execution is currently in a 'timeout' state and will throw an exception as soon as the next check is performed using checkCancelOrTimeout(). |
void |
registerStatement(Locus locus,
Statement statement)
This method is typically called by SqlStatement at construction time. |
void |
setOutOfMemory(String msg)
|
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final StatementImpl statement
public static final Execution NONE
| Constructor Detail |
|---|
public Execution(Statement statement,
long timeoutIntervalMillis)
| Method Detail |
|---|
public void start()
public void cancel()
public final void setOutOfMemory(String msg)
public void checkCancelOrTimeout()
public boolean isCancelOrTimeout()
checkCancelOrTimeout().
public void cleanStatements()
void end()
public final long getStartTime()
public final Statement getMondrianStatement()
public final QueryTiming getQueryTiming()
public final long getId()
public final long getElapsedMillis()
public void registerStatement(Locus locus,
Statement statement)
statement - The statement used by this execution.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||