Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4ComConnectSlave Class Reference

master command: initiate connection to slave. More...

#include <TGo4ComConnectSlave.h>

Inheritance diagram for TGo4ComConnectSlave:

TGo4TaskHandlerCommand TGo4Command List of all members.

Public Methods

 TGo4ComConnectSlave ()
virtual ~TGo4ComConnectSlave ()
void SetSlaveName (const char *name)
 Specify the name of the client to be launched. More...

void SetSlaveHost (const char *name)
 Specify the hostname of the client process. More...

void SetSlaveDir (const char *name)
 Specify the name of the client directory. More...

void SetSlaveExecutable (const char *name)
 Specify name of executable program on client side. More...

void SetSlavePort (UInt_t num)
void SetSlaveMode (Int_t mode)
 Specify client mode (meaning defined by taskhandler user, i.e. More...

void SetStartServer (Bool_t on)
void SetLogin (Go4CommandMode_t mode)
void SetPassword (const char *wd)
Int_t ExeCom ()
 Do the command action. More...


Private Attributes

TString fxSlaveName
 name of the slave to be launched. More...

TString fxSlaveHost
 slave machine host name. More...

TString fxSlaveDir
 working directory of the slave. More...

TString fxSlaveExecutable
 executable to start on the slave side. More...

Int_t fiMode
 slave start mode (master as server only). More...

UInt_t fuPort
 Port for negotiation connection (master as client only). More...

Bool_t fbStartServer
 If this is true, master will launch a slave server itself before trying to connect to it (master as client). More...

Go4CommandMode_t fiLoginMode
 specify login mode. More...

TString fxPasswd
 login password, must match to login mode. More...


Detailed Description

master command: initiate connection to slave.

Slave is either started in remote shell and connects then back to master (master in server mode); or master will try to connect to exisiting slave server (master in client mode).

Author:
Joern Adamczewski
Since:
17-03-2005

Definition at line 27 of file TGo4ComConnectSlave.h.


Constructor & Destructor Documentation

TGo4ComConnectSlave::TGo4ComConnectSlave  
 

Definition at line 23 of file TGo4ComConnectSlave.cxx.

References TGo4Command::fbIsLocal, fbStartServer, fuPort, fxSlaveDir, fxSlaveExecutable, fxSlaveHost, fxSlaveName, and TGo4Command::SetReceiverName().

TGo4ComConnectSlave::~TGo4ComConnectSlave   [virtual]
 

Definition at line 37 of file TGo4ComConnectSlave.cxx.


Member Function Documentation

void TGo4ComConnectSlave::SetSlaveName const char *    name [inline]
 

Specify the name of the client to be launched.

Definition at line 35 of file TGo4ComConnectSlave.h.

References fxSlaveName.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetSlaveHost const char *    name [inline]
 

Specify the hostname of the client process.

Definition at line 42 of file TGo4ComConnectSlave.h.

References fxSlaveHost.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetSlaveDir const char *    name [inline]
 

Specify the name of the client directory.

Definition at line 48 of file TGo4ComConnectSlave.h.

References fxSlaveDir.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetSlaveExecutable const char *    name [inline]
 

Specify name of executable program on client side.

Definition at line 54 of file TGo4ComConnectSlave.h.

References fxSlaveExecutable.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetSlavePort UInt_t    num [inline]
 

Definition at line 59 of file TGo4ComConnectSlave.h.

References fuPort.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetSlaveMode Int_t    mode [inline]
 

Specify client mode (meaning defined by taskhandler user, i.e.

analysisclient in go4)

Definition at line 62 of file TGo4ComConnectSlave.h.

References fiMode.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetStartServer Bool_t    on [inline]
 

Definition at line 64 of file TGo4ComConnectSlave.h.

References fbStartServer.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetLogin Go4CommandMode_t    mode [inline]
 

Definition at line 66 of file TGo4ComConnectSlave.h.

References fiLoginMode, and Go4CommandMode_t.

Referenced by TGo4StartClientSlots::StartClient().

void TGo4ComConnectSlave::SetPassword const char *    wd [inline]
 

Definition at line 68 of file TGo4ComConnectSlave.h.

References fxPasswd.

Referenced by TGo4StartClientSlots::StartClient().

Int_t TGo4ComConnectSlave::ExeCom   [virtual]
 

Do the command action.

Reimplemented from TGo4Command.

Definition at line 42 of file TGo4ComConnectSlave.cxx.

References TGo4Master::ConnectSlave(), TGo4Log::Debug(), fbStartServer, fiLoginMode, fiMode, fuPort, fxPasswd, fxSlaveDir, fxSlaveExecutable, fxSlaveHost, and fxSlaveName.


Member Data Documentation

TString TGo4ComConnectSlave::fxSlaveName [private]
 

name of the slave to be launched.

Definition at line 75 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetSlaveName(), and TGo4ComConnectSlave().

TString TGo4ComConnectSlave::fxSlaveHost [private]
 

slave machine host name.

Definition at line 78 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetSlaveHost(), and TGo4ComConnectSlave().

TString TGo4ComConnectSlave::fxSlaveDir [private]
 

working directory of the slave.

Definition at line 81 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetSlaveDir(), and TGo4ComConnectSlave().

TString TGo4ComConnectSlave::fxSlaveExecutable [private]
 

executable to start on the slave side.

Definition at line 84 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetSlaveExecutable(), and TGo4ComConnectSlave().

Int_t TGo4ComConnectSlave::fiMode [private]
 

slave start mode (master as server only).

Reimplemented from TGo4Command.

Definition at line 87 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), and SetSlaveMode().

UInt_t TGo4ComConnectSlave::fuPort [private]
 

Port for negotiation connection (master as client only).

Definition at line 90 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetSlavePort(), and TGo4ComConnectSlave().

Bool_t TGo4ComConnectSlave::fbStartServer [private]
 

If this is true, master will launch a slave server itself before trying to connect to it (master as client).

Future feature maybe.

Definition at line 95 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), SetStartServer(), and TGo4ComConnectSlave().

Go4CommandMode_t TGo4ComConnectSlave::fiLoginMode [private]
 

specify login mode.

Definition at line 98 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), and SetLogin().

TString TGo4ComConnectSlave::fxPasswd [private]
 

login password, must match to login mode.

Definition at line 101 of file TGo4ComConnectSlave.h.

Referenced by ExeCom(), and SetPassword().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:31 2005 for Go4-v2.10-5 by doxygen1.2.15