Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

oracle.jbo.script.debug.client.bdi
Class ExecutionManager

java.lang.Object
  extended by oracle.jbo.script.debug.client.bdi.ExecutionManager

public class ExecutionManager
extends java.lang.Object


Constructor Summary
ExecutionManager()
           
 
Method Summary
 void addDiagnosticsListener(OutputListener l)
           
 void addJDIListener(int index, JDIListener jl)
          Adds a JDIListener - at the specified position
 void addJDIListener(JDIListener jl)
          Adds a JDIListener
 void addSessionListener(SessionListener listener)
           
 void addSpecListener(SpecListener cl)
           
 java.util.List allClasses()
          Return a list of ReferenceType objects for all currently loaded classes and interfaces.
 java.util.List allThreads()
           
 void attach(java.lang.String portName)
           
 AccessWatchpointSpec createAccessWatchpoint(java.lang.String classPattern, java.lang.String fieldId)
           
 BreakpointSpec createClassLineBreakpoint(java.lang.String classPattern, int line)
           
 ExceptionSpec createExceptionIntercept(java.lang.String classPattern, boolean notifyCaught, boolean notifyUncaught)
           
 BreakpointSpec createMethodBreakpoint(java.lang.String classPattern, java.lang.String methodId, java.util.List methodArgs)
           
 ModificationWatchpointSpec createModificationWatchpoint(java.lang.String classPattern, java.lang.String fieldId)
           
 BreakpointSpec createSourceLineBreakpoint(java.lang.String sourceName, int line)
           
 void delete(EventRequestSpec spec)
           
 void detach()
           
 com.sun.jdi.Value evaluate(com.sun.jdi.StackFrame f, java.lang.String expr)
           
 com.sun.jdi.request.EventRequestManager eventRequestManager()
           
 java.util.List eventRequestSpecs()
           
 boolean explictStart(com.sun.jdi.connect.Connector connector, java.util.Map arguments)
           
 java.util.List findClassesByName(java.lang.String name)
          Return a ReferenceType object for the currently loaded class or interface whose fully-qualified class name is specified, else return null if there is none.
 java.util.List findClassesMatchingPattern(java.lang.String pattern)
          Return a list of ReferenceType objects for all currently loaded classes and interfaces whose name matches the given pattern.
 int getTraceMode(int mode)
          Get JDI trace mode.
 void go()
           
 void install(EventRequestSpec spec)
           
 void interrupt()
           
 boolean isInterrupted()
          Determine if VM is interrupted, i.e, present and not running.
 void removeDiagnosticsListener(OutputListener l)
           
 void removeJDIListener(JDIListener jl)
          Removes a JDIListener
 void removeSessionListener(SessionListener listener)
           
 void removeSpecListener(SpecListener cl)
           
 void resumeThread(com.sun.jdi.ThreadReference thread)
           
 void setTraceMode(int mode)
          Set JDI trace mode.
 void stepIntoInstruction(com.sun.jdi.ThreadReference thread)
           
 void stepIntoLine(com.sun.jdi.ThreadReference thread)
           
 void stepOut(com.sun.jdi.ThreadReference thread)
           
 void stepOverInstruction(com.sun.jdi.ThreadReference thread)
           
 void stepOverLine(com.sun.jdi.ThreadReference thread)
           
 void stopThread(com.sun.jdi.ThreadReference thread)
           
 void suspendThread(com.sun.jdi.ThreadReference thread)
           
 com.sun.jdi.ThreadGroupReference systemThreadGroup()
           
 ThreadInfo threadInfo(com.sun.jdi.ThreadReference thread)
           
 java.util.List topLevelThreadGroups()
           
 com.sun.jdi.VirtualMachine vm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionManager

public ExecutionManager()
Method Detail

addSessionListener

public void addSessionListener(SessionListener listener)

removeSessionListener

public void removeSessionListener(SessionListener listener)

addSpecListener

public void addSpecListener(SpecListener cl)

removeSpecListener

public void removeSpecListener(SpecListener cl)

addJDIListener

public void addJDIListener(JDIListener jl)
Adds a JDIListener


addJDIListener

public void addJDIListener(int index,
                           JDIListener jl)
Adds a JDIListener - at the specified position


removeJDIListener

public void removeJDIListener(JDIListener jl)
Removes a JDIListener


addDiagnosticsListener

public void addDiagnosticsListener(OutputListener l)

removeDiagnosticsListener

public void removeDiagnosticsListener(OutputListener l)

vm

public com.sun.jdi.VirtualMachine vm()

eventRequestManager

public com.sun.jdi.request.EventRequestManager eventRequestManager()

getTraceMode

public int getTraceMode(int mode)
Get JDI trace mode.


setTraceMode

public void setTraceMode(int mode)
Set JDI trace mode.


isInterrupted

public boolean isInterrupted()
Determine if VM is interrupted, i.e, present and not running.


allClasses

public java.util.List allClasses()
                          throws NoSessionException
Return a list of ReferenceType objects for all currently loaded classes and interfaces. Array types are not returned.

Throws:
NoSessionException

findClassesByName

public java.util.List findClassesByName(java.lang.String name)
                                 throws NoSessionException
Return a ReferenceType object for the currently loaded class or interface whose fully-qualified class name is specified, else return null if there is none. In general, we must return a list of types, because multiple class loaders could have loaded a class with the same fully-qualified name.

Throws:
NoSessionException

findClassesMatchingPattern

public java.util.List findClassesMatchingPattern(java.lang.String pattern)
                                          throws NoSessionException
Return a list of ReferenceType objects for all currently loaded classes and interfaces whose name matches the given pattern. The pattern syntax is open to some future revision, but currently consists of a fully-qualified class name in which the first component may optionally be a "*" character, designating an arbitrary prefix.

Throws:
NoSessionException

allThreads

public java.util.List allThreads()
                          throws NoSessionException
Throws:
NoSessionException

topLevelThreadGroups

public java.util.List topLevelThreadGroups()
                                    throws NoSessionException
Throws:
NoSessionException

systemThreadGroup

public com.sun.jdi.ThreadGroupReference systemThreadGroup()
                                                   throws NoSessionException
Throws:
NoSessionException

evaluate

public com.sun.jdi.Value evaluate(com.sun.jdi.StackFrame f,
                                  java.lang.String expr)
                           throws ParseException,
                                  com.sun.jdi.InvocationException,
                                  com.sun.jdi.InvalidTypeException,
                                  com.sun.jdi.ClassNotLoadedException,
                                  NoSessionException,
                                  com.sun.jdi.IncompatibleThreadStateException
Throws:
ParseException
com.sun.jdi.InvocationException
com.sun.jdi.InvalidTypeException
com.sun.jdi.ClassNotLoadedException
NoSessionException
com.sun.jdi.IncompatibleThreadStateException

attach

public void attach(java.lang.String portName)
            throws VMLaunchFailureException
Throws:
VMLaunchFailureException

explictStart

public boolean explictStart(com.sun.jdi.connect.Connector connector,
                            java.util.Map arguments)
                     throws VMLaunchFailureException
Throws:
VMLaunchFailureException

detach

public void detach()
            throws NoSessionException
Throws:
NoSessionException

interrupt

public void interrupt()
               throws NoSessionException
Throws:
NoSessionException

go

public void go()
        throws NoSessionException,
               VMNotInterruptedException
Throws:
NoSessionException
VMNotInterruptedException

stepIntoInstruction

public void stepIntoInstruction(com.sun.jdi.ThreadReference thread)
                         throws NoSessionException
Throws:
NoSessionException

stepOverInstruction

public void stepOverInstruction(com.sun.jdi.ThreadReference thread)
                         throws NoSessionException
Throws:
NoSessionException

stepIntoLine

public void stepIntoLine(com.sun.jdi.ThreadReference thread)
                  throws NoSessionException,
                         com.sun.jdi.AbsentInformationException
Throws:
NoSessionException
com.sun.jdi.AbsentInformationException

stepOverLine

public void stepOverLine(com.sun.jdi.ThreadReference thread)
                  throws NoSessionException,
                         com.sun.jdi.AbsentInformationException
Throws:
NoSessionException
com.sun.jdi.AbsentInformationException

stepOut

public void stepOut(com.sun.jdi.ThreadReference thread)
             throws NoSessionException
Throws:
NoSessionException

suspendThread

public void suspendThread(com.sun.jdi.ThreadReference thread)
                   throws NoSessionException
Throws:
NoSessionException

resumeThread

public void resumeThread(com.sun.jdi.ThreadReference thread)
                  throws NoSessionException
Throws:
NoSessionException

stopThread

public void stopThread(com.sun.jdi.ThreadReference thread)
                throws NoSessionException
Throws:
NoSessionException

threadInfo

public ThreadInfo threadInfo(com.sun.jdi.ThreadReference thread)

createSourceLineBreakpoint

public BreakpointSpec createSourceLineBreakpoint(java.lang.String sourceName,
                                                 int line)

createClassLineBreakpoint

public BreakpointSpec createClassLineBreakpoint(java.lang.String classPattern,
                                                int line)

createMethodBreakpoint

public BreakpointSpec createMethodBreakpoint(java.lang.String classPattern,
                                             java.lang.String methodId,
                                             java.util.List methodArgs)

createExceptionIntercept

public ExceptionSpec createExceptionIntercept(java.lang.String classPattern,
                                              boolean notifyCaught,
                                              boolean notifyUncaught)

createAccessWatchpoint

public AccessWatchpointSpec createAccessWatchpoint(java.lang.String classPattern,
                                                   java.lang.String fieldId)

createModificationWatchpoint

public ModificationWatchpointSpec createModificationWatchpoint(java.lang.String classPattern,
                                                               java.lang.String fieldId)

delete

public void delete(EventRequestSpec spec)

install

public void install(EventRequestSpec spec)

eventRequestSpecs

public java.util.List eventRequestSpecs()

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

Copyright © 1997, 2013, Oracle. All rights reserved.