library: libProof #include "TSlave.h" |
TSlave
class description - header file - source file - inheritance tree (.pdf)
private:
TSlave(const TSlave& s)
TSlave(const char* host, const char* ord, Int_t perf, const char* image, TProof* proof, Int_t stype, const char* workdir, const char* msd)
static TSlave* Create(const char* url, const char* ord, Int_t perf, const char* image, TProof* proof, Int_t stype, const char* workdir, const char* msd)
void Init(const char* host, Int_t port, Int_t stype)
Int_t OldAuthSetup(Bool_t master, TString wconf)
void operator=(const TSlave&)
protected:
TSlave()
virtual void FlushSocket()
void Init(TSocket* s, Int_t stype)
virtual void Interrupt(Int_t type)
virtual Int_t Ping()
virtual TObjString* SendCoordinator(Int_t kind, const char* msg = "0")
virtual void SetAlias(const char* alias)
virtual void SetStatus(Int_t st)
virtual void StopProcess(Bool_t abort, Int_t timeout)
public:
virtual ~TSlave()
static TClass* Class()
virtual void Close(Option_t* opt = "")
virtual Int_t Compare(const TObject* obj) const
Long64_t GetBytesRead() const
Float_t GetCpuTime() const
const char* GetImage() const
TFileHandler* GetInputHandler() const
TString GetMsd() const
virtual const char* GetName() const
const char* GetOrdinal() const
Int_t GetParallel() const
Int_t GetPerfIdx() const
Int_t GetPort() const
TProof* GetProof() const
const char* GetProofWorkDir() const
Int_t GetProtocol() const
Float_t GetRealTime() const
Int_t GetSlaveType() const
TSocket* GetSocket() const
Int_t GetStatus() const
const char* GetUser() const
const char* GetWorkDir() const
virtual TClass* IsA() const
virtual Bool_t IsSortable() const
virtual Bool_t IsValid() const
virtual void Print(Option_t* option = "") const
void SetInputHandler(TFileHandler* ih)
virtual void SetInterruptHandler(Bool_t)
static void SetTXSlaveHook(TSlave_t xslavehook)
virtual Int_t SetupServ(Int_t stype, const char* conffile)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
static TSlave_t fgTXSlaveHook
protected:
TString fName slave's hostname
TString fImage slave's image name
TString fProofWorkDir base proofserv working directory (info obtained from slave)
TString fWorkDir slave's working directory (info obtained from slave)
TString fUser slave's user id
Int_t fPort slave's port number
TString fOrdinal slave's ordinal number
Int_t fPerfIdx relative CPU performance index
Int_t fProtocol slave's protocol level
TSocket* fSocket socket to slave
TProof* fProof proof cluster to which slave belongs
TFileHandler* fInput input handler related to this slave
Long64_t fBytesRead bytes read by slave (info is obtained from slave)
Float_t fRealTime real time spent executing commands (info obtained from slave)
Float_t fCpuTime CPU time spent executing commands (info obtained from slave)
TSlave::ESlaveType fSlaveType type of slave (either kMaster or kSlave)
Int_t fStatus remote return status
Int_t fParallel number of active slaves
TString fMsd mass storage domain of slave
public:
static const TSlave::ESlaveType kMaster
static const TSlave::ESlaveType kSlave
static const TSlave::ESlaveStatus kInvalid
static const TSlave::ESlaveStatus kActive
static const TSlave::ESlaveStatus kInactive
TSlave
This class describes a PROOF slave server.
It contains information like the slaves host name, ordinal number,
performance index, socket, etc. Objects of this class can only be
created via TProof member functions.
TSlave(const char *url, const char *ord, Int_t perf, const char *image, TProof *proof, Int_t stype, const char *workdir, const char *msd)
Create a PROOF slave object. Called via the TProof ctor.
TSlave()
Default constructor used by derived classes
void Init(const char *host, Int_t port, Int_t stype)
Init a PROOF slave object. Called via the TSlave ctor.
The Init method is technology specific and is overwritten by derived
classes.
Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object. Called via the TSlave ctor.
The Init method is technology specific and is overwritten by derived
classes.
void Init(TSocket *s, Int_t stype)
Init a PROOF slave object using the connection opened via s. Used to
avoid double opening when an attempt via TXSlave found a remote proofd.
TSlave * Create(const char *url, const char *ord, Int_t perf, const char *image, TProof *proof, Int_t stype, const char *workdir, const char *msd)
Static method returning the appropriate TSlave object for the remote
server.
Int_t Ping()
Ping the remote master or slave servers.
Returns 0 if ok, -1 in case of error
void Interrupt(Int_t type)
Send interrupt OOB byte to master or slave servers.
Returns 0 if ok, -1 in case of error
void SetAlias(const char *)
Set an alias for this session. If reconnection is supported, the alias
will be communicated to the remote coordinator so that it can be recovered
when reconnecting
Author: Fons Rademakers 14/02/97
Last update: root/proof:$Name: $:$Id: TSlave.cxx,v 1.53 2006/06/21 16:18:26 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.