Skip to content

Commit

Permalink
0002878: Provide for BSH scripting when reading properties files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hanes committed Oct 25, 2016
1 parent c3cc03b commit 4c53b93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion symmetric-assemble/src/asciidoc/setup/engine-properties.ad
Expand Up @@ -18,7 +18,13 @@ If the properties are changed in
they will take effect across all engines deployed to the server.

NOTE: You can use the variable `$(hostName)` to represent the host name of the machine when defining these properties
(for example, external.id=`$(hostName)`).
(for example, external.id=`$(hostName)`). You can also access external id, engine name, node group id, sync URL, and registration URL in this manner.
(for example, engine.name=$(nodeGroupId)-$(externalId)).

NOTE: You can also use BSH script for the external id, engine name, node group id, sync URL, and registration URL. Use back ticks to indicate the
BSH expression, and note that only one BSH expression is supporter for a given property line. The script can be prefixed or suffixed with fixed text.
For example, if you wish to based the external id off of just a part of the hostname (e.g., substring of hostname):
external.id=store-`import org.apache.commons.lang.StringUtils; return StringUtils.substring(hostName,2,4);`


engine.name::
Expand Down

0 comments on commit 4c53b93

Please sign in to comment.