ark::logging::PresignedUrlLogRegistry

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


A HTTP-based log registry. Reads files from HTTP directly, using the pre-supplied URLs and key mappings.

Methods

  • PresignedUrlLogRegistry(PresignedUrlLogRegistryConfiguration config)
    Initializes a new log registry.

  • ~PresignedUrlLogRegistry()
    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.

  • size_t mapping_refresh_count()
    Returns the number of times the mappings have been refreshed. Used for testing purposes.