|
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.localfilesubsys.impl.LocalSystem
System class required by the remote systems framework. This represents the live connection at tool runtime. Since we don't really have such a thing for local files, this is pretty well empty.
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 | |
---|---|
|
LocalSystem()
Constructor when we don't have a subsystem yet. |
protected |
LocalSystem(SubSystem subsystem)
Constructor |
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 |
getHomeDirectory()
Return the home directory of the operating system for the current user, if available. |
String |
getTempDirectory()
Return the temp directory of the operating system for the current user, if available. |
String |
getVersionReleaseModification()
Return the version, release, modification of the operating system. |
boolean |
isConnected()
Abstract - you must override unless subsystem.getParentSubSystemFactory().supportsServerLaunchProperties returns true Return true if currently connected. |
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 LocalSystem()
protected LocalSystem(SubSystem subsystem)
Method Detail |
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
AbstractSystem.disconnect()
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)
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 String getVersionReleaseModification()
Returns System.getProperty("os.version")
getVersionReleaseModification
in interface ISystem
getVersionReleaseModification
in class AbstractSystem
public String getHomeDirectory()
Returns System.getProperty("user.home")
getHomeDirectory
in interface ISystem
getHomeDirectory
in class AbstractSystem
public String getTempDirectory()
Returns System.getProperty("java.io.tmpdir")
getTempDirectory
in interface ISystem
getTempDirectory
in class AbstractSystem
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |