Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache IoTDB: add runtime configuration file support for connector #5

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

slawr
Copy link

@slawr slawr commented Mar 13, 2024

Currently the ServiceManager connector code that supports Apache IoTDB as a State Storage backend is configured at build-time. This commit extends the support to allow runtime configuration through a config file.

The config file is named iotdb-config.json and placed in the vissv2server directory. The file is in JSON format to follow the pattern set by existing config files within the VISS server.

The contents of the file are not validated and are assumed to be both complete and correct.

Example file:
{
"host": "localhost",
"port": "6667",
"username": "root",
"password": "root",
"queryPrefixPath": "root.test2.dev1",
"queryTimeout(ms)": 5000
}

host, port, username and password are the client configuration to be used to create a session (connection) with the IoTDB Server.

queryPrefixPath is the IoTDB database timeseries prefix to be used to access VSS nodes/keys in get/set operations.

queryTimeout(ms) is the timeout to be used in milliseconds when querying the database.

If no config file is found on server startup the default (build-time) configuration is used.

Currently the ServiceManager connector code that supports Apache IoTDB
as a State Storage backend is configured at build-time. This commit
extends the support to allow runtime configuration through a config file.

The config file is named iotdb-config.json and placed in the vissv2server
directory. The file is in JSON format to follow the pattern set by
existing config files within the VISS server.

The contents of the file are not validated and are assumed to be both
complete and correct.

Example file:
{
	"host": "localhost",
	"port": "6667",
	"username": "root",
	"password": "root",
	"queryPrefixPath": "root.test2.dev1",
	"queryTimeout(ms)": 5000
}

host, port, username and password are the client configuration to be
used to create a session (connection) with the IoTDB Server.

queryPrefixPath is the IoTDB database timeseries prefix to be used to
access VSS nodes/keys in get/set operations.

queryTimeout(ms) is the timeout to be used in milliseconds when querying
the database.

If no config file is found on server startup the default (build-time)
configuration is used.

Signed-off-by: Stephen Lawrence <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants