36 const char *ftitle ,
Int_t compress ) :
39 TString serverurl = strstr(
fUrl.GetOptions(),
"pmerge=");
63 if (0==
fSocket->Send(
"Finished")) {
81 if (path && strlen(path) > 0 && path[0] ==
'/') {
85 Error(
"UploadAndReset",
"Could not contact the server %s\n", path);
94 if (host == 0 || host[0] ==
'\0') {
102 Error(
"UploadAndReset",
"Could not contact the server %s:%d\n", host, port);
113 if (
n < 0 && kind != 0 )
115 Error(
"UploadAndReset",
"Unexpected server message: kind=%d idx=%d\n",kind,
fServerIdx);
121 if (
n < 0 && kind != 1 )
123 Fatal(
"UploadAndReset",
"Unexpected server message: kind=%d status=%d\n",kind,
fServerVersion);
139 Error(
"UploadAndReset",
"Upload to the merging server failed with %d\n",error);
192 Error(
"Write const",
"A const TFile object should not be saved. We try to proceed anyway.");
212 for(
Int_t c = 0;
c < isize &&
c < ssize; ++
c) {
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Array of chars or bytes (8 bits per element).
Bool_t fWritable
True if directory is writable.
virtual Int_t Write(const char *=nullptr, Int_t=0, Int_t=0) override
Write this object to the current directory.
virtual void Close(Option_t *option="")
TArrayC * fClassIndex
!Index of TStreamerInfo classes written 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...
TMemFile(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Long64_t defBlockSize=0LL)
Usual Constructor.
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...
void ResetAfterMerge(TFileMergeInfo *) override
Wipe all the data from the permanent buffer but keep, the in-memory object alive.
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
const char * GetName() const override
Returns name of object.
~TParallelMergingFile()
Destructor.
TParallelMergingFile(const char *filename, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault)
Constructor.
void WriteStreamerInfo() override
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
void Close(Option_t *option="") override
Close a file.
Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsiz=0) override
Write memory objects to this file and upload them to the parallel merge server.
Bool_t UploadAndReset()
Upload the current file data to the merging server.
This class implements client sockets.
TString & ReplaceAll(const TString &s1, const TString &s2)
This class represents a WWW compatible URL.