NetKernel APIs


com.ten60.netkernel.scheduler.debug
Class Debugger

java.lang.Object
  extended bycom.ten60.netkernel.scheduler.debug.Debugger

public class Debugger
extends Object

The debugger has the responsibility of managing the lists of breakpoints and requests stopped by breakpoints. The Scheduler checks with the debugger to see if a request should be stopped.


Constructor Summary
Debugger(Scheduler aScheduler)
          Create an initialise the Debugger
 
Method Summary
 void addBreakpoint(IBreakpoint aBreakpoint)
          Add a new breakpoint
 boolean catchBreakpoint(RequestState aState)
          Called by the Scheduler to see if the current request state matches a breakpoint and should be stopped.
 List getBreakpointedStates()
          Return the list of breakpointed states
 List getBreakpoints()
          return the list of breakpoints
 IDebuggerListener getListener()
           
 URRequest getRootOf(RequestState aState)
          Find the request which initiated the call stack ending in aState.
 RequestState getStateFor(URRequest aRequest)
           
 void release(BreakpointedState aState)
          Release the given state
 void releaseAll()
          Release all breakpointed states
 void removeBreakpoint(IBreakpoint aBreakpoint)
          remove an existing breakpoint
 void setListener(IDebuggerListener aListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debugger

public Debugger(Scheduler aScheduler)
Create an initialise the Debugger

Method Detail

setListener

public void setListener(IDebuggerListener aListener)

getListener

public IDebuggerListener getListener()

addBreakpoint

public void addBreakpoint(IBreakpoint aBreakpoint)
Add a new breakpoint


removeBreakpoint

public void removeBreakpoint(IBreakpoint aBreakpoint)
remove an existing breakpoint


getBreakpoints

public List getBreakpoints()
return the list of breakpoints


catchBreakpoint

public boolean catchBreakpoint(RequestState aState)
Called by the Scheduler to see if the current request state matches a breakpoint and should be stopped. If a breakpoint is found the method returns true and the request is put into either STATE_BREAKPOINT_AFTER or STATE_BREAKPOINT_BEFORE depending upon where it was when it was breakpointed


getBreakpointedStates

public List getBreakpointedStates()
Return the list of breakpointed states


release

public void release(BreakpointedState aState)
Release the given state


releaseAll

public void releaseAll()
Release all breakpointed states


getRootOf

public URRequest getRootOf(RequestState aState)
Find the request which initiated the call stack ending in aState.


getStateFor

public RequestState getStateFor(URRequest aRequest)

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.