|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public IControlConnection getOrCreateControlConnection(DatabaseIdentifier databaseIdentifier) throws java.sql.SQLException, NoSuchProfileException
databaseIdentifier
- database identifier
java.sql.SQLException
NoSuchProfileException
public IControlConnection getControlConnection(DatabaseIdentifier databaseIdentifier)
databaseIdentifier
- the database identifier
public IControlConnection[] getControlConnections()
public IControlConnection[] getControlConnections(java.lang.String profileName)
profileName
- the connection profile name
public void addControlConnectionListener(IControlConnectionListener listener)
listener
- the event listenerpublic void removeControlConnectionListener(IControlConnectionListener listener)
listener
- the event listenerpublic boolean hasControlConnection()
public void shutdown()
public java.util.HashSet getSkippedConnections(ServerIdentifier serverIdentifier)
serverIdentifier
- the server
public void registerSkippedConnection(ServerIdentifier serverIdentifier, int connid)
serverIdentifier
- the serverconnid
- the skipped connection idpublic void unregisterSkippedConnection(ServerIdentifier serverIdentifier, int connid)
serverIdentifier
- the serverconnid
- the skipped connection idpublic java.util.HashSet getControlConnections(ServerIdentifier serverIdentifier)
public java.util.Map getServerConnectionMap()
public void addResourceDisposeListener(java.lang.String profileName, IResourceDisposeListener resourceDisposeListener)
resourceDisposeListener
- public void removeResourceDisposeListener(java.lang.String profileName)
profileName
- public void fireDispose(java.lang.String profileName)
profileName
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |