jde.debugger.command
Class SessionCommandHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jde.debugger.command.CommandHandler
              |
              +--jde.debugger.command.SessionCommandHandler
All Implemented Interfaces:
Protocol, java.lang.Runnable

public class SessionCommandHandler
extends CommandHandler

A command handler that handles only instances of DebugSessionCommand. There should really only be one instance of this class, under the control of the session manager, but there are no checks to ensure this.

Created: Tue Jan 08 11:23:20 2002

Version:
1.0
Author:
Petter Måhlén
See Also:
DebugSessionCommand

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
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
SessionCommandHandler()
           
 
Method Summary
 java.lang.Integer getProcID()
           
 void handle(DebugCommand cmd)
          Method for other threads/objects to use to ask the command handler to deal with the given DebugCommand.
 
Methods inherited from class jde.debugger.command.CommandHandler
addCommandListener, fireCommandEvent, queue, removeCommandListener, requestStop, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionCommandHandler

public SessionCommandHandler()
Method Detail

handle

public void handle(DebugCommand cmd)
            throws JDEException
Method for other threads/objects to use to ask the command handler to deal with the given DebugCommand. This method checks that the command is a DebugSessionCommand, and then queues the command for further processing.
Overrides:
handle in class CommandHandler
Parameters:
cmd - a DebugCommand value
Throws:
JDEException - if an error occurs
See Also:
DebugCommand, DebugSessionCommand

getProcID

public java.lang.Integer getProcID()
Overrides:
getProcID in class CommandHandler