public interface IRemoteConnectionType
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRemoteConnectionType.Service
The interface that is extend by services provided for this remote services implementation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAdd()
Can you add new connections of this type using the API.
|
boolean |
canEdit()
Can you edit connections of this type, i.e.
|
boolean |
canRemove()
Can you remove connections of this type using the API.
|
IRemoteConnection |
getConnection(java.lang.String name)
Gets the remote connection corresponding to the supplied name.
|
IRemoteConnection |
getConnection(java.net.URI uri)
Gets the remote connection corresponding to the supplied URI.
|
java.util.List<IRemoteConnection> |
getConnections()
Get all the connections for this service provider.
|
java.util.List<java.lang.String> |
getConnectionServices()
Return the list of connection services supported by connections of this type.
|
java.lang.String |
getId()
Get unique ID of this service.
|
java.lang.String |
getName()
Get display name of this service.
|
java.util.List<java.lang.String> |
getProcessServices()
Return the list of process services supported by connections of this type.
|
IRemoteServicesManager |
getRemoteServicesManager()
Get the remote services manager.
|
java.lang.String |
getScheme()
Get the EFS scheme provided by this service.
|
<T extends IRemoteConnectionType.Service> |
getService(java.lang.Class<T> service)
Get the service for this remote services implementation that implements the given interface.
|
java.util.List<java.lang.String> |
getServices()
Return the list of connection type services supported by this type.
|
<T extends IRemoteConnection.Service> |
hasConnectionService(java.lang.Class<T> service)
Do connections created by this connection type support the given service.
|
<T extends IRemoteProcess.Service> |
hasProcessService(java.lang.Class<T> service)
Do processes created by this connection type support the given service.
|
<T extends IRemoteConnectionType.Service> |
hasService(java.lang.Class<T> service)
Does this connection type support the given service.
|
IRemoteConnectionWorkingCopy |
newConnection(java.lang.String name)
Creates a new remote connection named with supplied name.
|
void |
removeConnection(IRemoteConnection connection)
Remove a connection and all resources associated with it.
|
IRemoteServicesManager getRemoteServicesManager()
java.lang.String getId()
java.lang.String getName()
java.lang.String getScheme()
boolean canAdd()
boolean canEdit()
boolean canRemove()
<T extends IRemoteConnectionType.Service> T getService(java.lang.Class<T> service)
service - the interface the required service must implementsorg.eclipse.core.runtime.CoreException<T extends IRemoteConnectionType.Service> boolean hasService(java.lang.Class<T> service)
service - the service to be testedjava.util.List<java.lang.String> getServices()
<T extends IRemoteConnection.Service> boolean hasConnectionService(java.lang.Class<T> service)
service - the service to be testedjava.util.List<java.lang.String> getConnectionServices()
<T extends IRemoteProcess.Service> boolean hasProcessService(java.lang.Class<T> service)
service - the service to be testedjava.util.List<java.lang.String> getProcessServices()
IRemoteConnection getConnection(java.lang.String name)
name - name of the connection (as returned by IRemoteConnection.getName())IRemoteConnection getConnection(java.net.URI uri)
uri - URI containing a schema for this remote connectionjava.util.List<IRemoteConnection> getConnections()
IRemoteConnectionWorkingCopy newConnection(java.lang.String name) throws RemoteConnectionException
IRemoteConnectionWorkingCopy.save() before the
connection can be used.name - name of the connectionRemoteConnectionException - if connection creation failedvoid removeConnection(IRemoteConnection connection) throws RemoteConnectionException
connection - connection to removeRemoteConnectionException - if the connection could not be removed