Include accumulators on statistics engine in order to centralize and ease asXML....
[anna.git] / include / anna / diameter.comm / LocalServer.hpp
index 9d733d4..d83dd31 100644 (file)
@@ -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,14 +175,14 @@ public:
   */
   void setEngine(Engine *e) throw() { a_engine = e; }
 
-//  /**
-//  * Gets the diameter::comm::Engine
-//  * @return Diameter::comm::Engine
-//  */
-//  Engine *getEngine() const throw() { return a_engine; }
-
   // 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
@@ -412,4 +412,3 @@ protected:
 }
 
 #endif
-