Remote Systems
v6.4.1

com.ibm.etools.systems.universal
Class RexecDstoreServer

java.lang.Object
  extended bycom.ibm.etools.systems.universal.RexecDstoreServer
All Implemented Interfaces:
IServerLauncher

public class RexecDstoreServer
extends Object
implements IServerLauncher

Launch Datastore server on selected host using the rexec protocol


Field Summary
 
Fields inherited from interface com.ibm.etools.systems.subsystems.IServerLauncher
Copyright
 
Constructor Summary
RexecDstoreServer()
          Constructor
 
Method Summary
 Object connect(IProgressMonitor monitor, int connectPort)
          Connect to the remote server.
 void disconnect()
          Disconnect from the remote server
 SystemMessage getErrorMessage()
          Return the last error message issued
 ServerLauncher getServerLauncherProperties()
          Get the object which contians the user-specified properties that are used by this launcher.
 SystemSignonInformation getSignonInformation()
          Get the remote system signon information, as set in setSignonInformation(SystemSignonInformation)
 boolean isConnected()
          Determine if we are connected to the remote server or not.
 boolean isLaunched()
          Determine if the remote server needs to be launched or not.
 Object launch(IProgressMonitor monitor)
          Send a command to the host via rexec to launch the datastore server under the specified user ID/pwd. the datastore server will emit messages that include the port number on which the server is listening for client connections
 void setClientConnection(ClientConnection clientConnection)
          Set the datastore client connection.
 void setServerLauncherProperties(ServerLauncher propertyInfo)
          Set the object which contains the user-specified properties that are used by this launcher
 void setSignonInformation(SystemSignonInformation info)
          Set the remote system signon information
 void setSocketTimeoutValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RexecDstoreServer

public RexecDstoreServer()
Constructor

Method Detail

setClientConnection

public void setClientConnection(ClientConnection clientConnection)
Set the datastore client connection. This is reset for each connect()


setSignonInformation

public void setSignonInformation(SystemSignonInformation info)
Set the remote system signon information

Specified by:
setSignonInformation in interface IServerLauncher

getSignonInformation

public SystemSignonInformation getSignonInformation()
Get the remote system signon information, as set in setSignonInformation(SystemSignonInformation)

Specified by:
getSignonInformation in interface IServerLauncher

setServerLauncherProperties

public void setServerLauncherProperties(ServerLauncher propertyInfo)
Set the object which contains the user-specified properties that are used by this launcher

Specified by:
setServerLauncherProperties in interface IServerLauncher

getServerLauncherProperties

public ServerLauncher getServerLauncherProperties()
Get the object which contians the user-specified properties that are used by this launcher. As set in setServerLauncherProperties(ServerLauncher).

Specified by:
getServerLauncherProperties in interface IServerLauncher

isLaunched

public boolean isLaunched()
Determine if the remote server needs to be launched or not. Generally is always false.

Specified by:
isLaunched in interface IServerLauncher
Returns:
true if the remote server is already launched, false if it needs to be.

launch

public Object launch(IProgressMonitor monitor)
              throws Exception
Send a command to the host via rexec to launch the datastore server under the specified user ID/pwd. the datastore server will emit messages that include the port number on which the server is listening for client connections

Specified by:
launch in interface IServerLauncher
Parameters:
monitor - - a monitor for showing progress
Returns:
port number as String
Throws:
Exception
See Also:
IServerLauncher.getErrorMessage()

isConnected

public boolean isConnected()
Determine if we are connected to the remote server or not.

Specified by:
isConnected in interface IServerLauncher
Returns:
true if we are connected, false otherwise.

connect

public Object connect(IProgressMonitor monitor,
                      int connectPort)
               throws Exception
Connect to the remote server.

Specified by:
connect in interface IServerLauncher
Parameters:
monitor - a monitor for showing progress
connectPort - the port to use for launching the server
Returns:
Anything you want.
Throws:
Exception
See Also:
getErrorMessage()

disconnect

public void disconnect()
                throws Exception
Disconnect from the remote server

Specified by:
disconnect in interface IServerLauncher
Throws:
Exception
See Also:
getErrorMessage()

getErrorMessage

public SystemMessage getErrorMessage()
Return the last error message issued

Specified by:
getErrorMessage in interface IServerLauncher
Returns:
the error message.

setSocketTimeoutValue

public void setSocketTimeoutValue(int value)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.