Terracotta 10.11 | Terracotta Server Administration Guide | Parameter Substitution
 
Parameter Substitution
Parameter substitution provides a way to substitute variables with pre-defined system properties in the Terracotta Server configuration file. Thus, a significant number of fields can be intelligently populated based on machine specific properties. Parameter substitution is commonly done for hostnames, IP addresses and directory paths.
The following predefined substitutions are available for use:
Parameter
Description
%h
the fully-qualified host name of the machine
%i
the IP address of the machine corresponding to localhost
%D
the time stamp corresponding to the current date-time in yyyyMMddHHmmssSSS format
%H
the user's home directory corresponding to the user.home Java system property
%n
the username corresponding to the user.name Java system property
%o
the operating system name corresponding to the os.name Java system property
%a
the processor architecture corresponding to the os.arch Java system property
%v
the operating system version corresponding to the os.version Java system property
%t
the temporary directory corresponding to the java.io.tmpdir Java system property
%d
unique temporary directory
%(system property)
a standard or custom Java system property. If a custom Java property needs to be used, it should be first set in the JVM by setting it in JAVA_OPTS in the -Djava.custom.property=value format.
Note:
The variable %i is expanded into a value determined by the host's networking setup. In many cases that setup is in a hosts file containing mappings that may influence the value of %i. Test this variable in your production environment to check the value it interpolates.