Skip to content

2. Configuration.json

Jaewook Byun edited this page Feb 26, 2024 · 2 revisions

In bootstrapping, Chronoweb loads 'configuration.json' (1) Runnable Jar: as a first common-line argument (1) IDE: in a src/main/resources folder

An example of the self-explainable configuration files is shown as follows:

{
	"_port" : "an integer value for port (default 8080)",
	"port" : 80,

	"_data_storage_type" : "{memory|persistent}",
	"data_storage_type" : "memory",

	"_db_name" : "mongodb database name to be used if data_storage_type is persistent",
	"db_name" : "chronoweb",

	"_db_connection_string" : "mongo connection string if data_storage_type is persistent",
	"db_connection_string" : "mongodb://localhost:27017",

	"_number_of_verticles" : "The number of cores (default is cores + 1) as integer value",
	"number_of_verticles" : 1,
	
	"_gamma_base_directory" : "The root directory for gamma tables",
	"gamma_base_directory" : "d:\\kairos"
}

Clone this wiki locally