org.apache.ode.bpel.engine
Class DebuggerSupport

java.lang.Object
  extended by org.apache.ode.bpel.engine.DebuggerSupport
All Implemented Interfaces:
org.apache.ode.bpel.iapi.DebuggerContext

public class DebuggerSupport
extends java.lang.Object
implements org.apache.ode.bpel.iapi.DebuggerContext

Class providing functions used to support debugging funtionality in the BPEL engine. This class serves as the underlying implementation of the BpelManagementFacade interface, and the various MBean interfaces.


Constructor Summary
protected DebuggerSupport(BpelProcess process)
          Constructor.
 
Method Summary
 void addBreakpoint(java.lang.Long pid, org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
           
 void addGlobalBreakpoint(org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
           
 void enable(boolean enabled)
           
 org.apache.ode.bpel.bdi.breaks.Breakpoint[] getBreakpoints(java.lang.Long pid)
           
 org.apache.ode.bpel.bdi.breaks.Breakpoint[] getGlobalBreakpoints()
           
 java.lang.Object getProcessModel()
           
 void onEvent(org.apache.ode.bpel.evt.BpelEvent event)
          Process BPEL events WRT debugging.
 void removeBreakpoint(java.lang.Long pid, org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
           
 void removeGlobalBreakpoint(org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
           
 boolean resume(java.lang.Long iid)
           
 boolean step(java.lang.Long iid)
           
 void suspend(java.lang.Long iid)
           
 void terminate(java.lang.Long iid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebuggerSupport

protected DebuggerSupport(BpelProcess process)
Constructor.

Parameters:
db - BPEL process database
Method Detail

enable

public void enable(boolean enabled)

getGlobalBreakpoints

public org.apache.ode.bpel.bdi.breaks.Breakpoint[] getGlobalBreakpoints()
Specified by:
getGlobalBreakpoints in interface org.apache.ode.bpel.iapi.DebuggerContext

getBreakpoints

public org.apache.ode.bpel.bdi.breaks.Breakpoint[] getBreakpoints(java.lang.Long pid)
Specified by:
getBreakpoints in interface org.apache.ode.bpel.iapi.DebuggerContext

addGlobalBreakpoint

public void addGlobalBreakpoint(org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
Specified by:
addGlobalBreakpoint in interface org.apache.ode.bpel.iapi.DebuggerContext

addBreakpoint

public void addBreakpoint(java.lang.Long pid,
                          org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
Specified by:
addBreakpoint in interface org.apache.ode.bpel.iapi.DebuggerContext

removeGlobalBreakpoint

public void removeGlobalBreakpoint(org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
Specified by:
removeGlobalBreakpoint in interface org.apache.ode.bpel.iapi.DebuggerContext

removeBreakpoint

public void removeBreakpoint(java.lang.Long pid,
                             org.apache.ode.bpel.bdi.breaks.Breakpoint breakpoint)
Specified by:
removeBreakpoint in interface org.apache.ode.bpel.iapi.DebuggerContext

step

public boolean step(java.lang.Long iid)
Specified by:
step in interface org.apache.ode.bpel.iapi.DebuggerContext

onEvent

public void onEvent(org.apache.ode.bpel.evt.BpelEvent event)
Process BPEL events WRT debugging.

Parameters:
event - BPEL event

resume

public boolean resume(java.lang.Long iid)
Specified by:
resume in interface org.apache.ode.bpel.iapi.DebuggerContext

suspend

public void suspend(java.lang.Long iid)
Specified by:
suspend in interface org.apache.ode.bpel.iapi.DebuggerContext

terminate

public void terminate(java.lang.Long iid)
Specified by:
terminate in interface org.apache.ode.bpel.iapi.DebuggerContext

getProcessModel

public java.lang.Object getProcessModel()
Specified by:
getProcessModel in interface org.apache.ode.bpel.iapi.DebuggerContext
Returns:
the process model. Currently an OProcess However it is not guaranteed that it will remain an OProcess in future versions of ODE or for different types of process lanaguage than BPEL.