|
ATLAS Offline Software
|
Go to the documentation of this file.
55 const QString& tmpcopydir,
56 int maxLocalFilesToKeep,
63 QUrl
url(fileinfoUrl);
66 QString infofilebasename = QFileInfo(
path).fileName();
67 if (!infofilebasename.isEmpty()&&
path.endsWith(infofilebasename)) {
115 message(
"Error: No temporary retrieval directory set!");
119 QString
target = ad+
"downloadedfileinfo.txt";
126 if (!
err.isEmpty()) {
127 message(
"Problems starting download to get file-info file: "+
err);
136 if (!newEvtsOnServerInfo->
isValid()) {
137 message(
"Problems decoding info in file downloaded from "+urltofile);
139 delete newEvtsOnServerInfo;
163 if (localfiledir.isEmpty()) {
164 message(
"Problems with temporary local event file directory.");
185 QList<VP1EventFile> freshLocalEvents =
freshEvents();
188 if (
evt < evtToGet) {
202 if (!
err.isEmpty()) {
203 message(
"Problems starting download of :" +
url);
211 message(
"Problems with temporary local download directory.");
233 if (!QFile::rename(localtargetfile,
data)) {
234 message(
"Error: Could not move "+localtargetfile+
" to "+
data);
QTimer * examineEvtsOnServerTimer
char data[hepevt_bytes_allocation_ATLAS]
QString tmpLocalFileDir() const
path
python interpreter configuration --------------------------------------—
VP1AvailEvtsHttp * theclass
VP1EvtsOnServerInfo * evtsOnServer
virtual ~VP1AvailEvtsHttp()
void fileInfoDownloadSuccessful(const QString &urltofile, const QString &localtargetfile)
unsigned numberOfPendingDownloads() const
static unsigned ntmpdlcount
VP1HttpGetFile httpgetfile_fileinfo
void cleanupAndCheckForEventListChanges()
QString tmpActiveRetrievalDir()
void eventFileDownloadSuccessful(const QString &urltofile, const QString &localtargetfile, const QString &data)
const QString & error() const
VP1AvailEvtsHttp(QString fileinfoUrl, int updateInterval, int timeCutForNew, const QString &tmpcopydir, int maxLocalFilesToKeep=-1, QObject *parent=0)
VP1HttpGetFile httpgetfile_events
void message(const QString &) const
QString startDownload(const QString &urltofile, const QString &localtargetfile, const QString &md5sum="", const QString &data="")
QString lastResultToString(const QString &url)
bool inHistory(int run, int event) const
RESULT lastResult(const QString &url)
QList< VP1EventFile > freshEvents() const
void addUrl(const QString &)
int timeCutForNew() const
const QString & fileName() const
bool isDownloading(const QString &urltofile) const
bool requireNewestRunNumber() const
void fileInfoDownloadFailed(const QString &error, const QString &urltofile, const QString &localtargetfile)
void examineEvtsOnServer()
const QString & md5Sum() const
void restartExamineEvtsOnServerTimer()
void eventFileDownloadFailed(const QString &error, const QString &urltofile, const QString &localtargetfile)
VP1WebWatcher * webwatcher_fileinfo
bool isDownloadingTo(const QString &localtargetfile) const
QList< VP1EventFile > events(int timecut=-1, bool requireNewestRunNumber=false) const
void invalidateDirCache(const QString &dir)