Service Registry (Registrar) Command Line Utilities Reference
The command line utilities are located in the /scripts directory. Each
uses the Registrar API to implement common service registry functionality. All of the
command line tools that run during service uptime take a -factory argument
that allows you to specify the factory class that will be used to get
handles to Mobius network services. Omitting this flag will cause the
tools to use the default factory for handles. Scripts ending .bat are
for Windows, .sh for *nix.
- Start a Service Registry
-
Starts a Service Registry server, parsing the config file passed in.
Starting a Service Registry is a generic action, the specifics of which are determined by
your config file.
Script name:startRegistrar
Arguments:
Path to config file (required) - Get Service Data
-
Prints some useful information about the Service Registry service itself, including
uptime and supported request types.
Script name:getServiceData
Arguments:
-registryRegistry service ID (required)
-xmlOnlyPrint the xml result - Get Service List
-
Prints out a list of the registered services.
Script name:getServiceList
Arguments:
-registryRegistry service ID (required)
-serviceFilter by Service ID
-serviceTypeFilter by Service Type - Register a Service
-
Registers a new service with the Service Registry.
Script name:registerService
Arguments:
-portsList of ports (PROTOCOL,port) that the service listens on. (required)
-hostThe hostname that the service is running on. (required)
-registryRegistry service ID (required)
-typeThe type of service (MAKO, GME, REGISTRAR). (required) - Remove a Service
-
Removes a service from the Service Registry.
Script name:removeService
Arguments:
-registryRegistry service ID (required)
-serviceID of the service to remove. (required) - Stop the Service Registry
-
Stops the Service Registry, causing it to exit.
Script name:stopRegistrar
Arguments:
-registryRegistry service ID (required)