|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.AbstractConnectorService
org.eclipse.rse.connectorservice.ssh.SshConnectorService
Create SSH connections.
| Nested Class Summary | |
|---|---|
static class |
SshConnectorService.ResponsiveSocketFactory
|
static class |
SshConnectorService.SessionLostHandler
Handle session-lost events. |
static class |
SshConnectorService.SimpleSocketFactory
|
| Nested classes inherited from class org.eclipse.rse.core.subsystems.AbstractConnectorService |
|---|
AbstractConnectorService.NewPasswordInfo |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.core.subsystems.AbstractConnectorService |
|---|
_remoteServerLauncherProperties, connectResult, launchResult, shell |
| Fields inherited from class org.eclipse.rse.core.model.RSEModelObject |
|---|
_isDirty, _wasRestored |
| Fields inherited from interface org.eclipse.rse.core.ISystemUserIdConstants |
|---|
USERID_LOCATION_CONNECTION, USERID_LOCATION_DEFAULT_OVERALL, USERID_LOCATION_DEFAULT_SYSTEMTYPE, USERID_LOCATION_NOTSET, USERID_LOCATION_SUBSYSTEM |
| Constructor Summary | |
|---|---|
SshConnectorService(IHost host)
|
|
| Method Summary | |
|---|---|
static void |
checkCanceled(IProgressMonitor monitor)
Progress Monitor Helper: from team.cvs.core.Policy |
static Socket |
createSocket(String host,
int port,
int timeout,
IProgressMonitor monitor)
Helper method that will time out when making a socket connection. |
com.jcraft.jsch.Session |
getSession()
|
protected static Display |
getStandardDisplay()
|
void |
handleSessionLost()
Notification from sub-services that our session was lost. |
boolean |
hasRemoteServerLauncherProperties()
|
protected void |
internalConnect(IProgressMonitor monitor)
You must override unless subsystem.getParentSubSystemConfiguration().supportsServerLaunchProperties returns true. |
void |
internalDisconnect(IProgressMonitor monitor)
|
boolean |
isConnected()
Return true if currently connected. |
boolean |
requiresPassword()
If a password is supported this is used to determine if the password is required. |
boolean |
supportsRemoteServerLaunching()
|
boolean |
supportsServerLaunchProperties()
Tell us if this subsystem factory supports server launch properties, which allow the user to configure how the server-side code for these subsystems are started. |
| Methods inherited from class org.eclipse.rse.core.model.RSEModelObject |
|---|
compareStrings, isDirty, setDirty, setWasRestored, wasRestored |
| Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer |
|---|
isDirty, setDirty, setWasRestored, wasRestored |
| Constructor Detail |
public SshConnectorService(IHost host)
| Method Detail |
public static void checkCanceled(IProgressMonitor monitor)
monitor -
public static Socket createSocket(String host,
int port,
int timeout,
IProgressMonitor monitor)
throws UnknownHostException,
IOException
host - inetaddress to connect toport - port to connect totimeout - number of seconds for timeout (default=60)monitor - progress monitor
UnknownHostException
IOException
protected void internalConnect(IProgressMonitor monitor)
throws Exception
AbstractConnectorService
Attempt to connect to the remote system.
If the subsystem supports server launch,
the default behavior is to get the remote server launcher by
AbstractConnectorService.getRemoteServerLauncher(), and if IServerLauncher.isLaunched()
returns false, to call IServerLauncher.launch(IProgressMonitor).
This is called, by default, from the connect(...) methods of the subsystem.
internalConnect in class AbstractConnectorServiceException
public void internalDisconnect(IProgressMonitor monitor)
throws Exception
internalDisconnect in class AbstractConnectorServiceExceptionpublic com.jcraft.jsch.Session getSession()
getSession in interface ISshSessionProviderpublic void handleSessionLost()
handleSessionLost in interface ISshSessionProviderprotected static Display getStandardDisplay()
public boolean isConnected()
IConnectorService
isConnected in interface IConnectorServicepublic boolean hasRemoteServerLauncherProperties()
hasRemoteServerLauncherProperties in interface IConnectorServicehasRemoteServerLauncherProperties in class AbstractConnectorServicepublic boolean supportsRemoteServerLaunching()
supportsRemoteServerLaunching in interface IConnectorServicesupportsRemoteServerLaunching in class AbstractConnectorServicepublic boolean supportsServerLaunchProperties()
IConnectorService
supportsServerLaunchProperties in interface IConnectorServicesupportsServerLaunchProperties in class AbstractConnectorServicepublic boolean requiresPassword()
IConnectorService
requiresPassword in interface IConnectorServicerequiresPassword in class AbstractConnectorServiceAbstractConnectorService.requiresPassword()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||