|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.operation.monitor.OperationTime org.sormula.operation.monitor.NoOperationTime
public class NoOperationTime
Do nothing implementation when no timings are desired. This class provides a way to omit timing and avoid numerous not null checks in all places where timing is needed.
Constructor Summary | |
---|---|
NoOperationTime()
|
Method Summary | |
---|---|
void |
cancel()
Cancels recording active time. |
void |
pause()
Stops recording the currently active time until OperationTime.resume() is invoked. |
void |
resume()
Starts recording the active time that was paused. |
void |
startExecuteTime()
Starts recording execute time. |
void |
startPrepareTime()
Starts recording prepare time. |
void |
startReadTime()
Starts recording read time. |
void |
startWriteTime()
Starts recording write time. |
void |
stop()
Stops recording the active time that was started with one of the start methods. |
void |
updateSource(java.lang.StackTraceElement stackTraceElement)
Records stack trace information and count where timing is initiated. |
Methods inherited from class org.sormula.operation.monitor.OperationTime |
---|
format, getDescription, getExecuteTime, getPrepareTime, getReadTime, getTimingId, getTotalTime, getWriteTime, logTimings, setDescription, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoOperationTime()
Method Detail |
---|
public void startPrepareTime()
OperationTime
OperationTime.stop()
to stop recording.
startPrepareTime
in class OperationTime
public void startWriteTime()
OperationTime
OperationTime.stop()
to stop recording.
startWriteTime
in class OperationTime
public void startExecuteTime()
OperationTime
OperationTime.stop()
to stop recording.
startExecuteTime
in class OperationTime
public void startReadTime()
OperationTime
OperationTime.stop()
to stop recording.
startReadTime
in class OperationTime
public void stop()
OperationTime
stop
in class OperationTime
public void cancel()
OperationTime
cancel
in class OperationTime
public void pause()
OperationTime
OperationTime.resume()
is invoked. Zero
or more pause/resume pairs may be invoked.
pause
in class OperationTime
public void resume()
OperationTime
resume
in class OperationTime
public void updateSource(java.lang.StackTraceElement stackTraceElement)
OperationTime
updateSource
in class OperationTime
stackTraceElement
- the location on the stack where operation was initiated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |