// @(#)root/proof:$Id: TProofNodeInfo.h 20882 2007-11-19 11:31:26Z rdm $ // Author: Paul Nilsson 7/12/2005 /************************************************************************* * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TProofNodeInfo #define ROOT_TProofNodeInfo ////////////////////////////////////////////////////////////////////////// // // // TProofNodeInfo // // // // Implementation of PROOF node info. // // The purpose of this class is to provide a complete node description // // for masters, submasters and workers. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TString #include "TString.h" #endif class TProofResourcesStatic; class TProofNodeInfo : public TObject { friend class TProofResourcesStatic; public: enum ENodeType { kMaster, kSubMaster, kWorker }; private: ENodeType fNodeType; // Distinction between master, submaster and worker TString fNodeName; // Name of the node TString fWorkDir; // Working directory TString fOrdinal; // Worker ordinal number TString fImage; // File system image TString fId; // Id number TString fConfig; // Configuration file name [for submasters] TString fMsd; // Msd value [for submasters] Int_t fPort; // Port number Int_t fPerfIndex; // Performance index public: TProofNodeInfo(); TProofNodeInfo(const char *str); TProofNodeInfo(const TProofNodeInfo &nodeInfo); ~TProofNodeInfo() { } ENodeType GetNodeType() const { return fNodeType; } const TString &GetNodeName() const { return fNodeName; } const TString &GetWorkDir() const { return fWorkDir; } const TString &GetOrdinal() const { return fOrdinal; } const TString &GetImage() const { return fImage; } const TString &GetId() const { return fId; } const TString &GetConfig() const { return fConfig; } const TString &GetMsd() const { return fMsd; } Int_t GetPort() const { return fPort; } Int_t GetPerfIndex() const { return fPerfIndex; } void Assign(const TProofNodeInfo &n); void Print(const Option_t *) const; static ENodeType GetNodeType(const TString &type); ClassDef(TProofNodeInfo,1) // Class describing a PROOF node }; #endif