DPML
DPML Metro Station CLI
HomeUtilitiesStationMetroDepotTransit
Station Command Line
Description

The station commandline handler provides support for the startup and shutdown of the station as a background process, the addition, modification and removal of application profiles, and the starting, stopping and restarting of applications under dedicated virtual machines. In a production environment the station would normally be setup as a background service (e.g. on Windows resources are provided for the deployment of the Station as an NT service). During station startup any application profile declaring a AUTOMATIC startup policy will be deployed. Applications register themselves with the station following which subsequent management operations invoked by the Station CLI are mediated through the station server process.

Commandline
$ station startup | add <key> | set <key> | start <key> | control <key> 
| stop <key> | restart <key> | info <key> | remove <key> | shutdown | help
Commands
startupStart the station server (implying starup of all applications with an AUTOMATIC startup policy).
add Add a new application profile to the station registry.
setSet of feature of an application.
startStart an application.
controlManage the component.
stopStop an application.
restartRestart an application.
infoList information about registered applications.
removeRemove an application from the registry.
shutdownShutdown the station (implying shutdown of all applications under the control of the station).
Example
$ station help
Usage:
station startup | add <key> | set <key> | start <key> | control <key> 
| stop <key> | restart <key> | info <key> | remove <key> | shutdown | help
options
  startup                                                             Startup the station.
    -port -registry
      -port <port>                                                    RMI Registry port.
      -registry <artifact>                                            Application registry store.
      -D<property>=<value>                                            Set property values.
  add <key>                                                           Add a profile.
    -uri -policy  -dir -title -registry -startup -shutdown -config
      -uri <artifact>                                                 Codebase uri.
      -policy <policy>                                                Startup policy.
      -D<property>=<value>                                            Set property values.
      -dir (-basedir) <path>                                          Base directory.
      -title <title>                                                  Application title.
      -registry <artifact>                                            Application registry store.
      -startup <seconds>                                              Startup timeout.
      -shutdown <seconds>                                             Shutdown timeout.
      -config <uri>                                                   Application configuration.
  set <key>                                                           Set an application feature.
    -uri -policy  -dir -title -registry -startup -shutdown -config
      -uri <artifact>                                                 Codebase uri.
      -policy <policy>                                                Startup policy.
      -D<property>=<value>                                            Set property values.
      -dir (-basedir) <path>                                          Base directory.
      -title <title>                                                  Application title.
      -registry <artifact>                                            Application registry store.
      -startup <seconds>                                              Startup timeout.
      -shutdown <seconds>                                             Shutdown timeout.
      -config <uri>                                                   Application configuration.
  start <key>                                                         Start application.
  control <key>                                                       Manage the application.
  stop <key>                                                          Stop application.
  restart <key>                                                       Restart application.
  info <key>                                                          Station or profile info.
    -port|-registry
      -port <port>                                                    RMI Registry port.
      -registry <artifact>                                            Application registry store.
  remove <key>                                                        Remove profile.
    -port|-registry
      -port <port>                                                    RMI Registry port.
      -registry <artifact>                                            Application registry store.
  shutdown                                                            Shutdown the station.
  help                                                                Print command help.