|
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 IConnectorService
getVersionReleaseModification
in class AbstractConnectorService
public String getHomeDirectory()
getHomeDirectory
in interface IConnectorService
getHomeDirectory
in class AbstractConnectorService
IConnectorService.getHomeDirectory()
public boolean runClassInstanceRemotely(org.eclipse.dstore.core.java.IRemoteClassInstance instance)
public String getServerInstallPath()
public String getClientIP()
public String getTempDirectory()
getTempDirectory
in interface IConnectorService
getTempDirectory
in class AbstractConnectorService
IConnectorService.getTempDirectory()
protected int getSocketTimeOutValue()
protected void internalDisconnect(IProgressMonitor monitor) throws Exception
AbstractConnectorService
internalDisconnect
in class AbstractConnectorService
monitor
- 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 IConnectorService
getRemoteServerLauncher
in class AbstractConnectorService
IConnectorService.getRemoteServerLauncher()
public IServerLauncherProperties getRemoteServerLauncherProperties()
IConnectorService
getRemoteServerLauncherProperties
in interface IConnectorService
getRemoteServerLauncherProperties
in class AbstractConnectorService
IConnectorService.getRemoteServerLauncherProperties()
public void setRemoteServerLauncherProperties(IServerLauncherProperties newRemoteServerLauncher)
AbstractConnectorService
setRemoteServerLauncherProperties
in interface IConnectorService
setRemoteServerLauncherProperties
in class AbstractConnectorService
newRemoteServerLauncher
- the server launcher propertiesIConnectorService.setRemoteServerLauncherProperties(IServerLauncherProperties)
protected void internalConnect(IProgressMonitor monitor) throws Exception
AbstractConnectorService
internalConnect
in class AbstractConnectorService
monitor
- 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
Exception
protected 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 IConnectorService
IConnectorService.isConnected()
public boolean isNetworkError()
public org.eclipse.dstore.core.model.DataStore getDataStore()
getDataStore
in interface org.eclipse.dstore.core.model.IDataStoreProvider
public boolean supportsRemoteServerLaunching()
supportsRemoteServerLaunching
in interface IConnectorService
supportsRemoteServerLaunching
in class AbstractConnectorService
IConnectorService.supportsRemoteServerLaunching()
public boolean supportsServerLaunchProperties()
supportsServerLaunchProperties
in interface IConnectorService
supportsServerLaunchProperties
in class AbstractConnectorService
IConnectorService.supportsServerLaunchProperties()
public boolean supportsPassword()
StandardConnectorService
supportsPassword
in interface IConnectorService
supportsPassword
in class StandardConnectorService
IConnectorService.supportsPassword()
public boolean supportsUserId()
StandardConnectorService
supportsUserId
in interface IConnectorService
supportsUserId
in class StandardConnectorService
IConnectorService.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 |