|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.AbstractSystem
com.ibm.etools.systems.universal.UniversalSystem
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 | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.AbstractSystem |
---|
connectResult, launchResult, shell |
Fields inherited from interface com.ibm.etools.systems.core.ISystemUserIdConstants |
---|
USERID_LOCATION_CONNECTION, USERID_LOCATION_DEFAULT_OVERALL, USERID_LOCATION_DEFAULT_SYSTEMTYPE, USERID_LOCATION_NOTSET, USERID_LOCATION_SUBSYSTEM |
Constructor Summary | |
---|---|
UniversalSystem()
Constructor when we don't have a subsystem yet. |
|
UniversalSystem(SubSystem subsystem)
Constructor when we have a subsystem |
Method Summary | |
---|---|
void |
connect(IProgressMonitor monitor)
Abstract - you must override, unless subsystem.getParentSubSystemFactory().supportsServerLaunchProperties returns true Attempt to connect to the remote system. |
void |
disconnect()
Abstract - you must override, unless subsystem.getParentSubSystemFactory().supportsServerLaunchProperties returns true Disconnect from the remote system. |
String |
getClientIP()
Return the Client IP that the RSE server is connected to. |
boolean |
getDaemonLaunchEnabled(SubSystemImpl subsystemImpl)
Deprecated. Use instead AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
DataStore |
getDataStore()
|
String |
getHomeDirectory()
Return the home directory of the remote system for the current user, if available. |
boolean |
getNoLaunchEnabled(SubSystemImpl subsystemImpl)
Deprecated. Use instead AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
SystemSignonInformation |
getPasswordInformation()
Useful utility method. |
IServerLauncher |
getRemoteServerLauncher()
Return the remote server launcher, which implements IServerLauncher. |
boolean |
getRexecLaunchEnabled(SubSystemImpl subsystemImpl)
Deprecated. Use instead AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
String |
getServerInstallPath()
Return the location where the RSE server is installed |
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 |
isConnected()
Abstract - you must override unless subsystem.getParentSubSystemFactory().supportsServerLaunchProperties returns true Return true if currently connected. |
boolean |
isNetworkError()
Shortcut to checking if the network is down |
boolean |
isPasswordCached()
Useful utility method. |
protected ConnectionStatus |
launchServer(ClientConnection clientConnection,
SystemSignonInformation info,
int daemonPort)
|
protected boolean |
promptForTrusting(Shell shell,
X509Certificate cert)
|
void |
setDaemonLaunchEnabled(SubSystemImpl subsystemImpl,
boolean enable)
Deprecated. use AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
void |
setNoLaunchEnabled(SubSystemImpl subsystemImpl,
boolean enable)
Deprecated. use AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
protected void |
setPluginPathProperty()
|
void |
setRexecLaunchEnabled(SubSystemImpl subsystemImpl,
boolean enable)
Deprecated. use AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType) |
void |
showWarningMsgs(Shell shell,
Vector warnings)
Show any warning messages returned by host api calls. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
Constructor Detail |
public UniversalSystem()
public UniversalSystem(SubSystem subsystem)
Method Detail |
public String getVersionReleaseModification()
getVersionReleaseModification
in interface ISystem
getVersionReleaseModification
in class AbstractSystem
public String getHomeDirectory()
getHomeDirectory
in interface ISystem
getHomeDirectory
in class AbstractSystem
public String getServerInstallPath()
public String getClientIP()
public String getTempDirectory()
getTempDirectory
in interface ISystem
getTempDirectory
in class AbstractSystem
protected int getSocketTimeOutValue()
public void disconnect() throws Exception
AbstractSystem
Disconnect from the remote system.
If the subsystem supports server launch,
the default behaviour here is to use the same remote server launcher created in connect(),
and call IServerLauncher.disconnect()
.
This is called, by default, from the disConnect(..) method of the subsystem.
disconnect
in interface ISystem
disconnect
in class AbstractSystem
Exception
ISystem.disconnect()
protected void setPluginPathProperty()
public void setDaemonLaunchEnabled(SubSystemImpl subsystemImpl, boolean enable)
AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public boolean getDaemonLaunchEnabled(SubSystemImpl subsystemImpl)
AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public void setRexecLaunchEnabled(SubSystemImpl subsystemImpl, boolean enable)
AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public boolean getRexecLaunchEnabled(SubSystemImpl subsystemImpl)
AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public void setNoLaunchEnabled(SubSystemImpl subsystemImpl, boolean enable)
AbstractSystem.enableServerLaunchType(SubSystem, ServerLaunchType, boolean)
or your subsystem factory should override SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public boolean getNoLaunchEnabled(SubSystemImpl subsystemImpl)
AbstractSystem.isEnabledServerLaunchType(SubSystem, ServerLaunchType)
or SubSystemFactoryImpl.supportsServerLaunchType(ServerLaunchType)
public IServerLauncher getRemoteServerLauncher()
getRemoteServerLauncher
in class AbstractSystem
public void connect(IProgressMonitor monitor) throws Exception
AbstractSystem
Attempt to connect to the remote system.
If the subsystem supports server launch,
the default behaviour here is to get the remote server launcher via
AbstractSystem.getRemoteServerLauncher()
, and if IServerLauncher.isLaunched()
returns false, to call IServerLauncher.launch(IProgressMonitor)
.
This is called, by default, from the connect(...) methods of the subsystem.
connect
in interface ISystem
connect
in class AbstractSystem
Exception
ISystem.connect(IProgressMonitor)
protected boolean promptForTrusting(Shell shell, X509Certificate cert)
protected ConnectionStatus launchServer(ClientConnection clientConnection, SystemSignonInformation info, int daemonPort)
public boolean isConnected()
AbstractSystem
Return true if currently connected.
If the subsystem supports server launch,
the default behaviour here is to see if there is a server launcher created
in a previous call to connect, and if so, to test it by calling
IServerLauncher.isConnected()
.
This is called, by default, from the isConnected method of the subsystem.
isConnected
in interface ISystem
isConnected
in class AbstractSystem
ISystem.isConnected()
public boolean isNetworkError()
public void showWarningMsgs(Shell shell, Vector warnings)
shell
- Parent UIwarnings
- Vector of String or toString()'able messages.public DataStore getDataStore()
public SystemSignonInformation getPasswordInformation()
AbstractSystem
getPasswordInformation
in class AbstractSystem
AbstractSystem.getPasswordInformation()
public boolean isPasswordCached()
AbstractSystem
isPasswordCached
in interface ISystem
isPasswordCached
in class AbstractSystem
AbstractSystem.isPasswordCached()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |