Skip to main content
Part of Dynamic Visualization Store Description of various URIs used within the DVS project. Description of various URIs used within the DVS project.

URI Overview

URIs are used in the DVS API and dvs_file to specify protocol’s, locations, and options. They are mainly used during server creation to specify the communication protocol being used, where to connect, and in the DVS Cache to determine what type of cache to use, where it is located, filter specifics on what to load or not load from the cache, and compression levels if needed.

Table of Contents

Server URIs

The Server URI specifies what transport protocol to use, the machine and port to connect to if using a network connection. This is used by dvs_server_create() or DVS::CREATE_SERVER_INSTANCE() to create a server to connect to.

Note: Use all lower case for the protocol

Cache URIs

Cache URIs are used to specify what domain/type of dvs_cache to use, the host and port of the machine to connect if needed, the path of the cache on the machine, filters and options. Cache URIs are used by both the DVS API if wanting to cache data or a dvs_file to load data previously cached. The URI is set via the API by calling dvs_server_set_option() in tha C API or DVS::IServer::set_option() in the C++ API, using “CACHE_URI” as the key, and the URI as the value.
‍Example: dvs_server_set_option(“CACHE_URI”, “hdf5://localhost:1234/D:/temp/cache”)

Cache URI Domain

The first part of the Cache URI is the domain, domain options below. It is separated from the hostname by ’://’.

Cache URI Hostname/Port

The hostname and port portion of the URI are next, separated by ’:’. The hostname and port aren’t currently used but will be in the future when applicable.

Cache URI Path

The path in the cache URI can be relative or absolute. A relative path in a URI for a server option will store the cache relative to the working directory of the server data is being sent to. A relative path in a dvs_file will be relative to the location of the file itself.

Cache URI Options

Key/Value pair options can be set in the URI after ’?’ character. Options are separated with ’&’ characters.
‍Example: hdf5://localhost:1234/D:/my_cache/?option1=value1&option2=value2

Cache URI Examples

Cache Compression

Cache compression is off by default. It can be enabled by adding a query parameter of compression=value at the end of the uri. Note: Values/queries at the end of a URI are separated by ’&‘