|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IControlConnectionManager
This interface is for manage all control connections. You should get a refrence to this interface through:
dmpplugin.getControlConnectionManager()
It's not intended to be implemented by clients.
| Method Summary | |
|---|---|
void |
addControlConnectionListener(IControlConnectionListener listener)
Adds an IControlConnectionListener to receive the control connection update events |
void |
addResourceDisposeListener(java.lang.String profileName,
IResourceDisposeListener resourceDisposeListener)
Adds a resource dispose listener, the specified method will be called when the profile is closing |
void |
fireDispose(java.lang.String profileName)
Disposes the resources of the given profile |
IControlConnection |
getControlConnection(DatabaseIdentifier databaseIdentifier)
Checks whether there is a controlconnection exists for the specified database identifier. |
IControlConnection[] |
getControlConnections()
Retrieves all controlconnections registered in this control connection manager |
java.util.HashSet |
getControlConnections(ServerIdentifier serverIdentifier)
Returns the control connections set for the given server identifier |
IControlConnection[] |
getControlConnections(java.lang.String profileName)
Checks whether there are control connections exist for the specified connection profile. |
IControlConnection |
getOrCreateControlConnection(DatabaseIdentifier databaseIdentifier)
Gets an controlconnection given the profile. |
java.util.Map |
getServerConnectionMap()
Returns the map from server ids to control connections |
java.util.HashSet |
getSkippedConnections(ServerIdentifier serverIdentifier)
Returns the skipped connections of the specified server |
boolean |
hasControlConnection()
Whether there's registered control connection |
void |
registerSkippedConnection(ServerIdentifier serverIdentifier,
int connid)
Registers the given connection id as a skipped connection for the specified server |
void |
removeControlConnectionListener(IControlConnectionListener listener)
Removes an IControlConnectionListener from receiving the control connection update events |
void |
removeResourceDisposeListener(java.lang.String profileName)
Removes the given listener |
void |
shutdown()
Shuts down this control connection manager. |
void |
unregisterSkippedConnection(ServerIdentifier serverIdentifier,
int connid)
Unregisters the given connection id as a skipped connection for the specified server |
| Method Detail |
|---|
IControlConnection getOrCreateControlConnection(DatabaseIdentifier databaseIdentifier)
throws java.sql.SQLException,
NoSuchProfileException
databaseIdentifier - database identifier
java.sql.SQLException
NoSuchProfileExceptionIControlConnection getControlConnection(DatabaseIdentifier databaseIdentifier)
databaseIdentifier - the database identifier
IControlConnection[] getControlConnections()
IControlConnection[] getControlConnections(java.lang.String profileName)
profileName - the connection profile name
void addControlConnectionListener(IControlConnectionListener listener)
listener - the event listenervoid removeControlConnectionListener(IControlConnectionListener listener)
listener - the event listenerboolean hasControlConnection()
void shutdown()
java.util.HashSet getSkippedConnections(ServerIdentifier serverIdentifier)
serverIdentifier - the server
void registerSkippedConnection(ServerIdentifier serverIdentifier,
int connid)
serverIdentifier - the serverconnid - the skipped connection id
void unregisterSkippedConnection(ServerIdentifier serverIdentifier,
int connid)
serverIdentifier - the serverconnid - the skipped connection idjava.util.HashSet getControlConnections(ServerIdentifier serverIdentifier)
java.util.Map getServerConnectionMap()
void addResourceDisposeListener(java.lang.String profileName,
IResourceDisposeListener resourceDisposeListener)
resourceDisposeListener - void removeResourceDisposeListener(java.lang.String profileName)
profileName - void fireDispose(java.lang.String profileName)
profileName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||