public interface IRemoteServices extends IRemoteServicesDescriptor
RemoteServices
. The methods on this interface can then be used to access the full range of remote services provided.Modifier and Type | Method and Description |
---|---|
IRemoteProcess |
getCommandShell(IRemoteConnection conn,
int flags)
Get a remote process that runs a command shell on the remote system.
|
IRemoteConnectionManager |
getConnectionManager()
Get a connection manager for managing remote connections.
|
IRemoteFileManager |
getFileManager(IRemoteConnection conn)
Get a file manager for managing remote files
|
IRemoteProcessBuilder |
getProcessBuilder(IRemoteConnection conn,
List<String> command)
Get a process builder for creating remote processes
|
IRemoteProcessBuilder |
getProcessBuilder(IRemoteConnection conn,
String... command)
Get a process builder for creating remote processes
|
boolean |
initialize(IProgressMonitor monitor)
Initialize the remote service.
|
canCreateConnections, getId, getName, getScheme
IRemoteConnectionManager getConnectionManager()
IRemoteFileManager getFileManager(IRemoteConnection conn)
conn
- connection to use for managing filesIRemoteProcessBuilder getProcessBuilder(IRemoteConnection conn, List<String> command)
conn
- connection to use for creating remote processesIRemoteProcessBuilder getProcessBuilder(IRemoteConnection conn, String... command)
conn
- connection to use for creating remote processesIRemoteProcess getCommandShell(IRemoteConnection conn, int flags) throws IOException
IRemoteProcessBuilder.getSupportedFlags()
to find out the flags
supported by the service provider.
Current flags are:IRemoteProcessBuilder.NONE
- disable any flagsIRemoteProcessBuilder.ALLOCATE_PTY
- allocate a pseudo-terminal for the process (RFC-4254 Sec. 6.2)IRemoteProcessBuilder.FORWARD_X11
- enable X11 forwarding (RFC-4254 Sec. 6.3)
conn
- connection used for creating the remote processflags
- bitwise-or of flagsIOException
boolean initialize(IProgressMonitor monitor)
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.