|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.ogsadai.trace.RequestTrace
public class RequestTrace
Stores trace information for a request.
| Field Summary | |
|---|---|
protected java.lang.String |
mDotExecutable
Path to the dot executable that is used to produce the SVG file. |
protected DAIException |
mError
Any error associated with the request. |
protected java.util.List<ActivityPipeline> |
mPipelines
Pipelines of the request. |
protected java.util.Map<java.lang.String,PipeTrace> |
mPipeTraces
Traces for each pipe used by the request. |
protected java.lang.String |
mRelativePathToTraceDirectory
The relative path to the trace directory from the web app directory. |
protected RequestExecutionStatus |
mRequestExecutionStatus
Request execution status. |
protected ResourceID |
mRequestID
Request ID. |
protected java.io.File |
mSvgFile
The SVG file that displays the trace. |
protected java.lang.String |
mSvgUrl
The relative URL to the trace SVG file. |
protected java.util.Date |
mTimestamp
Timestamp the request was created. |
protected java.io.File |
mTraceDirectory
The trace directory for logging trace files. |
| Constructor Summary | |
|---|---|
RequestTrace(ResourceID requestID,
SecurityContext securityContext,
java.io.File traceDirectory,
java.lang.String relativePathToTraceDirectory,
java.lang.String dotExecutable)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addPipeline(ActivityPipeline pipeline)
Adds a pipeline to the request. |
int |
compareTo(java.lang.Object o)
|
void |
destroy()
Destroys the trace and deletes any corresponding trace files. |
DAIException |
getError()
Gets any error associated with the request. |
RequestExecutionStatus |
getExecutionStatus()
Gets the request execution status. |
protected PipeTrace |
getPipeTrace(Pipe pipe)
Gets the pipe trace for the given pipe. |
ResourceID |
getRequestID()
Gets the ID of the request. |
java.lang.String |
getSvgUrl()
Gets the URL of the SVG file that displays the trace. |
java.util.Date |
getTimestamp()
Gets the timestamp when the request was created. |
void |
pipeAddBlockRead(Pipe pipe,
java.lang.Object block)
Called when a block has been read by a pipe. |
void |
pipeAddBlockWritten(Pipe pipe,
java.lang.Object block)
Called when a block has been written to a pipe. |
void |
pipeClosedByConsumer(Pipe pipe)
Called when a pipe has been closed by the consumer. |
void |
pipeClosedByProducer(Pipe pipe)
Called when a pipe has been closed by the producer. |
void |
pipeClosedByProducerDueToError(Pipe pipe)
Called when a pipe has been closed by the producer due to an error. |
void |
pipeError(Pipe pipe,
PipeIOException cause)
Called when there is a pipe error. |
void |
pipeTerminated(Pipe pipe)
Called when a pipe has been terminated. |
void |
setError(DAIException error)
Sets an error for the request. |
void |
setExecutionStatus(RequestExecutionStatus status)
Sets the request execution status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ResourceID mRequestID
protected RequestExecutionStatus mRequestExecutionStatus
protected DAIException mError
protected java.util.Date mTimestamp
protected java.util.List<ActivityPipeline> mPipelines
protected java.util.Map<java.lang.String,PipeTrace> mPipeTraces
protected java.io.File mTraceDirectory
protected java.lang.String mRelativePathToTraceDirectory
protected java.io.File mSvgFile
protected java.lang.String mSvgUrl
protected java.lang.String mDotExecutable
| Constructor Detail |
|---|
public RequestTrace(ResourceID requestID,
SecurityContext securityContext,
java.io.File traceDirectory,
java.lang.String relativePathToTraceDirectory,
java.lang.String dotExecutable)
requestID - ID of the request being tracedsecurityContext - security contexttraceDirectory - directory used to store trace filesrelativePathToTraceDirectory - relative path to the trace directory from the web apps directorydotExecutable - path to the dot executable used to produce SVG files| Method Detail |
|---|
public void destroy()
public java.util.Date getTimestamp()
public void setExecutionStatus(RequestExecutionStatus status)
status - execution status.public RequestExecutionStatus getExecutionStatus()
public void setError(DAIException error)
error - the errorpublic DAIException getError()
public void addPipeline(ActivityPipeline pipeline)
pipeline - pipelinepublic java.lang.String getSvgUrl()
public ResourceID getRequestID()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
public void pipeAddBlockRead(Pipe pipe,
java.lang.Object block)
pipe - pipeblock - block
public void pipeAddBlockWritten(Pipe pipe,
java.lang.Object block)
pipe - pipeblock - blockpublic void pipeClosedByProducer(Pipe pipe)
pipe - pipepublic void pipeClosedByConsumer(Pipe pipe)
pipe - pipepublic void pipeClosedByProducerDueToError(Pipe pipe)
pipe - pipe
public void pipeError(Pipe pipe,
PipeIOException cause)
pipe - pipepublic void pipeTerminated(Pipe pipe)
pipe - pipeprotected PipeTrace getPipeTrace(Pipe pipe)
pipe - pipe
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||