|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDebugHandler
To handle all debug related issues. For example, it is responsible for notifying the IThread
that some
connection events occur.
Also, it is responsible for updating the client connections for the External Clients View.
Will hold one instance of this class for each profile.
Method Summary | |
---|---|
void |
addConnectionObserver(int connectionId,
IConnectionObserver connectionObserver)
Adds a connection observer, which will be notified when connection events occur for the corresponding connection |
int |
convertToInternalConnId(java.lang.String externalId,
java.lang.String exteranlName)
As the connection id used inside IControlConnection may be different from those external ids. |
void |
dispose()
Disposes the related resources |
ClientConInfo[] |
getClientConInfos()
Returns the client connections info. |
int |
getNumOfDebugProcess()
Returns the number of debug process which is currently active. |
java.lang.String |
getProfileName()
Returns the profile name |
int[] |
getValidBreakpointLocations(org.eclipse.datatools.sqltools.core.ProcIdentifier proc,
int[] lineNumbers,
org.eclipse.datatools.sqltools.core.IControlConnection controlConnection)
Given the ProcIdentifier and the line numbers, find out the valid line numbers that is greater than number that can set breakpoint. |
boolean |
hasDebuggee()
Checks whether there is registered debuggee. |
void |
init()
Initialize this debug handler, should be called soon after the instance is constructed |
boolean |
isAttached(int connid)
Tests whether the specified connection is attached by debugger |
boolean |
isClientConnectionProvider()
Checks if this instance is external clients view's content provider or not |
java.lang.String |
readyToDebug()
Checks if can debug now |
void |
refreshExternalClients()
Refreshes the client connections immediately |
void |
removeConnectionObserver(int connectionId)
Removes the connection observer for the given connection id |
void |
requestDetach(int connId)
Requests to stop debugging on the specified connection |
void |
setProfileName(java.lang.String profileName)
Set the profile name |
Method Detail |
---|
void init()
void addConnectionObserver(int connectionId, IConnectionObserver connectionObserver)
connectionId
- the id of the connectionconnectionObserver
- when the connection event occurs on the given connectionId, this observer will be notifiedvoid removeConnectionObserver(int connectionId)
connectionId
- the given connection idClientConInfo[] getClientConInfos()
void refreshExternalClients()
void dispose()
java.lang.String readyToDebug()
boolean isAttached(int connid)
connid
-
void requestDetach(int connId)
connId
- boolean hasDebuggee()
boolean isClientConnectionProvider()
java.lang.String getProfileName()
int convertToInternalConnId(java.lang.String externalId, java.lang.String exteranlName) throws org.eclipse.datatools.sqltools.core.ConnectionException
externalId
- external connection idexteranlName
- optional connection name
org.eclipse.datatools.sqltools.core.ConnectionException
int[] getValidBreakpointLocations(org.eclipse.datatools.sqltools.core.ProcIdentifier proc, int[] lineNumbers, org.eclipse.datatools.sqltools.core.IControlConnection controlConnection) throws java.sql.SQLException
proc
- lineNumbers
-
java.sql.SQLException
int getNumOfDebugProcess()
void setProfileName(java.lang.String profileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |