#include <DavixFile.h>
Public Member Functions | |
virtual void | abort (void) |
void | close (void) override |
virtual void | create (const char *name, bool exclusive=false, int perms=0666) |
virtual void | create (const std::string &name, bool exclusive=false, int perms=0666) |
DavixFile (const char *name, int flags=IOFlags::OpenRead, int perms=0666) | |
DavixFile (const std::string &name, int flags=IOFlags::OpenRead, int perms=0666) | |
DavixFile (void) | |
virtual void | open (const char *name, int flags=IOFlags::OpenRead, int perms=0666) |
virtual void | open (const std::string &name, int flags=IOFlags::OpenRead, int perms=0666) |
IOOffset | position (IOOffset offset, Relative whence=SET) override |
virtual IOOffset | position (IOOffset offset, Relative whence=SET)=0 |
virtual IOOffset | position (void) const |
IOSize | read (IOBuffer into, IOOffset pos) |
IOSize | read (void *into, IOSize n) override |
virtual IOSize | read (void *into, IOSize n, IOOffset pos) |
IOSize | readv (IOBuffer *into, IOSize buffers) override |
IOSize | readv (IOPosBuffer *into, IOSize buffers) override |
void | resize (IOOffset size) override |
IOSize | write (const void *from, IOSize n) override |
virtual IOSize | write (const void *from, IOSize n, IOOffset pos) |
IOSize | write (IOBuffer from, IOOffset pos) |
~DavixFile (void) override | |
Public Member Functions inherited from Storage | |
virtual bool | eof (void) const |
virtual void | flush (void) |
virtual IOOffset | position (void) const |
virtual bool | prefetch (const IOPosBuffer *what, IOSize n) |
IOSize | read (IOBuffer into) |
IOSize | read (IOBuffer into, IOOffset pos) |
virtual IOSize | read (void *into, IOSize n)=0 |
virtual IOSize | read (void *into, IOSize n, IOOffset pos) |
int | read (void) |
virtual IOSize | readv (IOBuffer *into, IOSize buffers) |
virtual void | rewind (void) |
virtual IOOffset | size (void) const |
Storage (void) | |
virtual IOSize | write (const void *from, IOSize n)=0 |
virtual IOSize | write (const void *from, IOSize n, IOOffset pos) |
IOSize | write (IOBuffer from) |
IOSize | write (IOBuffer from, IOOffset pos) |
IOSize | write (unsigned char byte) |
virtual IOSize | writev (const IOBuffer *from, IOSize buffers) |
virtual IOSize | writev (const IOPosBuffer *from, IOSize buffers) |
~Storage (void) override | |
Public Member Functions inherited from IOInput | |
IOSize | read (IOBuffer into) |
int | read (void) |
IOSize | xread (IOBuffer into) |
IOSize | xread (void *into, IOSize n) |
IOSize | xreadv (IOBuffer *into, IOSize buffers) |
virtual | ~IOInput (void) |
Destruct the stream. A no-op. More... | |
Public Member Functions inherited from IOOutput | |
IOSize | write (IOBuffer from) |
IOSize | write (unsigned char byte) |
virtual IOSize | writev (const IOBuffer *from, IOSize buffers) |
IOSize | xwrite (const void *from, IOSize n) |
IOSize | xwrite (IOBuffer from) |
IOSize | xwritev (const IOBuffer *from, IOSize buffers) |
virtual | ~IOOutput (void) |
Destruct the stream. A no-op. More... | |
Static Public Member Functions | |
static void | configureDavixLogLevel () |
Private Attributes | |
std::unique_ptr< Davix::DavPosix > | m_davixPosix |
Davix_fd * | m_fd |
std::string | m_name |
Additional Inherited Members | |
Public Types inherited from Storage | |
enum | Relative { SET, CURRENT, END } |
Definition at line 8 of file DavixFile.h.
DavixFile::DavixFile | ( | void | ) |
Definition at line 18 of file DavixFile.cc.
DavixFile::DavixFile | ( | const char * | name, |
int | flags = IOFlags::OpenRead , |
||
int | perms = 0666 |
||
) |
Definition at line 20 of file DavixFile.cc.
References HLT_FULL_cff::flags, and Skims_PA_cff::name.
DavixFile::DavixFile | ( | const std::string & | name, |
int | flags = IOFlags::OpenRead , |
||
int | perms = 0666 |
||
) |
Definition at line 24 of file DavixFile.cc.
References HLT_FULL_cff::flags, and Skims_PA_cff::name.
|
override |
Definition at line 28 of file DavixFile.cc.
|
virtual |
Definition at line 51 of file DavixFile.cc.
References cms::Exception::addContext(), and submitPVResolutionJobs::err.
|
overridevirtual |
Reimplemented from Storage.
Definition at line 33 of file DavixFile.cc.
References cms::Exception::addContext(), submitPVResolutionJobs::err, and eostools::move().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
|
static |
|
virtual |
Definition at line 144 of file DavixFile.cc.
References generator_cfi::exclusive, Skims_PA_cff::name, IOFlags::OpenCreate, IOFlags::OpenExclusive, IOFlags::OpenTruncate, and IOFlags::OpenWrite.
|
virtual |
Definition at line 150 of file DavixFile.cc.
References generator_cfi::exclusive, Skims_PA_cff::name, IOFlags::OpenCreate, IOFlags::OpenExclusive, IOFlags::OpenTruncate, and IOFlags::OpenWrite.
|
virtual |
Definition at line 160 of file DavixFile.cc.
References cms::Exception::addContext(), edm::errors::FileOpenError, HLT_FULL_cff::flags, Skims_PA_cff::name, IOFlags::OpenRead, and X509Authentication().
|
virtual |
Definition at line 156 of file DavixFile.cc.
References HLT_FULL_cff::flags, and Skims_PA_cff::name.
Implements Storage.
Definition at line 348 of file DavixFile.cc.
References cms::Exception::addContext(), hltrates_dqm_sourceclient-live_cfg::offset, mps_fire::result, and L1DTConfigBti_cff::SET.
virtual IOOffset Storage::position |
IOOffset Storage::position |
Definition at line 72 of file Storage.cc.
IOSize Storage::read |
Definition at line 10 of file Storage.cc.
Read into into at most n number of bytes.
If this is a blocking stream, the call will block until some data can be read, end of input is reached, or an exception is thrown. For a non-blocking stream the available input is returned. If none is available, an exception is thrown.
In | case of error, a #IOError exception is thrown. This includes the situation where the input stream is in non-blocking mode and no input is currently available (FIXME: make this simpler; clarify which exception). |
Implements IOInput.
Definition at line 312 of file DavixFile.cc.
References cms::Exception::addContext(), fileCollector::done, edm::errors::FileReadError, dqmiodumpmetadata::n, and alignCSCRings::s.
IOSize Storage::read |
Definition at line 12 of file Storage.cc.
Read from the input stream into multiple scattered buffers. There are buffers to fill in an array starting at into; the memory those buffers occupy does not need to be contiguous. The buffers are filled in the order given, eac buffer is filled fully before the subsequent buffers.
If this is a blocking stream, the call will block until some data can be read, end of input is reached, or an exception is thrown. For a non-blocking stream the available input is returned. If none is available, an exception is thrown.
The base class implementation uses read(void *, IOSize) method, but derived classes may implement a more efficient alternative.
In | case of error, a #IOError exception is thrown. However if some data has already been read, the error is swallowed and the method returns the data read so far. It is assumed that persistent errors will occur anyway on the next read and sporadic errors like stream becoming unvailable can be ignored. Use xread() if a different policy is desirable. |
Reimplemented from IOInput.
Definition at line 220 of file DavixFile.cc.
References cms::Exception::addContext(), cms::cuda::assert(), data, edm::errors::FileReadError, mps_fire::i, alignCSCRings::s, IOBuffer::size(), and dqmMemoryStats::total.
|
overridevirtual |
Reimplemented from Storage.
Definition at line 266 of file DavixFile.cc.
References cms::Exception::addContext(), cms::cuda::assert(), data, edm::errors::FileReadError, mps_fire::i, IOPosBuffer::offset(), alignCSCRings::s, IOPosBuffer::size(), and dqmMemoryStats::total.
|
overridevirtual |
Implements Storage.
Definition at line 371 of file DavixFile.cc.
References cms::Exception::addContext().
Write n bytes of data starting at address from.
In | case of error, an exception is thrown. However if the stream is in non-blocking mode and cannot accept output, it will not throw an exception – the return value will be less than requested. |
Implements IOOutput.
Definition at line 341 of file DavixFile.cc.
References cms::Exception::addContext(), and edm::errors::FileWriteError.
IOSize Storage::write |
Definition at line 44 of file Storage.cc.
IOSize Storage::write |
Definition at line 42 of file Storage.cc.
|
private |
Definition at line 40 of file DavixFile.h.
|
private |
Definition at line 39 of file DavixFile.h.
|
private |
Definition at line 41 of file DavixFile.h.