v2.10-0 (21000JUN2005)

Go4CommandsTaskHandler
Class TGo4ComConnectSlave


class TGo4ComConnectSlave
derived from TGo4TaskHandlerCommand

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

Field Summary
 private Bool_tfbStartServer
          If this is true, master will launch a slave server itself
before trying to connect to it (master as client).
 private Go4CommandMode_tfiLoginMode
          specify login mode
 private Int_tfiMode
          slave start mode (master as server only)
 private UInt_tfuPort
          Port for negotiation connection (master as client only)
 private TStringfxPasswd
          login password, must match to login mode
 private TStringfxSlaveDir
          working directory of the slave
 private TStringfxSlaveExecutable
          executable to start on the slave side
 private TStringfxSlaveHost
          slave machine host name
 private TStringfxSlaveName
          name of the slave to be launched

Fields inherited from class Go4CommandsBase.TGo4Command
fbIsEnabled, fbIsExclusive, fbIsLocal, fbIsSynchron, fgcMODEDESCRIPTION, fiCommandID, fiProtection, fiVersion, fxReceiverBase

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4ComConnectSlave()
           

Destructor Summary
 virtual synchronized ~TGo4ComConnectSlave()
           

Method Summary
 Int_tExeCom()
           
 voidSetLogin(Go4CommandMode_t mode)
           
 voidSetPassword(const char * wd)
           
 voidSetSlaveDir(const char * name)
          Specify the name of the client directory
 voidSetSlaveExecutable(const char * name)
          Specify name of executable program on client side
 voidSetSlaveHost(const char * name)
          Specify the hostname of the client process
 voidSetSlaveMode(Int_t mode)
          Specify client mode (meaning defined by taskhandler user, i.e. analysisclient in go4)
 voidSetSlaveName(const char * name)
          Specify the name of the client to be launched
 voidSetSlavePort(UInt_t num)
           
 voidSetStartServer(Bool_t on)
           

Methods inherited from class Go4CommandsTaskHandler.TGo4TaskHandlerCommand
operator=, RefuseCom

Methods inherited from class Go4CommandsBase.TGo4Command
GetCommandID, GetMode, GetModeDescription, GetProtection, GetReceiverName, GetTaskName, Help, IsEnabled, IsExclusive, IsLocal, IsSynchron, Log, SetDescription, SetMode, SetProtection, SetReceiver, SetReceiverName, SetTaskName, UnExeCom, What

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fbStartServer

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

fiLoginMode

private Go4CommandMode_t fiLoginMode
specify login mode

fiMode

private Int_t fiMode
slave start mode (master as server only)

fuPort

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

fxPasswd

private TString fxPasswd
login password, must match to login mode

fxSlaveDir

private TString fxSlaveDir
working directory of the slave

fxSlaveExecutable

private TString fxSlaveExecutable
executable to start on the slave side

fxSlaveHost

private TString fxSlaveHost
slave machine host name

fxSlaveName

private TString fxSlaveName
name of the slave to be launched
Constructor Detail

TGo4ComConnectSlave

public TGo4ComConnectSlave()
Method Detail

~TGo4ComConnectSlave

public virtual synchronized ~TGo4ComConnectSlave()
Method Detail

ExeCom

public Int_t ExeCom()

SetLogin

public void SetLogin(Go4CommandMode_t mode)

SetPassword

public void SetPassword(const char * wd)

SetSlaveDir

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

SetSlaveExecutable

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

SetSlaveHost

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

SetSlaveMode

public void SetSlaveMode(Int_t mode)
Specify client mode (meaning defined by taskhandler user, i.e. analysisclient in go4)

SetSlaveName

public void SetSlaveName(const char * name)
Specify the name of the client to be launched

SetSlavePort

public void SetSlavePort(UInt_t num)

SetStartServer

public void SetStartServer(Bool_t on)

Association Links

to Class Go4CommandMode_t

specify login mode

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005