|
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.dstore.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.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
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. |
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.isEnabledServerLaunchType(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType) |
IServerLauncher |
getRemoteServerLauncher()
Return the remote server launcher, which implements IServerLauncher. |
boolean |
getRexecLaunchEnabled(SubSystem subsystemImpl)
Deprecated. Use instead AbstractConnectorService.isEnabledServerLaunchType(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 |
boolean |
hasRemoteServerLauncherProperties()
|
protected void |
importCertsAndReconnect(org.eclipse.dstore.core.client.ConnectionStatus connectStatus,
IProgressMonitor monitor)
|
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 |
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(IProgressMonitor monitor,
SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties)
|
protected boolean |
promptForTrusting(X509Certificate cert)
|
boolean |
runClassInstanceRemotely(org.eclipse.dstore.core.java.IRemoteClassInstance instance)
|
protected void |
setPluginPathProperty()
|
protected boolean |
setSSLProperties(boolean enable)
|
void |
showWarningMsgs(Shell shell,
Vector warnings)
Show any warning messages returned by host api calls. |
boolean |
supportsPassword()
Can be used to determine if a password field is present on a login dialog for this connector service. |
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. |
boolean |
supportsUserId()
Report if this connector service can use a user identifier. |
| 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 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 AbstractConnectorServicepublic boolean runClassInstanceRemotely(org.eclipse.dstore.core.java.IRemoteClassInstance instance)
public String getServerInstallPath()
public String getClientIP()
public String getTempDirectory()
getTempDirectory in interface IConnectorServicegetTempDirectory in class AbstractConnectorServiceprotected int getSocketTimeOutValue()
public void internalDisconnect(IProgressMonitor monitor)
throws Exception
internalDisconnect in class AbstractConnectorServiceExceptionIConnectorService.disconnect(IProgressMonitor)protected void setPluginPathProperty()
public boolean getRexecLaunchEnabled(SubSystem subsystemImpl)
AbstractConnectorService.isEnabledServerLaunchType(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType)
public boolean getNoLaunchEnabled(SubSystem subsystemImpl)
AbstractConnectorService.isEnabledServerLaunchType(ISubSystem, ServerLaunchType)
or SubSystemConfiguration.supportsServerLaunchType(ServerLaunchType)
public IServerLauncher getRemoteServerLauncher()
getRemoteServerLauncher in class AbstractConnectorService
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 AbstractConnectorServiceExceptionIConnectorService.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(IProgressMonitor monitor,
SystemSignonInformation info,
IServerLauncherProperties serverLauncherProperties)
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()
IConnectorService
isConnected in interface IConnectorServiceIConnectorService.isConnected()public boolean isNetworkError()
public void showWarningMsgs(Shell shell,
Vector warnings)
shell - Parent UIwarnings - Vector of String or toString()'able messages.public org.eclipse.dstore.core.model.DataStore getDataStore()
getDataStore in interface org.eclipse.dstore.core.model.IDataStoreProviderpublic boolean hasRemoteServerLauncherProperties()
hasRemoteServerLauncherProperties in interface IConnectorServiceAbstractConnectorService.isPasswordCached()public boolean supportsRemoteServerLaunching()
supportsRemoteServerLaunching in interface IConnectorServicepublic boolean supportsServerLaunchProperties()
IConnectorService
supportsServerLaunchProperties in interface IConnectorServicepublic boolean supportsPassword()
IConnectorService
supportsPassword in interface IConnectorServicesupportsPassword in class AbstractConnectorServicepublic boolean supportsUserId()
IConnectorService
supportsUserId in interface IConnectorServicesupportsUserId in class AbstractConnectorService
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||