|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.subsystems.impl.ServerLauncherImpl
com.ibm.etools.systems.subsystems.impl.IBMServerLauncherImpl
This subclass of ServerLauncher
is for use by IBM-supplied subsystems, although
is possibly of value to vendors as well. The IBM-supplied 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 com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl#createIBMServerLauncher(SubSystem)
The following features are implemented:
Server Launch Type
Port
Rexec Port
Daemon Port
Server Path
Server Script
Ibm Attributes
Restricted Types
Field Summary | |
---|---|
static String |
copyright
|
protected static Integer |
DAEMON_PORT_EDEFAULT
The default value of the ' Daemon Port ' attribute |
protected Integer |
daemonPort
The cached value of the ' Daemon Port ' attribute |
protected static String |
IBM_ATTRIBUTES_EDEFAULT
The default value of the ' Ibm Attributes ' attribute |
protected String |
ibmAttributes
The cached value of the ' Ibm Attributes ' attribute |
protected boolean |
ibmAttributesESet
This is true if the Ibm Attributes attribute has been set |
protected Hashtable |
ibmAttrs
|
protected Integer |
port
The cached value of the ' Port ' attribute |
protected static Integer |
PORT_EDEFAULT
The default value of the ' Port ' attribute |
protected static String |
RESTRICTED_TYPES_EDEFAULT
The default value of the ' Restricted Types ' attribute |
protected String |
restrictedTypes
The cached value of the ' Restricted Types ' attribute |
protected boolean |
restrictedTypesESet
This is true if the Restricted Types attribute has been set |
protected static Integer |
REXEC_PORT_EDEFAULT
The default value of the ' Rexec Port ' attribute |
protected Integer |
rexecPort
The cached value of the ' Rexec Port ' attribute |
protected Hashtable |
rstdtypes
|
protected static ServerLaunchType |
SERVER_LAUNCH_TYPE_EDEFAULT
The default value of the ' Server Launch Type ' attribute |
protected static String |
SERVER_PATH_EDEFAULT
The default value of the ' Server Path ' attribute |
protected static String |
SERVER_SCRIPT_EDEFAULT
The default value of the ' Server Script ' attribute |
protected ServerLaunchType |
serverLaunchType
The cached value of the ' Server Launch Type ' attribute |
protected boolean |
serverLaunchTypeESet
This is true if the Server Launch Type attribute has been set |
protected String |
serverPath
The cached value of the ' Server Path ' attribute |
protected String |
serverScript
The cached value of the ' Server Script ' attribute |
Fields inherited from class com.ibm.etools.systems.subsystems.impl.ServerLauncherImpl |
---|
VENDOR_ATTRIBUTES_EDEFAULT, vendorAttributes, vendorAttributesESet |
Constructor Summary | |
---|---|
protected |
IBMServerLauncherImpl()
Constructor. |
Method Summary | |
---|---|
ServerLauncher |
cloneServerLauncher(ServerLauncher newOne)
Clone the contents of this server launcher into the given server launcher Your sublcass must override this if you add additional attributes! |
NotificationChain |
eBasicRemoveFromContainer(NotificationChain msgs)
Private. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
Private. |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
Private. |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
Private. |
boolean |
eIsSet(EStructuralFeature eFeature)
Private. |
void |
enableServerLaunchType(ServerLaunchType serverLaunchType,
boolean enable)
Call this method to identify specific server launch types that are not to be permitted. |
void |
eSet(EStructuralFeature eFeature,
Object newValue)
Private. |
protected EClass |
eStaticClass()
Private. |
void |
eUnset(EStructuralFeature eFeature)
Private. |
Integer |
getDaemonPort()
Return the port used for the DAEMON option, as an Integer |
int |
getDaemonPortAsInt()
Return the port used for the DAEMON option, as an int |
Integer |
getDaemonPortGen()
|
String |
getIBMAttribute(String attributeName)
For IBM teams defining their own subclasses and additional attributes. |
String |
getIbmAttributes()
Private. |
Integer |
getPort()
Return the port as an Integer. |
int |
getPortAsInt()
Return the port as an int. |
Integer |
getPortGen()
|
String |
getRestrictedTypes()
Private. |
Integer |
getRexecPort()
Return the port used for the REXEC option, as an Integer |
int |
getRexecPortAsInt()
Return the port used for the REXEC option, as an int |
Integer |
getRexecPortGen()
|
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 |
getServerPathGen()
Generated code. |
String |
getServerScript()
The script to run on the remote system, to start the server code |
String |
getServerScriptGen()
Generated. |
boolean |
isEnabledServerLaunchType(ServerLaunchType serverLaunchType)
This methods returns the enablement state per server launch type. |
boolean |
isSetIbmAttributes()
Private. |
boolean |
isSetRestrictedTypes()
Private. |
boolean |
isSetServerLaunchType()
|
void |
setDaemonPort(int newDaemonPort)
Set the DAEMON port value, as an int |
void |
setDaemonPort(Integer newDaemonPort)
|
void |
setIBMAttribute(String attributeName,
String attributeValue)
For IBM teams defining their own subclasses and additional attributes. |
void |
setIbmAttributes(String newIbmAttributes)
Private. |
void |
setPort(Integer newPort)
Deprecated. call setRexecPort(Integer) or setDaemonPort(Integer) instead. |
void |
setPortGen(Integer newPort)
Not actually used anymore |
void |
setRestrictedTypes(String newRestrictedTypes)
Private. |
void |
setRexecPort(int newRexecPort)
Set the REXEC port value, as an int |
void |
setRexecPort(Integer newRexecPort)
|
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)
The script to run on the remote system, to start the server code |
String |
toString()
Private. |
void |
unsetIbmAttributes()
Private. |
void |
unsetRestrictedTypes()
Private. |
void |
unsetServerLaunchType()
|
Methods inherited from class com.ibm.etools.systems.subsystems.impl.ServerLauncherImpl |
---|
getParentSubSystem, getParentSubSystemFactory, getVendorAttribute, getVendorAttributes, isSetVendorAttributes, setParentSubSystem, setVendorAttribute, setVendorAttributes, unsetVendorAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.subsystems.ServerLauncher |
---|
getParentSubSystem, getVendorAttributes, isSetVendorAttributes, setParentSubSystem, setVendorAttributes, unsetVendorAttributes |
Field Detail |
public static final String copyright
protected Hashtable ibmAttrs
protected Hashtable rstdtypes
protected static final ServerLaunchType SERVER_LAUNCH_TYPE_EDEFAULT
Server Launch Type
' attribute.
getServerLaunchType()
protected ServerLaunchType serverLaunchType
Server Launch Type
' attribute.
getServerLaunchType()
protected boolean serverLaunchTypeESet
protected static final Integer PORT_EDEFAULT
Port
' attribute.
getPort()
protected Integer port
Port
' attribute.
getPort()
protected static final Integer REXEC_PORT_EDEFAULT
Rexec Port
' attribute.
getRexecPort()
protected Integer rexecPort
Rexec Port
' attribute.
getRexecPort()
protected static final Integer DAEMON_PORT_EDEFAULT
Daemon Port
' attribute.
getDaemonPort()
protected Integer daemonPort
Daemon Port
' attribute.
getDaemonPort()
protected static final String SERVER_PATH_EDEFAULT
Server Path
' attribute.
getServerPath()
protected String serverPath
Server Path
' attribute.
getServerPath()
protected static final String SERVER_SCRIPT_EDEFAULT
Server Script
' attribute.
getServerScript()
protected String serverScript
Server Script
' attribute.
getServerScript()
protected static final String IBM_ATTRIBUTES_EDEFAULT
Ibm Attributes
' attribute.
getIbmAttributes()
protected String ibmAttributes
Ibm Attributes
' attribute.
getIbmAttributes()
protected boolean ibmAttributesESet
protected static final String RESTRICTED_TYPES_EDEFAULT
Restricted Types
' attribute.
getRestrictedTypes()
protected String restrictedTypes
Restricted Types
' attribute.
getRestrictedTypes()
protected boolean restrictedTypesESet
Constructor Detail |
protected IBMServerLauncherImpl()
com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl#createIBMServerLaucher()
Method Detail |
public ServerLauncher cloneServerLauncher(ServerLauncher newOne)
cloneServerLauncher
in interface ServerLauncher
cloneServerLauncher
in class ServerLauncherImpl
protected EClass eStaticClass()
eStaticClass
in class ServerLauncherImpl
public ServerLaunchType getServerLaunchType()
getServerLaunchType
in interface IBMServerLauncher
ServerLaunchType
,
IBMServerLauncher.isSetServerLaunchType()
,
IBMServerLauncher.unsetServerLaunchType()
,
IBMServerLauncher.setServerLaunchType(ServerLaunchType)
,
SubsystemsPackage.getIBMServerLauncher_ServerLaunchType()
public ServerLaunchType getServerLaunchTypeGen()
public void setServerLaunchType(ServerLaunchType newServerLaunchType)
ServerLaunchType
setServerLaunchType
in interface IBMServerLauncher
newServerLaunchType
- the new value of the 'Server Launch Type' attribute.ServerLaunchType
,
IBMServerLauncher.isSetServerLaunchType()
,
IBMServerLauncher.unsetServerLaunchType()
,
IBMServerLauncher.getServerLaunchType()
public void unsetServerLaunchType()
unsetServerLaunchType
in interface IBMServerLauncher
IBMServerLauncher.isSetServerLaunchType()
,
IBMServerLauncher.getServerLaunchType()
,
IBMServerLauncher.setServerLaunchType(ServerLaunchType)
public boolean isSetServerLaunchType()
isSetServerLaunchType
in interface IBMServerLauncher
IBMServerLauncher.unsetServerLaunchType()
,
IBMServerLauncher.getServerLaunchType()
,
IBMServerLauncher.setServerLaunchType(ServerLaunchType)
public Integer getRexecPort()
getRexecPort
in interface IBMServerLauncher
IBMServerLauncher.setRexecPort(Integer)
,
SubsystemsPackage.getIBMServerLauncher_RexecPort()
public int getRexecPortAsInt()
getRexecPortAsInt
in interface IBMServerLauncher
public Integer getRexecPortGen()
public void setRexecPort(int newRexecPort)
setRexecPort
in interface IBMServerLauncher
public void setRexecPort(Integer newRexecPort)
setRexecPort
in interface IBMServerLauncher
newRexecPort
- the new value of the 'Rexec Port' attribute.IBMServerLauncher.getRexecPort()
public Integer getDaemonPort()
getDaemonPort
in interface IBMServerLauncher
IBMServerLauncher.setDaemonPort(Integer)
,
SubsystemsPackage.getIBMServerLauncher_DaemonPort()
public int getDaemonPortAsInt()
getDaemonPortAsInt
in interface IBMServerLauncher
public Integer getDaemonPortGen()
public void setDaemonPort(int newDaemonPort)
setDaemonPort
in interface IBMServerLauncher
public void setDaemonPort(Integer newDaemonPort)
setDaemonPort
in interface IBMServerLauncher
newDaemonPort
- the new value of the 'Daemon Port' attribute.IBMServerLauncher.getDaemonPort()
public Integer getPortGen()
public Integer getPort()
getPort
in interface IBMServerLauncher
public int getPortAsInt()
getPortAsInt
in interface IBMServerLauncher
public void setPort(Integer newPort)
setRexecPort(Integer)
or setDaemonPort(Integer)
instead.
setPort
in interface IBMServerLauncher
newPort
- the new value of the 'Port' attribute.IBMServerLauncher.getPort()
public void setPortGen(Integer newPort)
public String getServerPath()
getServerPath
in interface IBMServerLauncher
IBMServerLauncher.setServerPath(String)
,
SubsystemsPackage.getIBMServerLauncher_ServerPath()
public String getServerPathGen()
public void setServerPath(String newServerPath)
setServerPath
in interface IBMServerLauncher
newServerPath
- the new value of the 'Server Path' attribute.IBMServerLauncher.getServerPath()
public String getServerScript()
getServerScript
in interface IBMServerLauncher
IBMServerLauncher.setServerScript(String)
,
SubsystemsPackage.getIBMServerLauncher_ServerScript()
public String getServerScriptGen()
public void setServerScript(String newServerScript)
setServerScript
in interface IBMServerLauncher
newServerScript
- the new value of the 'Server Script' attribute.IBMServerLauncher.getServerScript()
public void enableServerLaunchType(ServerLaunchType serverLaunchType, boolean enable)
You normally do not call this! Rather, your subsystem factory class will override
SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
.
However, this method is needed by ISVs that re-use IBM-supplied subsystem factories,
and merely supply their own ISystem object via the "systemClass" attribute of the
subsystemfactory extension point. They don't call this method directly actually, but
rather AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
,
which in turn calls this.
enableServerLaunchType
in interface IBMServerLauncher
ServerLaunchType
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:
SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
.
isEnabledServerLaunchType
in interface IBMServerLauncher
ServerLaunchType
public String getIbmAttributes()
getIBMAttribute(String)
getIbmAttributes
in interface IBMServerLauncher
IBMServerLauncher.isSetIbmAttributes()
,
IBMServerLauncher.unsetIbmAttributes()
,
IBMServerLauncher.setIbmAttributes(String)
,
SubsystemsPackage.getIBMServerLauncher_IbmAttributes()
public void setIbmAttributes(String newIbmAttributes)
setIBMAttribute(String,String)
setIbmAttributes
in interface IBMServerLauncher
newIbmAttributes
- the new value of the 'Ibm Attributes' attribute.IBMServerLauncher.isSetIbmAttributes()
,
IBMServerLauncher.unsetIbmAttributes()
,
IBMServerLauncher.getIbmAttributes()
public void unsetIbmAttributes()
unsetIbmAttributes
in interface IBMServerLauncher
IBMServerLauncher.isSetIbmAttributes()
,
IBMServerLauncher.getIbmAttributes()
,
IBMServerLauncher.setIbmAttributes(String)
public boolean isSetIbmAttributes()
isSetIbmAttributes
in interface IBMServerLauncher
IBMServerLauncher.unsetIbmAttributes()
,
IBMServerLauncher.getIbmAttributes()
,
IBMServerLauncher.setIbmAttributes(String)
public String getRestrictedTypes()
getRestrictedTypes
in interface IBMServerLauncher
IBMServerLauncher.isSetRestrictedTypes()
,
IBMServerLauncher.unsetRestrictedTypes()
,
IBMServerLauncher.setRestrictedTypes(String)
,
SubsystemsPackage.getIBMServerLauncher_RestrictedTypes()
public void setRestrictedTypes(String newRestrictedTypes)
setRestrictedTypes
in interface IBMServerLauncher
newRestrictedTypes
- the new value of the 'Restricted Types' attribute.IBMServerLauncher.isSetRestrictedTypes()
,
IBMServerLauncher.unsetRestrictedTypes()
,
IBMServerLauncher.getRestrictedTypes()
public void unsetRestrictedTypes()
unsetRestrictedTypes
in interface IBMServerLauncher
IBMServerLauncher.isSetRestrictedTypes()
,
IBMServerLauncher.getRestrictedTypes()
,
IBMServerLauncher.setRestrictedTypes(String)
public boolean isSetRestrictedTypes()
isSetRestrictedTypes
in interface IBMServerLauncher
IBMServerLauncher.unsetRestrictedTypes()
,
IBMServerLauncher.getRestrictedTypes()
,
IBMServerLauncher.setRestrictedTypes(String)
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseAdd
in class ServerLauncherImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseRemove
in class ServerLauncherImpl
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
eBasicRemoveFromContainer
in class ServerLauncherImpl
public void setIBMAttribute(String attributeName, String attributeValue)
public String getIBMAttribute(String attributeName)
public Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in class ServerLauncherImpl
public void eSet(EStructuralFeature eFeature, Object newValue)
eSet
in class ServerLauncherImpl
public void eUnset(EStructuralFeature eFeature)
eUnset
in class ServerLauncherImpl
public boolean eIsSet(EStructuralFeature eFeature)
eIsSet
in class ServerLauncherImpl
public String toString()
toString
in class ServerLauncherImpl
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |