|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jde.debugger.SessionManager
The session manager keeps track of which debugging sessions are
currently active and handled by which debuggers. There is also a
special debug command handler thread which is handled by the
SessionManager (#m_handler
). It's a singleton object that
exposes only a set of static interface functions.
Created: Tue Jan 08 13:19:51 2002
Method Summary | |
static void |
deregisterDebugger(Debugger debugger)
Deregisters the given debugger. |
static java.lang.Long |
generateObjectID()
Generates a unique number with each call (unique for each time that this class is loaded, not in any wider sense). |
static CommandHandler |
getCommandHandler(java.lang.Integer procID)
Returns the command handler for a given process ID. |
static Debugger |
getDebugger(java.lang.Integer procID)
Returns the Debugger object for a given process ID. |
static void |
registerDebugger(Debugger debugger)
Registers the given Debugger as active. |
static void |
shutdown()
Shuts down the SessionManager, by first shutting down each registered Debugger, and then shutting down the session command handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CommandHandler getCommandHandler(java.lang.Integer procID) throws JDEException
procID
- an Integer
valueCommandHandler
valueJDEException
- if there is no registered debugger for
the given process IDProcessCommandHandler
,
Debugger
public static Debugger getDebugger(java.lang.Integer procID) throws JDEException
procID
- an Integer
valueDebugger
valueJDEException
- if there is no registered debugger for
the given process IDDebugger
public static void registerDebugger(Debugger debugger) throws JDEException
getDebugger(java.lang.Integer)
and getCommandHandler(java.lang.Integer)
methods.debugger
- a Debugger
valueJDEException
- if there is already a registered
debugger with the same process ID.public static void deregisterDebugger(Debugger debugger) throws JDEException
debugger
- a Debugger
valueJDEException
- if the debugger hasn't been registered
previously, or if the debugger is still valid, as indicated by
the Debugger.isValid()
method.public static void shutdown()
public static java.lang.Long generateObjectID()
Long
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |