|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.addsimplicity.anicetus.entity.GlobalInfo
org.addsimplicity.anicetus.entity.ExecInfo
public abstract class ExecInfo
ExecInfo provides an execution container for telemetry that has a duration and potentially child telemetry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
protected |
ExecInfo()
Create an ExecInfo without a parent. |
protected |
ExecInfo(GlobalInfo parent)
Create an ExecInfo with the specified telemetry as the parent. |
| Method Summary | |
|---|---|
void |
addChild(GlobalInfo child)
Add a child to this container. |
void |
complete()
Complete the current execution container. |
java.util.Collection<GlobalInfo> |
getChildren()
Return the children of the execution container. |
long |
getDuration()
Get the duration of the execution of the container. |
CompletionStatus |
getStatus()
Return the completion status of the operation. |
void |
setDuration(long duration)
Set the execution time in nanoseconds. |
void |
setStatus(CompletionStatus status)
Set the completion status of the execution. |
void |
startTimer()
Reset the start time of the operation. |
| Methods inherited from class org.addsimplicity.anicetus.entity.GlobalInfo |
|---|
clear, containsKey, containsValue, entrySet, equals, get, getEntityId, getExecutionContext, getMessage, getParentId, getReportingNode, getTimeStamp, hashCode, isEmpty, keySet, put, putAll, remove, setEntityId, setExceptionAsMessage, setExecutionContext, setMessage, setParentId, setReportingNode, setTimeStamp, size, values |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ExecInfo()
protected ExecInfo(GlobalInfo parent)
parent - The telemetry entity that will be considered the parent of this
entity.| Method Detail |
|---|
public void addChild(GlobalInfo child)
addChild in interface TelemetryContainerchild - The entity to add to this container.TelemetryContainer.addChild(org.addsimplicity.anicetus.entity.GlobalInfo)public void complete()
public java.util.Collection<GlobalInfo> getChildren()
getChildren in interface TelemetryContainerpublic long getDuration()
public CompletionStatus getStatus()
public void setDuration(long duration)
duration - The execution time in milliseconds.public void setStatus(CompletionStatus status)
status - The completion status of the execution.public void startTimer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||