|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hopto.pentaj.jexin.stacktrace.StackFrameProcessor
public class StackFrameProcessor
Implementations process StackFrame
s to build a StackTrace
. Each frame is analyzed to determine if the
StackTrace
to that point matches a StackTraceTemplate
and what the response action should be. If the trace
matches multiple templates to that frame and more than one result in an injected exception then one of the exceptions will be
chosen arbitrarily.
Constructor Summary | |
---|---|
StackFrameProcessor(java.util.List<StackTraceTemplate> matchingTemplates,
java.util.List<InjectableException> injectableExceptions)
|
Method Summary | |
---|---|
void |
pop()
Pops the open StackFrame on a normal return |
void |
pop(java.lang.String exception)
Pops the open StackFrame when an exception is thrown |
InjectableException |
push(StackFrame stackFrame)
Pushes the stackFrame onto the open StackTrace |
InjectableException |
startTrace(StackTraceManager manager,
NodeAddress address,
long threadId,
java.lang.String threadName,
StackFrame rootStackFrame)
Sets the StackTrace that will be compared to the StackTraceTemplate s. |
boolean |
tryCompleteTrace()
If the stack trace is completed it is processed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackFrameProcessor(java.util.List<StackTraceTemplate> matchingTemplates, java.util.List<InjectableException> injectableExceptions)
Method Detail |
---|
public InjectableException startTrace(StackTraceManager manager, NodeAddress address, long threadId, java.lang.String threadName, StackFrame rootStackFrame)
StackTrace
that will be compared to the StackTraceTemplate
s. This should only be called once, as
the first method called after construction. None of the parameters may be null.
manager
- address
- threadId
- threadName
- rootStackFrame
-
public InjectableException push(StackFrame stackFrame)
StackTrace
stackFrame
-
public void pop()
StackFrame
on a normal return
public void pop(java.lang.String exception)
StackFrame
when an exception is thrown
exception
- public boolean tryCompleteTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |