- anna::diameter::codec::Engine *getCodecEngine() const throw() { return a_codecEngine; } // XXXXXXXXXXXXXXXXX El del nodo de trabajo
- MyCommunicator *getCommunicator() throw() { return a_communicator; }
- MyDiameterEngine* getMyDiameterEngine() const throw() { return (a_myDiameterEngine); }
- void baseProtocolSetupAsClient(anna::diameter::codec::Engine *codecEngine) throw(anna::RuntimeException);
- MyDiameterEntity *getEntity() throw() { return a_entity; }
- MyLocalServer* getDiameterLocalServer() throw() { return a_diameterLocalServer; }
- void eventOperation(const std::string &, std::string &) throw(anna::RuntimeException);
- bool logEnabled() const throw() { return (((a_logFile == "") || (a_logFile == "null")) ? false : true); }
- void writeLogFile(const anna::DataBlock & db, const std::string &logExtension, const std::string &detail, anna::diameter::codec::Engine *codecEngine) const throw();
- void writeLogFile(const anna::diameter::codec::Message & decodedMessage, const std::string &logExtension, const std::string &detail) const throw();
- void writeBurstLogFile(const std::string &buffer) throw();
- bool burstLogEnabled() const throw() { return (((a_burstLogFile == "") || (a_burstLogFile == "null")) ? false : true); }
- void startDiameterServer(int) throw(anna::RuntimeException);
- void forceCountersRecord() throw(anna::RuntimeException) { if (a_counterRecorderClock) a_counterRecorderClock->tick(); }
-
- anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
- void resetStatistics() throw() { a_myDiameterEngine->resetStatistics(); }
- void resetCounters() throw();
- void signalUSR2() throw(anna::RuntimeException);
- std::string help() const throw();
-
- // Messages factory:
- anna::diameter::comm::Message *createCommMessage() throw(anna::RuntimeException);
- void releaseCommMessage(anna::diameter::comm::Message*) throw();
+ bool uniqueOriginHost() const ;
+
+ // Operated host for communication resources smart assignment ////////////////////////////////////////////////////////////
+ void updateOperatedOriginHostWithMessage(const anna::diameter::codec::Message &message) noexcept(false);
+ void updateOperatedOriginHostWithMessage(const anna::DataBlock &messageDataBlock) noexcept(false);
+ anna::diameter::comm::OriginHost *getWorkingNode() const noexcept(false);
+ anna::diameter::comm::OriginHost *getOperatedHost() const noexcept(false);
+ void setOperatedHost(anna::diameter::comm::OriginHost *);
+ MyDiameterEntity *getOperatedEntity() const noexcept(false);
+ MyLocalServer *getOperatedServer() const noexcept(false);
+ MyDiameterEngine *getOperatedEngine() const noexcept(false);
+ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+ const std::string & getInitialWorkingDirectory() const { return a_initialWorkingDirectory; }
+
+ MyCommunicator *getCommunicator() { return a_communicator; }
+ bool eventOperation(const std::string &, std::string &) noexcept(false); // returns success/failed
+ void forceCountersRecord() noexcept(false) { if (a_counterRecorderClock) a_counterRecorderClock->tick(); }
+ void logStatisticsSamples(const std::string &conceptsList) ;
+
+
+ anna::xml::Node* asXML(anna::xml::Node* parent) const ;
+ void resetStatistics() ;
+ void resetCounters() ;
+ void signalUSR2() noexcept(false);
+ void signalTerminate() noexcept(false);
+ anna::xml::Node* oamAsXML(anna::xml::Node* parent) const ;
+ anna::xml::Node* statsAsXML(anna::xml::Node* parent) const ;