|
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.ServerLauncher
org.eclipse.rse.core.subsystems.RemoteServerLauncher
public class RemoteServerLauncher
This subclass of IServerLauncherProperties is for use by some dstore-based subsystems, although
is possibly of value to vendors as well. The dstore-based subsystems use server code
written in Java, on top of the datastore technology. You can read about this in the
developer guide for Remote System Explorer. The bottom line, however, is we offer the
user a number of ways to start that remote server from the client, as well to connect
to it if it is already running. This class encapsulates the properties to support that.
Create instances via ISubSystemConfiguration.createServerLauncher(IConnectorService)
The following features are implemented:
| Field Summary | |
|---|---|
protected boolean |
_autoDetectSSL
|
protected int |
_daemonPort
|
protected boolean |
_hasSetServerLaunchType
|
protected int |
_rexecPort
|
protected IPropertyType |
_serverLauncherEnumType
|
protected ServerLaunchType |
_serverLaunchType
|
protected String |
_serverPath
|
protected String |
_serverScript
|
protected static boolean |
AUTODETECT_SSL_EDEFAULT
|
protected static int |
DAEMON_PORT_EDEFAULT
|
protected String |
KEY_AUTODETECT_SSL
|
protected String |
KEY_DAEMON_PORT
|
protected String |
KEY_REXEC_PORT
|
protected String |
KEY_SERVER_LAUNCH_TYPE_NAME
|
protected String |
KEY_SERVER_PATH
|
protected String |
KEY_SERVER_SCRIPT
|
protected String |
PROPERTY_SET_NAME
|
protected static String |
REMOTE_ATTRIBUTES_EDEFAULT
|
protected static String |
RESTRICTED_TYPES_EDEFAULT
|
protected static int |
REXEC_PORT_EDEFAULT
|
protected static ServerLaunchType |
SERVER_LAUNCH_TYPE_EDEFAULT
|
protected static String |
SERVER_PATH_EDEFAULT
|
protected static String |
SERVER_SCRIPT_EDEFAULT
|
| Fields inherited from class org.eclipse.rse.core.subsystems.ServerLauncher |
|---|
_connectorService, _name |
| Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
NO_CHILDREN |
| Constructor Summary | |
|---|---|
RemoteServerLauncher(String name,
IConnectorService connectorService)
|
|
| Method Summary | |
|---|---|
IServerLauncherProperties |
cloneServerLauncher(IServerLauncherProperties newOne)
Clone the contents of this server launcher into the given server launcher Your sublcass must override this if you add additional attributes! |
void |
enableServerLaunchType(ServerLaunchType serverLaunchType,
boolean enable)
|
boolean |
getAutoDetectSSL()
Return the whether or not to auto-detect SSL |
int |
getDaemonPort()
Return the port used for the DAEMON option, as an Integer |
int |
getRexecPort()
Return the port used for the REXEC option, as an Integer |
IPropertyType |
getServerLauncherPropertyType()
|
ServerLaunchType |
getServerLaunchType()
This is the means by which to start the server-side code, as specified by the user, typically |
ServerLaunchType |
getServerLaunchTypeGen()
Generated. |
String |
getServerPath()
The path where the server lives on the remote system. |
String |
getServerScript()
The script to run on the remote system, to start the server code |
protected ServerLaunchType[] |
getSupportedLauncherEnumTypes()
|
boolean |
isEnabledServerLaunchType(ServerLaunchType serverLaunchType)
This methods returns the enablement state per server launch type. |
boolean |
isSetServerLaunchType()
|
void |
restoreFromProperties()
Update cached values based on IPropertySets |
void |
saveToProperties()
Store cached values based on IPropertySets |
void |
setAutoDetectSSL(boolean auto)
Sets whether or not to auto-detect SSL |
void |
setDaemonPort(int newDaemonPort)
Set the DAEMON port value, as an int |
void |
setRestrictedType(String attributeName,
String attributeValue)
Deprecated. |
void |
setRexecPort(int newRexecPort)
Set the REXEC port value, as an int |
void |
setServerLaunchType(ServerLaunchType newServerLaunchType)
This is the means by which to start the server-side code, as specified by the user, typically. |
void |
setServerPath(String newServerPath)
The path where the server lives on the remote system. |
void |
setServerScript(String newServerScript)
Sets the value of the ' Server Script' attribute |
| Methods inherited from class org.eclipse.rse.core.subsystems.ServerLauncher |
|---|
commit, getConnectorService, getDescription, getLabel, getName, getPersistableChildren, getPersistableParent, setLabel |
| 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.subsystems.IServerLauncherProperties |
|---|
getConnectorService |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
|---|
getDescription, getName |
| 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 |
|---|
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| Field Detail |
|---|
protected static final ServerLaunchType SERVER_LAUNCH_TYPE_EDEFAULT
protected final String PROPERTY_SET_NAME
protected final String KEY_DAEMON_PORT
protected final String KEY_REXEC_PORT
protected final String KEY_SERVER_LAUNCH_TYPE_NAME
protected final String KEY_SERVER_PATH
protected final String KEY_SERVER_SCRIPT
protected final String KEY_AUTODETECT_SSL
protected ServerLaunchType _serverLaunchType
protected boolean _hasSetServerLaunchType
protected static final int REXEC_PORT_EDEFAULT
protected int _rexecPort
protected static final int DAEMON_PORT_EDEFAULT
protected int _daemonPort
protected static final String SERVER_PATH_EDEFAULT
protected String _serverPath
protected static final String SERVER_SCRIPT_EDEFAULT
protected String _serverScript
protected static final String REMOTE_ATTRIBUTES_EDEFAULT
protected static final String RESTRICTED_TYPES_EDEFAULT
protected static final boolean AUTODETECT_SSL_EDEFAULT
protected boolean _autoDetectSSL
protected IPropertyType _serverLauncherEnumType
| Constructor Detail |
|---|
public RemoteServerLauncher(String name,
IConnectorService connectorService)
| Method Detail |
|---|
public IPropertyType getServerLauncherPropertyType()
protected ServerLaunchType[] getSupportedLauncherEnumTypes()
public void restoreFromProperties()
IServerLauncherProperties
restoreFromProperties in interface IServerLauncherPropertiespublic void saveToProperties()
IServerLauncherProperties
saveToProperties in interface IServerLauncherPropertiespublic IServerLauncherProperties cloneServerLauncher(IServerLauncherProperties newOne)
cloneServerLauncher in interface IServerLauncherPropertiescloneServerLauncher in class ServerLauncherpublic ServerLaunchType getServerLaunchType()
getServerLaunchType in interface IRemoteServerLauncherServerLaunchType,
IRemoteServerLauncher.setServerLaunchType(ServerLaunchType)public ServerLaunchType getServerLaunchTypeGen()
public void setServerLaunchType(ServerLaunchType newServerLaunchType)
ServerLaunchType
setServerLaunchType in interface IRemoteServerLaunchernewServerLaunchType - the new value of the 'Server Launch Type' attribute.ServerLaunchType,
IRemoteServerLauncher.getServerLaunchType()public boolean isSetServerLaunchType()
public int getRexecPort()
getRexecPort in interface IRemoteServerLauncherIRemoteServerLauncher.setRexecPort(int)public void setRexecPort(int newRexecPort)
setRexecPort in interface IRemoteServerLauncherpublic boolean getAutoDetectSSL()
getAutoDetectSSL in interface IRemoteServerLauncherpublic void setAutoDetectSSL(boolean auto)
setAutoDetectSSL in interface IRemoteServerLauncherpublic int getDaemonPort()
getDaemonPort in interface IRemoteServerLauncherpublic void setDaemonPort(int newDaemonPort)
setDaemonPort in interface IRemoteServerLauncherpublic String getServerPath()
getServerPath in interface IRemoteServerLauncherIRemoteServerLauncher.setServerPath(String)public void setServerPath(String newServerPath)
setServerPath in interface IRemoteServerLaunchernewServerPath - the new value of the 'Server Path' attribute.IRemoteServerLauncher.getServerPath()public String getServerScript()
getServerScript in interface IRemoteServerLauncherIRemoteServerLauncher.setServerScript(String)public void setServerScript(String newServerScript)
IRemoteServerLauncherServer Script' attribute.
The script to run on the remote system, to start the server code.
setServerScript in interface IRemoteServerLaunchernewServerScript - the new value of the 'Server Script' attribute.IRemoteServerLauncher.getServerScript()public boolean isEnabledServerLaunchType(ServerLaunchType serverLaunchType)
enableServerLaunchType(ServerLaunchType,boolean) has not been
called for this server launch type, then we defer to the subsystem factory's
method:
ISubSystemConfiguration.supportsServerLaunchType(ServerLaunchType).
isEnabledServerLaunchType in interface IRemoteServerLauncherServerLaunchType
public void setRestrictedType(String attributeName,
String attributeValue)
public void enableServerLaunchType(ServerLaunchType serverLaunchType,
boolean enable)
|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||