jde.debugger
Class ProcessCommands

java.lang.Object
  |
  +--jde.debugger.ProcessCommands
All Implemented Interfaces:
Protocol

public abstract class ProcessCommands
extends java.lang.Object
implements Protocol

ApplicationCommands.java

An abstract class that must be implemented by classes that process commands from the jde side.

Created: Fri Jul 30 17:13:57 1999

Since:
0.1
Author:
Amit Kumar

Field Summary
protected  java.util.Map identifiableEventRequests
          This map stores the event requests that are NOT specs.
 
Fields inherited from interface jde.debugger.Protocol
APP_IO, ATTACH_SHMEM, ATTACH_SOCKET, BR, BREAK, CANCEL_TRACE_CLASSES, CANCEL_TRACE_METHODS, CANCEL_TRACE_THREADS, CLEAR, CMD_NOK, CMD_OK, COMMAND_ERROR, COMMAND_RESULT, COMMANDS, CONNECTED_TO_VM, DEBUG, ERROR, EVALUATE, EVENT_BREAKPOINT_HIT, EVENT_CLASS_PREPARE, EVENT_CLASS_UNLOAD, EVENT_EXCEPTION, EVENT_METHOD_ENTRY, EVENT_METHOD_EXIT, EVENT_OTHER, EVENT_STEP_COMPLETED, EVENT_THREAD_DEATH, EVENT_THREAD_START, EVENT_VM_DEATH, EVENT_VM_DISCONNECT, EVENT_VM_START, EVENT_WATCHPOINT_HIT, EVENTS, EVENTSET, EXCEPTION, EXIT, FINISH, FRAMEWORK, GET_ARRAY, GET_LOADED_CLASSES, GET_LOCALS, GET_OBJECT, GET_OBJECT_MONITORS, GET_PATH_INFORMATION, GET_STRING, GET_THREAD, GET_THREADS, GUI, INTERRUPT, INVALID, JDE_BUG, JDE_INIT_DEBUG_SESSION, JDE_PIPE, KILL_THREAD, LAUNCH, LISTEN_SHMEM, LISTEN_SOCKET, MESSAGE, NONE, NOQUOTE, QUIT, QUOTE, REPORT_IDS_IN_USE, RESUME, RUN, SPEC_RESOLVED, STEP, SUSPEND, TRACE_CLASSES, TRACE_EXCEPTIONS, TRACE_METHODS, TRACE_THREADS, WARNING, WATCH
 
Constructor Summary
ProcessCommands(DebuggeeProcess p, ObjectStore s)
           
 
Method Summary
protected  java.lang.Long addIdentifiableRequest(com.sun.jdi.request.EventRequest e)
          Adds an event request to the above map.
protected  void deleteIdentifiableRequest(java.lang.Long id)
          Removes an event request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifiableEventRequests

protected java.util.Map identifiableEventRequests
This map stores the event requests that are NOT specs. storing it here allows the user to cancel them easily: they just specify the id, that gets reverse-looked up here, uniquely identifying the actual request.

Of course, the id is sent back to the user when the actual command is responded to, so that the handle is available to jde in the first place

Constructor Detail

ProcessCommands

public ProcessCommands(DebuggeeProcess p,
                       ObjectStore s)
Method Detail

addIdentifiableRequest

protected java.lang.Long addIdentifiableRequest(com.sun.jdi.request.EventRequest e)
Adds an event request to the above map. Also enables the request.
Returns:
an identifier for the request

deleteIdentifiableRequest

protected void deleteIdentifiableRequest(java.lang.Long id)
                                  throws JDEException
Removes an event request. Also disables/deletes from the vm.