X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=example%2Fdiameter%2Flauncher%2FLauncher.hpp;h=399a0f8cbdf333f505629b47ace1bc169c86aa8e;hb=415985b3f67878c2e3cee785a0b1cb36f4eff901;hp=7c3596cc83218099796c25502a7c1c03b3580782;hpb=9fa68da11c56250017da9735e4a5dd3fd3b2021b;p=anna.git diff --git a/example/diameter/launcher/Launcher.hpp b/example/diameter/launcher/Launcher.hpp index 7c3596c..399a0f8 100644 --- a/example/diameter/launcher/Launcher.hpp +++ b/example/diameter/launcher/Launcher.hpp @@ -65,7 +65,6 @@ class Launcher : public anna::comm::Application { MyCounterRecorderClock *a_counterRecorderClock; // Nodes deployment: - origin_hosts_t a_originHosts; anna::diameter::comm::OriginHost *a_workingNode; anna::diameter::comm::OriginHost *a_operatedHost; // auxiliary for eventOperation @@ -90,9 +89,9 @@ public: void startServices() throw(anna::RuntimeException); bool setWorkingNode(const std::string &name) throw(); - anna::diameter::comm::OriginHost *getOriginHost(const std::string &oh) const throw(anna::RuntimeException); + anna::diameter::comm::OriginHost *getOriginHost(const std::string &name) const throw(anna::RuntimeException); anna::diameter::comm::OriginHost *getOriginHost(const anna::diameter::codec::Message &message) const throw(anna::RuntimeException); - bool uniqueOriginHost() const throw() { return (a_originHosts.size() == 1); } + bool uniqueOriginHost() const throw(); // Operated host for communication resources smart assignment //////////////////////////////////////////////////////////// void updateOperatedOriginHostWithMessage(const anna::diameter::codec::Message &message) throw(anna::RuntimeException); @@ -105,7 +104,7 @@ public: MyCommunicator *getCommunicator() throw() { return a_communicator; } - void eventOperation(const std::string &, std::string &) throw(anna::RuntimeException); + bool eventOperation(const std::string &, std::string &) throw(anna::RuntimeException); // returns success/failed void forceCountersRecord() throw(anna::RuntimeException) { if (a_counterRecorderClock) a_counterRecorderClock->tick(); } void logStatisticsSamples(const std::string &conceptsList) throw(); @@ -114,13 +113,12 @@ public: void resetStatistics() throw(); void resetCounters() throw(); void signalUSR2() throw(anna::RuntimeException); - std::string help() const throw(); + void signalTerminate() throw(anna::RuntimeException); anna::xml::Node* oamAsXML(anna::xml::Node* parent) const throw(); anna::xml::Node* statsAsXML(anna::xml::Node* parent) const throw(); // helpers bool getDataBlockFromHexFile(const std::string &pathfile, anna::DataBlock &db) const throw(anna::RuntimeException); - bool getContentFromFile(const std::string &pathfile, std::string &content) const throw(anna::RuntimeException); friend class TestManager; };