public class RemoteConnectionType extends java.lang.Object implements IRemoteConnectionType
IRemoteConnectionType.Service| Constructor and Description |
|---|
RemoteConnectionType(org.eclipse.core.runtime.IConfigurationElement ce,
RemoteServicesManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addService(org.eclipse.core.runtime.IConfigurationElement ce)
Called from the remote service manager to register a service extension for
this remote services implementation
|
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.
|
protected void |
connectionAdded(IRemoteConnection connection)
Signal connection has been added.
|
protected void |
connectionRemoved(IRemoteConnection connection)
Signal a connnection is about to be removed.
|
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.
|
<T extends IRemoteConnection.Service> |
getConnectionService(IRemoteConnection connection,
java.lang.Class<T> service)
Called from the connection to get a service object for that connection.
|
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.
|
<T extends IRemoteProcess.Service> |
getProcessService(IRemoteProcess process,
java.lang.Class<T> service)
Called from the remote process to get a service object for that process.
|
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.
|
public RemoteConnectionType(org.eclipse.core.runtime.IConfigurationElement ce,
RemoteServicesManager manager)
public IRemoteServicesManager getRemoteServicesManager()
IRemoteConnectionTypegetRemoteServicesManager in interface IRemoteConnectionTypepublic java.lang.String getId()
IRemoteConnectionTypegetId in interface IRemoteConnectionTypepublic java.lang.String getName()
IRemoteConnectionTypegetName in interface IRemoteConnectionTypepublic java.lang.String getScheme()
IRemoteConnectionTypegetScheme in interface IRemoteConnectionTypepublic boolean canAdd()
IRemoteConnectionTypecanAdd in interface IRemoteConnectionTypepublic boolean canEdit()
IRemoteConnectionTypecanEdit in interface IRemoteConnectionTypepublic boolean canRemove()
IRemoteConnectionTypecanRemove in interface IRemoteConnectionTypepublic <T extends IRemoteConnectionType.Service> T getService(java.lang.Class<T> service)
IRemoteConnectionTypegetService in interface IRemoteConnectionTypeservice - the interface the required service must implementspublic java.util.List<java.lang.String> getServices()
IRemoteConnectionTypegetServices in interface IRemoteConnectionTypepublic <T extends IRemoteConnectionType.Service> boolean hasService(java.lang.Class<T> service)
IRemoteConnectionTypehasService in interface IRemoteConnectionTypeservice - the service to be testedpublic <T extends IRemoteConnection.Service> T getConnectionService(IRemoteConnection connection, java.lang.Class<T> service)
connection - the connection to which the service appliesservice - the interface the service must implementorg.eclipse.core.runtime.CoreExceptionpublic java.util.List<java.lang.String> getConnectionServices()
IRemoteConnectionTypegetConnectionServices in interface IRemoteConnectionTypepublic <T extends IRemoteConnection.Service> boolean hasConnectionService(java.lang.Class<T> service)
IRemoteConnectionTypehasConnectionService in interface IRemoteConnectionTypeservice - the service to be testedpublic <T extends IRemoteProcess.Service> T getProcessService(IRemoteProcess process, java.lang.Class<T> service)
process - the process to which the service appliesservice - the interface the service must implementorg.eclipse.core.runtime.CoreExceptionpublic java.util.List<java.lang.String> getProcessServices()
IRemoteConnectionTypegetProcessServices in interface IRemoteConnectionTypepublic <T extends IRemoteProcess.Service> boolean hasProcessService(java.lang.Class<T> service)
IRemoteConnectionTypehasProcessService in interface IRemoteConnectionTypeservice - the service to be testedpublic void addService(org.eclipse.core.runtime.IConfigurationElement ce)
ce - the extension element defining the serviceprotected void connectionAdded(IRemoteConnection connection)
protected void connectionRemoved(IRemoteConnection connection)
public IRemoteConnection getConnection(java.lang.String name)
IRemoteConnectionTypegetConnection in interface IRemoteConnectionTypename - name of the connection (as returned by IRemoteConnection.getName())public IRemoteConnection getConnection(java.net.URI uri)
IRemoteConnectionTypegetConnection in interface IRemoteConnectionTypeuri - URI containing a schema for this remote connectionpublic java.util.List<IRemoteConnection> getConnections()
IRemoteConnectionTypegetConnections in interface IRemoteConnectionTypepublic IRemoteConnectionWorkingCopy newConnection(java.lang.String name) throws RemoteConnectionException
IRemoteConnectionTypeIRemoteConnectionWorkingCopy.save() before the
connection can be used.newConnection in interface IRemoteConnectionTypename - name of the connectionRemoteConnectionException - if connection creation failedpublic void removeConnection(IRemoteConnection connection) throws RemoteConnectionException
IRemoteConnectionTyperemoveConnection in interface IRemoteConnectionTypeconnection - connection to removeRemoteConnectionException - if the connection could not be removed