Configuration files

Uniloader is able to read and write configuration files.

QueueMetrics configuration.properties

Reading a property

You can esily check the status of a QueueMetrics property programmatically, by calling:

uniloader cfgfile get -p realtime.agentPausedOnLogin
false

You will usually save the property to a bash variable for further decisions.

Full invocation:

NAME:
   uniloader cfgfile get - Reads a property and prints it on STDOUT.

USAGE:
   uniloader cfgfile get [command options] [arguments...]

DESCRIPTION:
   Reads a configuration.properties file and
prints on STDOUT the value that was found.

Can be used in Bash like:
  AUDIO=$(uniloader cfgfile get -f configuration.properties -p audio.url)
as to capture the value in a variable.

OPTIONS:
   --properties-file, -f "configuration.properties"   	The properties file
   --property, -p 										The name of the property to read
   --default, -d 										The default value

Writing a property

You can set a property to a desired value:

uniloader cfgfile put -p realtime.agentPausedOnLogin -v true -c "Customization 1"

The optional comment will be prepended to the property, like:

# Customization 1
realtime.agentPausedOnLogin=true

Full invocation:

NAME:
   uniloader cfgfile put - Sets a property in a properties file.

USAGE:
   uniloader cfgfile put [command options] [arguments...]

DESCRIPTION:
   This command will set the property you define in a Java
properties file or similar.

If the property is already present with the same value, it is not changed;
otherwise the previous value is commented out and the new one is appended
to the end of the file with an optional comment.

The file is always overwritten.

OPTIONS:
   --properties-file, -f "configuration.properties"	The properties file
   --property, -p 										The name of the property to set.
   --value, -v 											The new value.
   --comment, -c 										An optional comment