|
RSE Release 3.0 |
|||||||||
| 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 org.eclipse.dstore.core.client.ConnectionStatus |
changePassword(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor,
String newPassword)
Change the password on a remote system and optionally remain connected to it. |
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. |
org.eclipse.dstore.core.model.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 |
importCertsAndReconnect(org.eclipse.dstore.core.client.ConnectionStatus connectStatus,
IProgressMonitor monitor)
|
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 org.eclipse.dstore.core.client.ConnectionStatus |
launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor)
|
protected org.eclipse.dstore.core.client.ConnectionStatus |
launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor,
int timeout)
|
protected org.eclipse.dstore.core.client.ConnectionStatus |
launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties launcher,
IProgressMonitor monitor)
|
protected int |
launchUsingRexec(SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties,
IProgressMonitor monitor)
|
protected boolean |
promptForTrusting(X509Certificate cert)
|
boolean |
runClassInstanceRemotely(org.eclipse.dstore.core.java.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, 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, 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(org.eclipse.dstore.core.java.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 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(org.eclipse.dstore.core.client.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 org.eclipse.dstore.core.client.ConnectionStatus launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor)
protected org.eclipse.dstore.core.client.ConnectionStatus launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort,
IProgressMonitor monitor,
int timeout)
protected org.eclipse.dstore.core.client.ConnectionStatus launchServer(org.eclipse.dstore.core.client.ClientConnection clientConnection,
SystemSignonInformation info,
IServerLauncherProperties launcher,
IProgressMonitor monitor)
protected org.eclipse.dstore.core.client.ConnectionStatus changePassword(org.eclipse.dstore.core.client.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 org.eclipse.dstore.core.model.DataStore getDataStore()
getDataStore in interface org.eclipse.dstore.core.model.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.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||