Package org.eclipse.remote.core
Interface IRemoteConnectionControlService
- All Superinterfaces:
IRemoteConnection.Service
- All Known Implementing Classes:
TelnetConnection
A service to control and report on the state of a connection, open or closed.
Connections that do not provide this service are always assumed to be opened.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.remote.core.IRemoteConnection.Service
IRemoteConnection.Service.Factory
-
Method Summary
Methods inherited from interface org.eclipse.remote.core.IRemoteConnection.Service
getRemoteConnection
-
Method Details
-
open
Open the connection. Must be called before the connection can be used.- Parameters:
monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to call done() on the given monitor. Accepts null, indicating that no progress should be reported and that the operation cannot be cancelled.- Throws:
RemoteConnectionException
-
close
void close()Close the connection. Must be called to terminate the connection. -
isOpen
boolean isOpen()Test if the connection is open.- Returns:
- true if connection is open.
-