//////////////////////////////////////////////////////////////////////////////// /// @brief communication with agency node(s) /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// /// http://www.apache.org/licenses/LICENSE-2.0 /// /// Unless required by applicable law or agreed to in writing, software /// distributed under the License is distributed on an "AS IS" BASIS, /// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. /// See the License for the specific language governing permissions and /// limitations under the License. /// /// Copyright holder is triAGENS GmbH, Cologne, Germany /// /// @author Jan Steemann /// @author Copyright 2013, triagens GmbH, Cologne, Germany //////////////////////////////////////////////////////////////////////////////// #include "Sharding/AgencyComm.h" #include "BasicsC/logging.h" //using namespace triagens::basics; using namespace triagens::arango; // ----------------------------------------------------------------------------- // --SECTION-- Agent // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // --SECTION-- constructors and destructors // ----------------------------------------------------------------------------- Agent::Agent () { } Agent::~Agent () { } // ----------------------------------------------------------------------------- // --SECTION-- AgencyCommResult // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // --SECTION-- constructors and destructors // ----------------------------------------------------------------------------- AgencyCommResult::AgencyCommResult () { } AgencyCommResult::~AgencyCommResult () { } // ----------------------------------------------------------------------------- // --SECTION-- AgencyComm // ----------------------------------------------------------------------------- std::string AgencyComm::_prefix; // ----------------------------------------------------------------------------- // --SECTION-- constructors and destructors // ----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// /// @brief constructs an agency communication object //////////////////////////////////////////////////////////////////////////////// AgencyComm::AgencyComm () { } //////////////////////////////////////////////////////////////////////////////// /// @brief destroys an agency communication object //////////////////////////////////////////////////////////////////////////////// AgencyComm::~AgencyComm () { } // ----------------------------------------------------------------------------- // --SECTION-- public static methods // ----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// /// @brief sets the global prefix for all operations //////////////////////////////////////////////////////////////////////////////// void AgencyComm::setPrefix (std::string const& prefix) { _prefix = prefix; } // ----------------------------------------------------------------------------- // --SECTION-- public methods // ----------------------------------------------------------------------------- //////////////////////////////////////////////////////////////////////////////// /// @brief establishes the communication channels //////////////////////////////////////////////////////////////////////////////// int AgencyComm::connect () { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief disconnects all communication channels //////////////////////////////////////////////////////////////////////////////// int AgencyComm::disconnect () { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief adds an agent to the agents list //////////////////////////////////////////////////////////////////////////////// int AgencyComm::addAgent (Agent agent) { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief removes an agent from the agents list //////////////////////////////////////////////////////////////////////////////// int AgencyComm::removeAgent (Agent agent) { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief removes an agent from the agents list //////////////////////////////////////////////////////////////////////////////// int AgencyComm::setValue (std::string const& key, std::string const& value) { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief gets one or multiple values from the back end //////////////////////////////////////////////////////////////////////////////// AgencyCommResult AgencyComm::getValues (std::string const& key, bool recursive) { AgencyCommResult result; return result; } //////////////////////////////////////////////////////////////////////////////// /// @brief removes one or multiple values from the back end //////////////////////////////////////////////////////////////////////////////// int AgencyComm::removeValues (std::string const& key, bool recursive) { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief compares and swaps a single value in the back end //////////////////////////////////////////////////////////////////////////////// int AgencyComm::casValue (std::string const& key, std::string const& oldValue, std::string const& newValue) { return 0; } //////////////////////////////////////////////////////////////////////////////// /// @brief blocks on a change of a single value in the back end //////////////////////////////////////////////////////////////////////////////// AgencyCommResult AgencyComm::watchValues (std::string const& key, double timeout) { AgencyCommResult result; return result; } // Local Variables: // mode: outline-minor // outline-regexp: "^\\(/// @brief\\|/// {@inheritDoc}\\|/// @addtogroup\\|// --SECTION--\\|/// @\\}\\)" // End: