ark::logging::S3LogRegistry

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


A S3-based log registry. Reads files from S3 directly, using AWS APIs.

Methods

  • S3LogRegistry(S3LogRegistryConfiguration config)
    Initializes a new log registry.

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