|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.AbstractConnectorService
org.eclipse.rse.core.subsystems.AuthenticatingConnectorService
org.eclipse.rse.ui.subsystems.StandardConnectorService
org.eclipse.rse.connectorservice.dstore.DStoreConnectorService
public class DStoreConnectorService
System class required by the remote systems framework. This represents the live connection at tool runtime.
The universal subsystems are based on datastore technology so we use that to do the connection.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.core.subsystems.AuthenticatingConnectorService |
|---|
credentialsProvider |
| Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
NO_CHILDREN |
| Constructor Summary | |
|---|---|
DStoreConnectorService(String name,
String description,
IHost host)
Constructor when we don't have a subsystem yet. |
|
| Method Summary | |
|---|---|
protected ConnectionStatus |
changePassword(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor,
String newPassword)
Change the password on a remote system and optionally remain connected to it. |
protected org.eclipse.rse.connectorservice.dstore.DStoreConnectorService.ConnectionStatusPair |
connectWithDaemon(SystemSignonInformation info,
IRemoteServerLauncher serverLauncher,
Boolean alertedNONSSL,
IProgressMonitor monitor)
Connection to a server via the RSE daemon. |
protected ConnectionStatus |
connectWithOther(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties serverLauncher,
IProgressMonitor monitor)
Connect via an overridden launchServer method |
protected ConnectionStatus |
connectWithREXEC(SystemSignonInformation info,
IRemoteServerLauncher serverLauncher,
IProgressMonitor monitor)
Connect to the server by using REXEC as a daemon to launch it. |
protected ConnectionStatus |
connectWithRunning(IProgressMonitor monitor)
Connect to a running server. |
protected SystemMessage |
createSystemMessage(String msgId,
int severity,
String msg)
|
protected SystemMessage |
createSystemMessage(String msgId,
int severity,
String msg,
String msgDetails)
|
protected SystemMessage |
createSystemMessage(String msgId,
int severity,
String msg,
Throwable e)
|
String |
getClientIP()
Return the Client IP that the RSE server is connected to. |
DataStore |
getDataStore()
|
String |
getHomeDirectory()
Return the home directory of the remote system for the current user, if available. |
boolean |
getNoLaunchEnabled(SubSystem subsystemImpl)
Deprecated. Use instead AbstractConnectorService.isServerLaunchTypeEnabled(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType) |
IServerLauncher |
getRemoteServerLauncher()
Return the remote server launcher, which implements IServerLauncher. |
IServerLauncherProperties |
getRemoteServerLauncherProperties()
Gets the properties associated with a remote server launcher. |
boolean |
getRexecLaunchEnabled(SubSystem subsystemImpl)
Deprecated. Use instead AbstractConnectorService.isServerLaunchTypeEnabled(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType) |
String |
getServerInstallPath()
Return the location where the RSE server is installed |
int |
getServerMinor()
|
int |
getServerVersion()
|
protected int |
getSocketTimeOutValue()
|
String |
getTempDirectory()
Return the temp directory of the remote system for the current user, if available. |
String |
getVersionReleaseModification()
Return the version, release, modification of the remote system |
protected void |
handleConnectionFailure(ConnectionStatus launchStatus,
ConnectionStatus connectStatus,
IRemoteServerLauncher serverLauncher,
ServerLaunchType serverLauncherType,
IProgressMonitor monitor)
Diagnostics the occurs after the failure of a connect. |
protected void |
importCertsAndReconnect(ConnectionStatus connectStatus,
IProgressMonitor monitor)
|
protected void |
initializeConnection(ConnectionStatus launchStatus,
ConnectionStatus connectStatus,
Boolean alertedNONSSL,
IProgressMonitor monitor)
Initialize the DataStore connection. |
protected void |
internalConnect(IProgressMonitor monitor)
Performs the actual connection to the target system. |
protected void |
internalDisconnect(IProgressMonitor monitor)
Performs the actual disconnection from the target system. |
boolean |
isConnected()
|
boolean |
isNetworkError()
Shortcut to checking if the network is down |
protected boolean |
isNewPasswordInvalid(String message)
|
protected boolean |
isPasswordExpired(String message)
|
protected boolean |
isPortOutOfRange(String message)
|
protected ConnectionStatus |
launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor)
|
protected ConnectionStatus |
launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor,
int timeout)
|
protected ConnectionStatus |
launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties launcher,
IProgressMonitor monitor)
|
protected int |
launchUsingRexec(SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor)
|
protected boolean |
promptForTrusting(X509Certificate cert)
|
boolean |
runClassInstanceRemotely(IRemoteClassInstance instance)
|
protected void |
setPluginPathProperty()
|
void |
setRemoteServerLauncherProperties(IServerLauncherProperties newRemoteServerLauncher)
Do nothing, may be overridden |
protected boolean |
setSSLProperties(boolean enable)
|
boolean |
supportsPassword()
Determines if this connector service understand the concept of a password. |
boolean |
supportsRemoteServerLaunching()
|
boolean |
supportsServerLaunchProperties()
|
boolean |
supportsUserId()
Reports if this connector service can use a user identifier. |
| Methods inherited from class org.eclipse.rse.ui.subsystems.StandardConnectorService |
|---|
getSignonInformation, requiresPassword, requiresUserId |
| Methods inherited from class org.eclipse.rse.core.subsystems.AuthenticatingConnectorService |
|---|
acquireCredentials, clearCredentials, clearPassword, getCredentialsProvider, getUserId, hasPassword, inheritsCredentials, isSuppressed, postDisconnect, removePassword, removeUserId, savePassword, saveUserId, setCredentialsProvider, setPassword, setSuppressed, setUserId, sharesCredentials |
| Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
|---|
addPropertySet, addPropertySets, clonePropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from class org.eclipse.rse.core.model.RSEPersistableObject |
|---|
compareStrings, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| 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, clonePropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| Constructor Detail |
|---|
public DStoreConnectorService(String name,
String description,
IHost host)
| Method Detail |
|---|
public int getServerVersion()
public int getServerMinor()
public String getVersionReleaseModification()
getVersionReleaseModification in interface IConnectorServicegetVersionReleaseModification in class AbstractConnectorServicepublic String getHomeDirectory()
getHomeDirectory in interface IConnectorServicegetHomeDirectory in class AbstractConnectorServiceIConnectorService.getHomeDirectory()public boolean runClassInstanceRemotely(IRemoteClassInstance instance)
public String getServerInstallPath()
public String getClientIP()
public String getTempDirectory()
getTempDirectory in interface IConnectorServicegetTempDirectory in class AbstractConnectorServiceIConnectorService.getTempDirectory()protected int getSocketTimeOutValue()
protected void internalDisconnect(IProgressMonitor monitor)
throws Exception
AbstractConnectorService
internalDisconnect in class AbstractConnectorServicemonitor - for cancellation and progress reporting
Exception - if disconnection does not succeedIConnectorService.disconnect(IProgressMonitor)protected void setPluginPathProperty()
public boolean getRexecLaunchEnabled(SubSystem subsystemImpl)
AbstractConnectorService.isServerLaunchTypeEnabled(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType)
public boolean getNoLaunchEnabled(SubSystem subsystemImpl)
AbstractConnectorService.isServerLaunchTypeEnabled(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType)
public IServerLauncher getRemoteServerLauncher()
getRemoteServerLauncher in interface IConnectorServicegetRemoteServerLauncher in class AbstractConnectorServiceIConnectorService.getRemoteServerLauncher()public IServerLauncherProperties getRemoteServerLauncherProperties()
IConnectorService
getRemoteServerLauncherProperties in interface IConnectorServicegetRemoteServerLauncherProperties in class AbstractConnectorServiceIConnectorService.getRemoteServerLauncherProperties()public void setRemoteServerLauncherProperties(IServerLauncherProperties newRemoteServerLauncher)
AbstractConnectorService
setRemoteServerLauncherProperties in interface IConnectorServicesetRemoteServerLauncherProperties in class AbstractConnectorServicenewRemoteServerLauncher - the server launcher propertiesIConnectorService.setRemoteServerLauncherProperties(IServerLauncherProperties)
protected ConnectionStatus connectWithREXEC(SystemSignonInformation info,
IRemoteServerLauncher serverLauncher,
IProgressMonitor monitor)
throws Exception
info - the signon informationserverLauncher - the server launchermonitor - the progress monitor
Exception
protected org.eclipse.rse.connectorservice.dstore.DStoreConnectorService.ConnectionStatusPair connectWithDaemon(SystemSignonInformation info,
IRemoteServerLauncher serverLauncher,
Boolean alertedNONSSL,
IProgressMonitor monitor)
throws InterruptedException
info - the signon informationserverLauncher - the server launcheralertedNONSSL - indication of whether an alert for NON-ssl has already been issuedmonitor - the progress monitor
InterruptedExceptionprotected ConnectionStatus connectWithRunning(IProgressMonitor monitor)
monitor - the progress monitor
protected ConnectionStatus connectWithOther(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties serverLauncher,
IProgressMonitor monitor)
throws Exception
clientConnection - the clientConnectioninfo - the signon infoserverLauncher - the server launchermonitor - the progress monitor
Exception
protected void initializeConnection(ConnectionStatus launchStatus,
ConnectionStatus connectStatus,
Boolean alertedNONSSL,
IProgressMonitor monitor)
throws Exception
launchStatus - the launch status if the server was launched via the daemon. Otherwise, null.connectStatus - the connect status for the serveralertedNONSSL - a boolean indicating whether the user has been alerted to a NON-ssl connectionmonitor - the status monitor
Exception
protected void handleConnectionFailure(ConnectionStatus launchStatus,
ConnectionStatus connectStatus,
IRemoteServerLauncher serverLauncher,
ServerLaunchType serverLauncherType,
IProgressMonitor monitor)
throws Exception
launchStatus - the status of the launching of the server (if a daemon was used)connectStatus - the status of the connecting to the serverserverLauncher - the server launcherserverLauncherType - the type of server launchermonitor - the progress monitor
Exception
protected void internalConnect(IProgressMonitor monitor)
throws Exception
AbstractConnectorService
internalConnect in class AbstractConnectorServicemonitor - for cancellation and progress reporting
Exception - if connection does not succeedIConnectorService.connect(IProgressMonitor)protected boolean isPortOutOfRange(String message)
protected boolean isPasswordExpired(String message)
protected boolean isNewPasswordInvalid(String message)
protected void importCertsAndReconnect(ConnectionStatus connectStatus,
IProgressMonitor monitor)
throws Exception
Exception
protected int launchUsingRexec(SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor)
throws Exception
Exceptionprotected boolean setSSLProperties(boolean enable)
protected boolean promptForTrusting(X509Certificate cert)
protected ConnectionStatus launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor)
protected ConnectionStatus launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor,
int timeout)
protected ConnectionStatus launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties launcher,
IProgressMonitor monitor)
protected ConnectionStatus changePassword(ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor,
String newPassword)
clientConnection - The connection on which the password must be changedinfo - The old SystemSignonInformation, including the old password.serverLauncherProperties - The properties of the server launcher used to connect to the server. Use this object to get the type of serverlauncher, if your implementation varies depending on the type.monitor - a progress monitornewPassword - the new password to which the old one will be changed.
public boolean isConnected()
isConnected in interface IConnectorServiceIConnectorService.isConnected()public boolean isNetworkError()
public DataStore getDataStore()
getDataStore in interface IDataStoreProviderpublic boolean supportsRemoteServerLaunching()
supportsRemoteServerLaunching in interface IConnectorServicesupportsRemoteServerLaunching in class AbstractConnectorServiceIConnectorService.supportsRemoteServerLaunching()public boolean supportsServerLaunchProperties()
supportsServerLaunchProperties in interface IConnectorServicesupportsServerLaunchProperties in class AbstractConnectorServiceIConnectorService.supportsServerLaunchProperties()public boolean supportsPassword()
StandardConnectorService
supportsPassword in interface IConnectorServicesupportsPassword in class StandardConnectorServiceIConnectorService.supportsPassword()public boolean supportsUserId()
StandardConnectorService
supportsUserId in interface IConnectorServicesupportsUserId in class StandardConnectorServiceIConnectorService.supportsUserId()
protected SystemMessage createSystemMessage(String msgId,
int severity,
String msg)
protected SystemMessage createSystemMessage(String msgId,
int severity,
String msg,
Throwable e)
protected SystemMessage createSystemMessage(String msgId,
int severity,
String msg,
String msgDetails)
|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||