Hyrax - BES Client commands: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
Line 60: Line 60:
:* deletes all of the currently defined definitions from the specified container storage (defaults to volatile storage).
:* deletes all of the currently defined definitions from the specified container storage (defaults to volatile storage).


== Added commands for dap enabled servers: ==
== Added commands for dap enabled servers ==


If you are serving up OPeNDAP data responses (DAS, DDS, DataDDS) then you will have loaded the dap commands in your configuration file. Here are the available commands in the dap module.
If you are serving up OPeNDAP data responses (DAS, DDS, DataDDS) then you will have loaded the dap commands in your configuration file. Here are the available commands in the dap module.


<pre>
    <showCatalog node="node_name" />


* Shows catalog information, including contents if a
* <showCatalog node="node_name" />
  container. If node is not specified then the root node
:* Shows catalog information, including contents if a container. If node is not specified then the root node information is returned. If node is specified then that nodes information is returned.
  information is returned. If node is specified then that nodes
  information is returned.</LI>


    <showInfo node="node_name" />
* <showInfo node="node_name" />
:* Shows catalog information for just that node, the root node if no node is specified. If the node is a container the contents are not displayed.


* Shows catalog information for just that node, the root node
* <get type="das|dds|dods|ddx" definition="def_name" returnAs="returnAs" />
  if no node is specified. If the node is a container the contents
:* dds: request the data descriptor structure
  are not displayed.</LI>
:* das: request the data attributes
:* ddx: request the data attributes and data descriptor structure returned as an xml document
:* dods: request for the data stream, this output is an octec binary
:* stream which requires the analysis by the client dods library


    <get type="das|dds|dods|ddx" definition="def_name" returnAs="returnAs" />
* <setContext name="errors">dap2|xml|html|txt</setContext>
 
:* set the context 'errors' to dap2 in order to have all exceptions and errors formatted as dap2 error messages in the response.
* dds: request the data descriptor structure
* das: request the data attributes
* ddx: request the data attributes and data descriptor structure
  returned as an xml document
* dods: request for the data stream, this output is an octec binary
* stream which requires the analysis by the client dods library
 
    <setContext name="errors">dap2|xml|html|txt</setContext>
 
* set the context 'errors' to dap2 in order to have all
  exceptions and errors formatted as dap2 error messages in
  the response.
 
</pre>


== '''[[BES_XML_Commands | More Details Here]]''' ==
== '''[[BES_XML_Commands | More Details Here]]''' ==

Revision as of 17:27, 3 December 2009

Client commands

Current core commands available with BES

  • <showHelp />
  • shows this help
  • <showVersion />
  • shows the version of OPeNDAP and each data type served by this server
  • <showProcess />
  • shows the process number of this application. This command is only available in developer mode.
  • <showConfig />
  • shows all key/value pairs defined in the bes configuration file. This command is only available in developer mode.
  • <showStatus />
  • shows the status of the server
  • <showContainers />
  • shows all containers currently defined
  • <showDefinitions />
  • shows all definitions currently defined
  • <showContext />
  • shows all context name/value pairs set in the BES
  • <setContainer name="container_name" space="store_name" type="data_type">real_name</setContainer>
  • defines a symbolic name representing a data container, usually a file, to be used by definitions, described below
  • the space property is the name of the container storage and is optional. Defaults to default volatile storage. Examples might include database storage, volatile storage based on catalog information.
  • real_name is the full qualified location of the data container, for example the full path to a data file.
  • data_type is the type of data that is in the dataset. For netcdf files it is nc. For some container storage the data type is optional, determined by the container storage.
  • <setContext name="context_name">context_value</setContext>
  • set the given context with the given value. No default context are used in the BES
  • <define ...>
<define name="definition_name" space="store_name">
    <container name="container_name">
        <constraint>legal_constraint</constraint>
        <attributes>attribute_list</attributes>
    </container>
    <aggregate handler="someHandler" cmd="someCommand" />
</define>
  • creates a definition using one or more containers, constraints for each of the containers, attributes to be retrieved from each container, and an aggregation. Constraints, attributes, and aggregation are all optional.
  • There can be more than one container element
  • space is the name of the definition storage. Defaults to volatile storage. Examples might include database storage.
  • <deleteContainer name="container_name" space="store_name" />
  • deletes the specified container from the specified container storage (defaults to volatile storage).
  • <deleteContainers space="store_name" />
  • deletes all of the currently defined containers from the specified container storage (defaults to volatile storage).
  • <deleteDefinition name="definition_name" space="store_name" />
  • deletes the specified definition from the specified container storage (defaults to volatile storage).
  • <deleteDefinitions space="store_name" />
  • deletes all of the currently defined definitions from the specified container storage (defaults to volatile storage).

Added commands for dap enabled servers

If you are serving up OPeNDAP data responses (DAS, DDS, DataDDS) then you will have loaded the dap commands in your configuration file. Here are the available commands in the dap module.


  • <showCatalog node="node_name" />
  • Shows catalog information, including contents if a container. If node is not specified then the root node information is returned. If node is specified then that nodes information is returned.
  • <showInfo node="node_name" />
  • Shows catalog information for just that node, the root node if no node is specified. If the node is a container the contents are not displayed.
  • <get type="das|dds|dods|ddx" definition="def_name" returnAs="returnAs" />
  • dds: request the data descriptor structure
  • das: request the data attributes
  • ddx: request the data attributes and data descriptor structure returned as an xml document
  • dods: request for the data stream, this output is an octec binary
  • stream which requires the analysis by the client dods library
  • <setContext name="errors">dap2|xml|html|txt</setContext>
  • set the context 'errors' to dap2 in order to have all exceptions and errors formatted as dap2 error messages in the response.

More Details Here