You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Runtime 2020.7 The xUML Runtime Tool xuml-tool is a tool that provides means to work with xUML repositories. You can

System Requirements

This tool only works on Linux operating systems. You need at least

  • Linux kernel 4.19
  • GLibc 2.28

Commands

unpack

Unpack a given repository file to the destination directory.
The repository will be unpacked to a sub-directory in the destination directory. The name of the sub-directory is derived from the repository file name.

Parameters / OptionsMandatoryAllowed ValuesExample
Path to a repository file.(tick)a valid path
xuml-tool unpack ./hello_world.rep .
Path to a parent directory to extract the repository to.(tick)

deploy

Deploy a given repository to a given destination.
The repository will be unpacked to a sub-directory in the destination directory.The name of the sub-directory is derived from the composite service name.

Repositories that have been deployed with this command satisfy xUML Runtime requirements and can be run by starting the xUML Runtime as described on xUML Runtime Command Line Options.

They do not satisfy Bridge requirements, though, and cannot be managed with a Bridge. Do not use deploy to deploy a repository to a Bridge data directory.

Parameters / OptionsMandatoryDescriptionAllowed ValuesExample
Path to a repository file.(tick)
a valid path
xuml-tool deploy ./hello_world.rep /opt/xuml_services
Path to a parent directory to extract the repository to.(tick)
--server-hostname

Specify a value for setting ${server_hostname}. Upon deploying to a Bridge, this setting is replaced automatically by the configured external host name. When deploying with xuml-tool, it must be set explicitly.

${server_hostname} can also be specified by environment variable XUMLT_SERVER_HOSTNAME .
Refer to xUML Service Settings below for an explanation of how to provide setting variables for deployment.

localhostDefault value if not specified.
a valid external host name
--existing
Specify what to do if the repository being deployed is already existent in the target directory.removeRemove the repository from the target folder if already existent, and deploy the new repository.
delete
overwriteOverwrite files of an already existing repository.
abortAbort deployment if the repository is already existent (default).
Refer to xUML Service Settings below for an explanation of how to provide setting variables for deployment.

run

Deploy and run a given repository.
This command uses the deploy command described above in combination with Runtime command bridgeserver (see xUML Runtime Command Line Options).

Parameters / OptionsMandatoryDescriptionAllowed ValuesExample
Path to a repository file.(tick)Provide the path to the repository file to be deployed and started.
The deploy target directory is derived from the configuration file specified with --server-config.
a valid path
xuml-tool run ./hello_world.rep --server-config config.json 
--server-hostname scheer-acme.com
--server-config(tick)

Provide the path to an an xUML Runtime configuration file containing Runtime command line options. The contents of such a file are described on xUML Runtime Command Line Options.

This file must at least contain a minimal configuration consisting of

  • the path to a license file (license)
  • the path to the bridgeserver binary directory (dirs.binary)
  • the path to the data directory (equivalent of the Bridge data directory) (dirs.data)
a valid path to a configuration file
--server-hostname

Specify a value for setting ${server_hostname}. Upon deploying to a Bridge, this setting is replaced automatically by the configured external host name. When deploying with xuml-tool, it must be set explicitly.

${server_hostname} can also be specified by environment variable XUMLT_SERVER_HOSTNAME .
Refer to xUML Service Settings below for an explanation of how to provide setting variables for deployment.

localhost

Default value if not specified.

a valid external host name
--existing
Specify what to do if the repository being deployed is already existent in the target directory.removeRemove the repository from the target folder if already existent, and deploy the new repository.
delete
overwriteOverwrite files of an already existing repository.
abortAbort deployment if the repository is already existent (default).

xUML Service Settings

A service repository contains lots of tab files that describe the service. Concerning xUML service settings, these tab files contain variable content that is substituted on deployment by default setting values.

Using the xuml-tool, you can overwrite those default by defining special environment variables on your system. The name format of these environment variables have to follow the following scheme: XUMLT_S_<setting id>.
<setting id> is the friendly id of a setting as defined in file substitutions.xml.

substitutions.xml
<Substitutions>
   [...]
   <Variables>
      <Variable default="2" friendlyId="AL_PS_WORKERLIMIT"
                name="ALIAS_Persistent State_WorkerLimit"
                type=""/>
      [...]
   </Variables>
   [...]
   <Display>
      <Category label="Add-Ons">
         <Section label="Persistent State">
            <Override label="Persistent State: WorkerLimit: "
                      variable="ALIAS_Persistent State_WorkerLimit"/>
            [...]
         </Section>
         [...]
      </Category>
      [...]
   </Display>
   [...]
</Substitutions>

To find this file, unpack the service repository. You can find this file in the root directory.

Refer to the picture below for how to find the friendly id of a setting and use it to build the name of the environment variable.

  1. Search for the Bridge display label of the setting.
  2. Search for the related variable name.
  3. Take the friendlyId from the variable and...
  4. ...use it to build the name of the environment variable (add leading XUMLT_S_).



  • No labels