#include <BESCmdInterface.h>
Inheritance diagram for BESCmdInterface:
Public Member Functions | |
BESCmdInterface () | |
Instantiate a BESCmdInterface object. | |
BESCmdInterface (const string &cmd) | |
virtual | ~BESCmdInterface () |
virtual int | execute_request () |
Override execute_request in order to register memory pool. | |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
Static Public Member Functions | |
static void | add_init_callback (p_bes_init init) |
static void | add_end_callback (p_bes_end end) |
Protected Member Functions | |
virtual void | initialize () |
Initialize the BES. | |
virtual void | validate_data_request () |
Validate the incoming request information. | |
virtual void | build_data_request_plan () |
Build the data request plan using the BESCmdParser. | |
virtual void | execute_data_request_plan () |
Execute the data request plan. | |
virtual void | invoke_aggregation () |
Invoke the aggregation server, if there is one. | |
virtual void | transmit_data () |
Transmit the response object. | |
virtual void | log_status () |
Log the status of the request to the BESLog file. | |
virtual void | clean () |
Clean up after the request is completed. | |
virtual int | exception_manager (BESException &e) |
Manage any exceptions thrown during the whole process. | |
virtual void | report_request () |
Report the request and status of the request to BESReporterList::TheList(). | |
virtual void | end_request () |
End the BES request. | |
Protected Attributes | |
BESDataHandlerInterface | _dhi |
BESTransmitter * | _transmitter |
The format of the request looks somethink like:
set container in catalog values c,nc/mplot.nc; define d as c; get das for d;
In this example a DAS object response is being requested. The DAS object is to be built from the definition 'd', where d is defined using the data container c. The data container c is created using the real file nc/mplot.nc
BESCmdInterface uses BESParser to parse through the request string, building up a plan to be used during the execute method. Most implementations simply log information to the BESLog file before calling the parent class method.
BESParser
|
Instantiate a BESCmdInterface object.
|
|
|
|
|
|
|
|
|
|
Build the data request plan using the BESCmdParser.
Reimplemented from BESInterface. |
|
Clean up after the request is completed. Calls the parent method clean and then logs to the BESLog file saying that we are done and exiting the process. The exit actually takes place in the module code.
Reimplemented from BESInterface. |
|
dumps information about this object Displays the pointer value of this instance
Reimplemented from BESInterface. |
|
End the BES request. This method allows developers to add callbacks at the end of a request, to do any cleanup or do any extra work at the end of a request |
|
Manage any exceptions thrown during the whole process. Specific responses are generated given a specific Exception caught. If additional exceptions are thrown within derived systems then implement those in the derived exception_manager methods. This is a catch-all manager and should be called once derived methods have caught their exceptions.
Reimplemented in BESApacheInterface. |
|
Execute the data request plan. Simply calls the parent method. Prior to calling the parent method logs a message to the dods log file.
Reimplemented from BESInterface. |
|
Override execute_request in order to register memory pool. Once the memory pool is initialized hand over control to parent class to execute the request. Once completed, unregister the memory pool. This needs to be done here instead of the initialization method because??? Reimplemented from BESInterface. Reimplemented in BESApacheInterface. |
|
Initialize the BES. Determines what transmitter this BES will be using to transmit response objects and then calls the parent initialization method in order to initialize all global variables.
Reimplemented from BESInterface. Reimplemented in BESApacheInterface. |
|
Invoke the aggregation server, if there is one. Simply calls the parent method. Prior to calling the parent method logs a message to the dods log file.
Reimplemented from BESInterface. |
|
Log the status of the request to the BESLog file.
Reimplemented from BESInterface. |
|
Report the request and status of the request to BESReporterList::TheList(). If interested in reporting the request and status of the request then one must register a BESReporter with BESReporterList::TheList(). If no BESReporter objects are registered then nothing happens.
|
|
Transmit the response object. Simply calls the parent method. Prior to calling the parent method logs a message to the dods log file.
Reimplemented from BESInterface. |
|
Validate the incoming request information.
Reimplemented from BESInterface. Reimplemented in BESApacheInterface. |
|
|
|
|