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);
141 for(
Int_t c = 0; c < isize; ++c) {
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) {
void ResetAfterMerge(TFileMergeInfo *)
Wipe all the data from the permanent buffer but keep, the in-memory object alive. ...
virtual const char * GetName() const
Returns name of object.
virtual Bool_t IsValid() const
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void Set(Int_t n)
Set size of this array to n chars.
TArrayC * fClassIndex
!Index of TStreamerInfo classes written to this file
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
This class represents a WWW compatible URL.
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
const char * GetOptions() const
A TMemFile is like a normal TFile except that it reads and writes only from memory.
const char * GetHost() const
virtual void WriteStreamerInfo()
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
virtual void WriteTString(const TString &s)
Write TString to TBuffer.
void Reset()
Reset the message buffer so we can use (i.e. fill) it again.
virtual void Close(Option_t *opt="")
Close the socket.
virtual void WriteStreamerInfo()
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
virtual Int_t Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0)
Write memory objects to this file.
TParallelMergingFile(const char *filename, Option_t *option="", const char *ftitle="", Int_t compress=1)
Constructor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
~TParallelMergingFile()
Destructor.
virtual void WriteInt(Int_t i)
Bool_t UploadAndReset()
Upload the current file data to the merging server.
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
Bool_t fWritable
True if directory is writable.
virtual void Close(Option_t *option="")
Close a file.
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 Long64_t GetEND() const
virtual void WriteLong64(Long64_t l)
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
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...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Close(Option_t *option="")
Close a file.
Array of chars or bytes (8 bits per element).