|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbr.com.oncast.dev.lobo.eval.ExecutionContext
public class ExecutionContext
Controls the information collected during profiling evaluation.
| Method Summary | |
|---|---|
void |
endMetric(java.lang.String metricName)
Ends a metric interval on the metric identified by metricName. |
void |
endMetricIfOpened(java.lang.String metricName)
Ends a metric interval on the metric identified by metricName if opened. |
static ExecutionContext |
getInstance()
Returns the singleton's instance. |
ProfileReport |
getReport()
Returns the last report evaluated. |
void |
reset()
Resets the execution context. |
void |
startMetric(java.lang.String metricName,
MetricType type)
Starts a metric interval evaluation. |
void |
switchCase(java.lang.Class<?> clazz)
Switches the case being evaluated. |
void |
switchMetric(java.lang.String metricName)
Switches metric intervals on the metric identified by metricName.It first closes the referred metric and then closes it, but in a faster away. |
void |
switchScenario(java.lang.reflect.Method method)
Swithces the scenario being evaluated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExecutionContext getInstance()
public void switchCase(java.lang.Class<?> clazz)
clazz - the class that codes the profile case.public void switchScenario(java.lang.reflect.Method method)
method - the method that codes the profile scenario.
public void startMetric(java.lang.String metricName,
MetricType type)
metricName - the name of the metric to have its interval evaluation started.type - the type of the metric.public void switchMetric(java.lang.String metricName)
metricName.
metricName - the name of the metric to be switched.
public void endMetric(java.lang.String metricName)
throws MetricIntervalUnstartedException
metricName.
metricName - the name of the metric to have its last interval ended.
MetricIntervalUnstartedException - if the metric had no opened metric intervals.public void endMetricIfOpened(java.lang.String metricName)
metricName if opened.
metricName - the name of the metric to have its last interval ended.public ProfileReport getReport()
public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||