OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
DaemonCommandHandler Class Reference

#include <DaemonCommandHandler.h>

Inheritance diagram for DaemonCommandHandler:
Inheritance graph
Collaboration diagram for DaemonCommandHandler:
Collaboration graph

Public Member Functions

 DaemonCommandHandler (const string &config)
 
virtual void dump (ostream &strm) const
 dumps information about this object More...
 
string get_config_file ()
 
virtual void handle (Connection *c)
 This particular handle() method is special because it will accept only a single command transmission from the connecting client. More...
 
void set_config_file (const string &config)
 
virtual ~DaemonCommandHandler ()
 

Detailed Description

Definition at line 43 of file DaemonCommandHandler.h.

Constructor & Destructor Documentation

DaemonCommandHandler::DaemonCommandHandler ( const string &  config)

Definition at line 126 of file DaemonCommandHandler.cc.

References BESDEBUG, BESKeys::get_value(), BESKeys::get_values(), BESDebug::IsSet(), and TheBESKeys::TheKeys().

Here is the call graph for this function:

virtual DaemonCommandHandler::~DaemonCommandHandler ( )
inlinevirtual

Definition at line 77 of file DaemonCommandHandler.h.

Member Function Documentation

void DaemonCommandHandler::dump ( ostream &  strm) const
virtual

dumps information about this object

Displays the pointer value of this instance

Parameters
strmC++ i/o stream to dump the information to

Implements ServerHandler.

Definition at line 1041 of file DaemonCommandHandler.cc.

References BESIndent::LMarg().

Here is the call graph for this function:

string DaemonCommandHandler::get_config_file ( )
inline

Definition at line 79 of file DaemonCommandHandler.h.

void DaemonCommandHandler::handle ( Connection c)
virtual

This particular handle() method is special because it will accept only a single command transmission from the connecting client.

Once the command transmission has been processed the connection is closed and the method returns. This is done to ensure that the daemon is never tied up in some complex interaction with an admin client.

Implements ServerHandler.

Definition at line 927 of file DaemonCommandHandler.cc.

References BES_INTERNAL_ERROR, BES_INTERNAL_FATAL_ERROR, BES_SYNTAX_USER_ERROR, BESDEBUG, Connection::closeConnection(), Connection::exit(), PPTStreamBuf::finish(), BESXMLWriter::get_doc(), BESError::get_error_type(), BESError::get_message(), Socket::getIp(), Socket::getPort(), Connection::getSendChunkSize(), Connection::getSocket(), Socket::getSocketDescriptor(), Connection::receive(), and Connection::sendExtensions().

Here is the call graph for this function:

void DaemonCommandHandler::set_config_file ( const string &  config)
inline

Definition at line 80 of file DaemonCommandHandler.h.


The documentation for this class was generated from the following files: