org.eclipse.rse.connectorservice.ssh
Class SshConnectorService
java.lang.Object
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.AbstractConnectorService
org.eclipse.rse.connectorservice.ssh.SshConnectorService
- All Implemented Interfaces:
- IConnectorService, IPropertySetContainer, IRSEModelObject, org.eclipse.rse.core.persistance.IRSEPersistableContainer, ISshSessionProvider, ISystemUserIdConstants
- public class SshConnectorService
- extends AbstractConnectorService
- implements ISshSessionProvider
Create SSH connections.
| Methods inherited from class org.eclipse.rse.core.subsystems.AbstractConnectorService |
addCommunicationsListener, clearCommunicationListeners, clearPasswordCache, clearPasswordCache, clearPasswordForOtherSystemsInConnection, clearUserIdCache, commit, connect, deregisterSubSystem, disconnect, fireCommunicationsEvent, forcePasswordToUpperCase, getCommunicationListenerCount, getConnectPort, getDescription, getHomeDirectory, getHost, getHostName, getHostType, getLocalUserId, getName, getPasswordInformation, getPasswordPromptDialog, getPasswordValidator, getPort, getPrimarySubSystem, getRemoteServerLauncher, getRemoteServerLauncherProperties, getSignonValidator, getSubSystems, getTempDirectory, getUserId, getUserIdValidator, getVersionReleaseModification, hasRemoteSearchLauncherProperties, inheritConnectionUserPassword, intializeSubSystems, isEnabledServerLaunchType, isPasswordCached, isPasswordCached, isSuppressSignonPrompt, isUsingSSL, notifyConnection, notifyDisconnection, notifyError, promptForNewPassword, promptForPassword, registerSubSystem, removeCommunicationsListener, requiresUserId, reset, setHost, setIsUsingSSL, setPassword, setPassword, setPasswordInformation, setPort, setRemoteServerLauncherProperties, setSuppressSignonPrompt, setUserId, shareUserPasswordWithConnection, supportsPassword, supportsUserId, unintializeSubSystems, updatePasswordForOtherSystemsInConnection |
| 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.persistance.IRSEPersistableContainer |
isDirty, setDirty, setWasRestored, wasRestored |
SshConnectorService
public SshConnectorService(IHost host)
getSshTimeoutInMillis
protected static int getSshTimeoutInMillis()
internalConnect
protected void internalConnect(IProgressMonitor monitor)
throws Exception
- Description copied from class:
AbstractConnectorService
- You must override
unless subsystem.getParentSubSystemConfiguration().supportsServerLaunchProperties
returns true.
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.
- Overrides:
internalConnect in class AbstractConnectorService
- Throws:
Exception
internalDisconnect
public void internalDisconnect(IProgressMonitor monitor)
throws Exception
- Overrides:
internalDisconnect in class AbstractConnectorService
- Throws:
Exception
getSession
public com.jcraft.jsch.Session getSession()
- Specified by:
getSession in interface ISshSessionProvider
handleSessionLost
public void handleSessionLost()
- Notification from sub-services that our session was lost.
Notify all subsystems properly.
TODO allow user to try and reconnect?
- Specified by:
handleSessionLost in interface ISshSessionProvider
getStandardDisplay
protected static Display getStandardDisplay()
isConnected
public boolean isConnected()
- Description copied from interface:
IConnectorService
- Return true if currently connected.
- Specified by:
isConnected in interface IConnectorService
hasRemoteServerLauncherProperties
public boolean hasRemoteServerLauncherProperties()
- Specified by:
hasRemoteServerLauncherProperties in interface IConnectorService
supportsRemoteServerLaunching
public boolean supportsRemoteServerLaunching()
- Specified by:
supportsRemoteServerLaunching in interface IConnectorService
supportsServerLaunchProperties
public boolean supportsServerLaunchProperties()
- Description copied from interface:
IConnectorService
- 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. There is a Server
Launch Setting property page, with a pluggable composite, where users can configure these
properties.
- Specified by:
supportsServerLaunchProperties in interface IConnectorService
requiresPassword
public boolean requiresPassword()
- Description copied from interface:
IConnectorService
- If a password is supported this is used to determine if the password is required.
Must be ignored if supportsPassword() returns false.
The default implementation of this interface should return true.
- Specified by:
requiresPassword in interface IConnectorService- Overrides:
requiresPassword in class AbstractConnectorService
- Returns:
- false
- See Also:
AbstractConnectorService.requiresPassword()
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.