GME Command Line Utilities Reference
The command line utilities are located in the /scripts directory. Each uses the
GME API to implement common GME 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 GME
-
Starts a GME server, parsing the config file passed in.
Starting a GME is a generic action, the specifics of which are determined by
your config file.
Script Name:startMako
Arguments:
Path to config file (required) - Add An Authority
-
This program will add an authority to a GME.
Script name:addAuthority
Arguments:
-authorityThe service ID of the GME to add as an authority (required)
-serviceThe service ID of the GME (required) - Add A Namespace
-
This program will add a namespace to a GME.
Script name:addNamespace
Arguments:
-namespaceThe namespace to add (required)
-serviceThe service ID of the GME (required) - Add A Subordinate
-
This program will add a subordinate to a GME.
Script name:addSubordinate
Arguments:
-subordinateService ID of the GME to be a subordinate (required)
-serviceService ID for the GME (required) - Add A Subordinate Namespace
-
This program will add a namespace that a subordinate has authority over to a GME.
Script name:addSubordinateNamespace
Arguments:
-namespaceThe namespace to add (required)
-subordinateThe service ID of the subordinate GME (required)
-serviceThe service ID of the GME (required) - Get Authoritative Namespaces
-
This program will give you a list of the namespaces that a GME has authority over.
Script name:getAuthoritativeNamespaces
Arguments:
-serviceThe service ID of the GME (required) - Get Authorities
-
This program will give you a list of Mobius Network Service Handles describing each GME that
is an authority of the specified one.
Script name:getAuthorities
Arguments:
-serviceThe service ID of the GME (required) - Get Subordinates
-
This program will give you a list of Mobius Network Service Handles describing each GME that
is a subordinate of the specified one.
Script name:getSubordinates
Arguments:
-serviceThe service ID of the GME (required) - Publish A Schema
-
This program will publish a schema to a GME.
Script name:publishSchema
Arguments:
-serviceThe service ID of the GME (required)
-schemaThe xsd schema file name (required) - Requesting A Schema
-
This program requests a schema from a GME and prints its text to the console.
Script name:requestSchema
Arguments:
-serviceThe service ID of the GME (required)
-uriThe uri of the schema (required) - Requesting A Schema and All the Schemas it References
-
This program requests a schema from the GME and prints its text to the console. It also retrieves all
the schemas that are referenced, and all the schemas that are referenced by the referenced schemas,
ad infinitum.
Script name:getSchemaAndReferenced
Arguments:
-uriThe schema URI to retrieve (required)
-servicethe Service ID of the GME (required) - Resolving A Namespace
-
This program will attempt to resolve the authority for a give namespace.
Script name:resolveNamespace
Arguments:
-namespaceThe namespace to resolve (required)
-serviceThe service ID of the GME (required) - Listing Schemas For A Namespace
-
This program will print out a list of schema URIs for a given namespace on a GME.
Script name:schemaList
Arguments:
-namespaceThe namespace to get schema URIs from (required)
-serviceThe service ID of the GME (required) - Check Status
-
This program will request the status of a GME and print some useful information (uptime, service
descriptor, supported requests).
Script name:statusCheck
Arguments:
-serviceThe service ID of the GME (required) - Stopping the GME
-
This program stops one or more GMEs.
Script name:stopGME
Arguments:
-servicesThe service IDs of the GMEs to stop (required) - Destroying the GME
-
Under certain circumstances, you may wish to completly throw away the GME and all of its
information and start over. This program causes the GME to drop
its databases and exit, wiping out any schemata, namespace, or authority/subordinate information
it may have previously held.
Script name:destroyGME
Arguments:
-servicesThe service IDs of the GMEs to destroy (required)