public interface IRemoteConnectionManager
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_CONNECTION_NAME
The name of the connection for local services.
|
| Modifier and Type | Method and Description |
|---|---|
IRemoteConnection |
getConnection(String name)
Gets the remote connection corresponding to the supplied name.
|
IRemoteConnection |
getConnection(URI uri)
Gets the remote connection corresponding to the supplied URI.
|
IRemoteConnection[] |
getConnections()
Get all the connections for this service provider.
|
IRemoteConnection |
newConnection(String name)
Creates a new remote connection named with supplied name.
|
void |
removeConnection(IRemoteConnection connection)
Remove a connection and all resources associated with it.
|
static final String LOCAL_CONNECTION_NAME
IRemoteConnection getConnection(String name)
name - name of the connection (as returned by IRemoteConnection.getName())IRemoteConnection getConnection(URI uri)
uri - URI containing a schema for this remote connectionIRemoteConnection[] getConnections()
IRemoteConnection newConnection(String name) throws RemoteConnectionException
name - name of the connectionRemoteConnectionException - if connection creation failedvoid removeConnection(IRemoteConnection connection) throws RemoteConnectionException
connection - connection to removeRemoteConnectionException - if the connection could not be removedCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.