org.hopto.pentaj.jexin.node
Interface TraceClientObserver

All Known Implementing Classes:
Node

public interface TraceClientObserver

Implementations are notified of client configuration updates and stack frame changes by an observed TraceClient.


Method Summary
 void connected(java.lang.String nodeName, java.util.Map<java.lang.Integer,java.lang.String> injectableExceptions)
          Called when the client is connected
 void disconnected()
          Called when the client is disconnected
 void stackFrameException(long threadId, java.lang.String description)
          Called when the previous stack frame ended throwing an exception
 void stackFrameReturn(long threadId)
          Called when the previous stack frame ended because of a return, not throwing an exception
 InjectableException stackFrameStart(long threadId, java.lang.String threadName, StackFrame stackFrame)
          Called when a new stack frame starts
 

Method Detail

stackFrameStart

InjectableException stackFrameStart(long threadId,
                                    java.lang.String threadName,
                                    StackFrame stackFrame)
Called when a new stack frame starts

Parameters:
threadId -
threadName -
stackFrame -
Returns:
The exception to inject, null to continue without an exception

stackFrameReturn

void stackFrameReturn(long threadId)
Called when the previous stack frame ended because of a return, not throwing an exception

Parameters:
threadId -

stackFrameException

void stackFrameException(long threadId,
                         java.lang.String description)
Called when the previous stack frame ended throwing an exception

Parameters:
threadId -
description - A description of the exception

connected

void connected(java.lang.String nodeName,
               java.util.Map<java.lang.Integer,java.lang.String> injectableExceptions)
Called when the client is connected

Parameters:
nodeName - The name of the node the client is connected to
injectableExceptions - Map of ID to description for exceptions that can be injected for the node

disconnected

void disconnected()
Called when the client is disconnected