ark::logging::LogRegistry

Defined in header “ark/logging/log_registry.hh”.


A log registry provides an abstraction over data storage for the log reader, allowing the log reader to access data from multiple sources transparently.

Methods

  • ~LogRegistry()
    Virtual destructor, for cleanup.

  • core::Url key_to_url(const std::string & key_name)
    Returns a URL that is suitable for requesting the given key name from this registry. If this is a file registry, this could be a file path. If this is a remote registry, it would be the URL to that file.

  • std::string read_into_buffer(const std::string & key_name)
    Reads the given path into a string, and returns that string to you. This can block for some time, and will throw if there is an error.

  • LogFileHandlePtr read(const std::string & key_name)
    Opens the given file handle, based on key name. This returns a shared pointer to the file handle. You own the lifetime of this object you can invoke close() or let it fall out of scope as you wish.