public class

ExecutionManager

extends Object
java.lang.Object
   ↳ com.sun.tools.example.debug.bdi.ExecutionManager

Class Overview

Move this towards being only state and functionality that spans across Sessions (and thus VMs).

Summary

Public Constructors
ExecutionManager()
Public Methods
void addApplicationEchoListener(OutputListener l)
void addApplicationErrorListener(OutputListener l)
void addApplicationOutputListener(OutputListener l)
void addDiagnosticsListener(OutputListener l)
void addJDIListener(JDIListener jl)
Adds a JDIListener
void addJDIListener(int index, JDIListener jl)
Adds a JDIListener - at the specified position
void addSessionListener(SessionListener listener)
void addSpecListener(SpecListener cl)
List<ReferenceType> allClasses()
Return a list of ReferenceType objects for all currently loaded classes and interfaces.
List<ThreadReference> allThreads()
void attach(String portName)
AccessWatchpointSpec createAccessWatchpoint(String classPattern, String fieldId)
BreakpointSpec createClassLineBreakpoint(String classPattern, int line)
ExceptionSpec createExceptionIntercept(String classPattern, boolean notifyCaught, boolean notifyUncaught)
BreakpointSpec createMethodBreakpoint(String classPattern, String methodId, List methodArgs)
ModificationWatchpointSpec createModificationWatchpoint(String classPattern, String fieldId)
BreakpointSpec createSourceLineBreakpoint(String sourceName, int line)
void delete(EventRequestSpec spec)
void detach()
Value evaluate(StackFrame f, String expr)
EventRequestManager eventRequestManager()
List eventRequestSpecs()
boolean explictStart(Connector connector, Map<StringConnector.Argument> arguments)
List<ReferenceType> findClassesByName(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.
List<ReferenceType> findClassesMatchingPattern(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 removeApplicationEchoListener(OutputListener l)
void removeApplicationErrorListener(OutputListener l)
void removeApplicationOutputListener(OutputListener l)
void removeDiagnosticsListener(OutputListener l)
void removeJDIListener(JDIListener jl)
Removes a JDIListener
void removeSessionListener(SessionListener listener)
void removeSpecListener(SpecListener cl)
void resumeThread(ThreadReference thread)
void run(boolean suspended, String vmArgs, String className, String args)
void sendLineToApplication(String line)
void setTraceMode(int mode)
Set JDI trace mode.
void stepIntoInstruction(ThreadReference thread)
void stepIntoLine(ThreadReference thread)
void stepOut(ThreadReference thread)
void stepOverInstruction(ThreadReference thread)
void stepOverLine(ThreadReference thread)
void stopThread(ThreadReference thread)
void suspendThread(ThreadReference thread)
ThreadGroupReference systemThreadGroup()
ThreadInfo threadInfo(ThreadReference thread)
List<ThreadGroupReference> topLevelThreadGroups()
VirtualMachine vm()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ExecutionManager ()

Public Methods

public void addApplicationEchoListener (OutputListener l)

public void addApplicationErrorListener (OutputListener l)

public void addApplicationOutputListener (OutputListener l)

public void addDiagnosticsListener (OutputListener l)

public void addJDIListener (JDIListener jl)

Adds a JDIListener

public void addJDIListener (int index, JDIListener jl)

Adds a JDIListener - at the specified position

public void addSessionListener (SessionListener listener)

public void addSpecListener (SpecListener cl)

public List<ReferenceType> allClasses ()

Return a list of ReferenceType objects for all currently loaded classes and interfaces. Array types are not returned.

public List<ThreadReference> allThreads ()

public void attach (String portName)

public AccessWatchpointSpec createAccessWatchpoint (String classPattern, String fieldId)

public BreakpointSpec createClassLineBreakpoint (String classPattern, int line)

public ExceptionSpec createExceptionIntercept (String classPattern, boolean notifyCaught, boolean notifyUncaught)

public BreakpointSpec createMethodBreakpoint (String classPattern, String methodId, List methodArgs)

public ModificationWatchpointSpec createModificationWatchpoint (String classPattern, String fieldId)

public BreakpointSpec createSourceLineBreakpoint (String sourceName, int line)

public void delete (EventRequestSpec spec)

public void detach ()

public EventRequestManager eventRequestManager ()

public List eventRequestSpecs ()

public boolean explictStart (Connector connector, Map<StringConnector.Argument> arguments)

public List<ReferenceType> findClassesByName (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. In general, we must return a list of types, because multiple class loaders could have loaded a class with the same fully-qualified name.

public List<ReferenceType> findClassesMatchingPattern (String pattern)

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.

public int getTraceMode (int mode)

Get JDI trace mode.

public void install (EventRequestSpec spec)

public void interrupt ()

public boolean isInterrupted ()

Determine if VM is interrupted, i.e, present and not running.

public void removeApplicationEchoListener (OutputListener l)

public void removeApplicationErrorListener (OutputListener l)

public void removeApplicationOutputListener (OutputListener l)

public void removeDiagnosticsListener (OutputListener l)

public void removeJDIListener (JDIListener jl)

Removes a JDIListener

public void removeSessionListener (SessionListener listener)

public void removeSpecListener (SpecListener cl)

public void resumeThread (ThreadReference thread)

public void run (boolean suspended, String vmArgs, String className, String args)

public void sendLineToApplication (String line)

public void setTraceMode (int mode)

Set JDI trace mode.

public void stepIntoInstruction (ThreadReference thread)

public void stepIntoLine (ThreadReference thread)

public void stepOut (ThreadReference thread)

public void stepOverInstruction (ThreadReference thread)

public void stepOverLine (ThreadReference thread)

public void stopThread (ThreadReference thread)

public void suspendThread (ThreadReference thread)

public ThreadGroupReference systemThreadGroup ()

public ThreadInfo threadInfo (ThreadReference thread)

public List<ThreadGroupReference> topLevelThreadGroups ()

public VirtualMachine vm ()