36 const char *ftitle ,
Int_t compress ) :
37 TMemFile(filename,option,ftitle,compress),fSocket(0),fServerIdx(-1),fServerVersion(0),fClassSent(0),fMessage(
kMESS_OBJECT)
82 if (host == 0 || host[0] ==
'\0') {
90 Error(
"UploadAndReset",
"Could not contact the server %s:%d\n",host,port);
100 if (
n < 0 && kind != 0 )
102 Error(
"UploadAndReset",
"Unexpected server message: kind=%d idx=%d\n",kind,
fServerIdx);
108 if (
n < 0 && kind != 1 )
110 Fatal(
"UploadAndReset",
"Unexpected server message: kind=%d status=%d\n",kind,
fServerVersion);
126 Error(
"UploadAndReset",
"Upload to the merging server failed with %d\n",error);
179 Error(
"Write const",
"A const TFile object should not be saved. We try to proceed anyway.");
199 for(
Int_t c = 0;
c < isize &&
c < ssize; ++
c) {
Array of chars or bytes (8 bits per element).
void Set(Int_t n)
Set size of this array to n chars.
virtual void WriteInt(Int_t i)
virtual void WriteTString(const TString &s)
Write TString to TBuffer.
virtual void WriteLong64(Long64_t l)
Bool_t fWritable
True if directory is writable.
virtual void Close(Option_t *option="")
Close a file.
TArrayC * fClassIndex
!Index of TStreamerInfo classes written to this file
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0)
Write memory objects to this file.
virtual Long64_t GetEND() const
virtual void WriteStreamerInfo()
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
A TMemFile is like a normal TFile except that it reads and writes only from memory.
void ResetAfterMerge(TFileMergeInfo *)
Wipe all the data from the permanent buffer but keep, the in-memory object alive.
virtual Long64_t CopyTo(void *to, Long64_t maxsize) const
Copy the binary representation of the TMemFile into the memory area starting at 'to' and of length at...
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
void Reset()
Reset the message buffer so we can use (i.e. fill) it again.
virtual const char * GetName() const
Returns name of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TParallelMergingFile(const char *filename, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose)
Constructor.
~TParallelMergingFile()
Destructor.
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0)
Write memory objects to this file and upload them to the parallel merge server.
virtual void WriteStreamerInfo()
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
virtual void Close(Option_t *option="")
Close a file.
Bool_t UploadAndReset()
Upload the current file data to the merging server.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
virtual void Close(Option_t *opt="")
Close the socket.
virtual Bool_t IsValid() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
TString & ReplaceAll(const TString &s1, const TString &s2)
This class represents a WWW compatible URL.
const char * GetHost() const
const char * GetOptions() const