X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter.comm%2FLocalServer.hpp;h=d83dd31bd6663a6a07e8b4d50a8efa2504dc2403;hb=75e01e90ae4e1f29813eabe40c3e6b5eea8457bf;hp=03308b141aba895398a95e800099b6e753052e05;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/diameter.comm/LocalServer.hpp b/include/anna/diameter.comm/LocalServer.hpp index 03308b1..d83dd31 100644 --- a/include/anna/diameter.comm/LocalServer.hpp +++ b/include/anna/diameter.comm/LocalServer.hpp @@ -67,8 +67,8 @@ class LocalServer { // Statistics int a_processing_time__StatisticConceptId; // request from local server (dpr's, etc.) int a_received_message_size__StatisticConceptId; - anna::statistics::Accumulator a_statisticsAccumulator; - void initializeStatisticConcepts() throw(); + anna::statistics::Accumulator *a_statisticsAccumulator; + void initializeStatisticResources() throw(); void resetStatistics() throw(); // void eraseServerSession(const anna::comm::ClientSocket& clientSocket) throw(); @@ -175,9 +175,14 @@ public: */ void setEngine(Engine *e) throw() { a_engine = e; } - // getters + /** + * Gets the diameter::comm::Engine + * @return Diameter::comm::Engine + */ + Engine *getEngine() const throw() { return a_engine; } + /** * Gets the local server key * @return LocalServer key @@ -354,6 +359,14 @@ protected: */ virtual void eventPeerShutdown(const ServerSession* serverSession) throw(); + /** + Handler about a request retransmission over the server-session. + Default implementation traces warning event + \param serverSession ServerSession from which retransmission happened + \param request Retransmitted request message + */ + virtual void eventRequestRetransmission(const ServerSession* serverSession, Message *request) throw(); + /** Handler for diameter client responses @@ -399,4 +412,3 @@ protected: } #endif -