Add signal USR2 management at core application and diameter launcher to manage operations
[anna.git] / include / anna / app / Application.hpp
index c34c46a..153f5b9 100644 (file)
@@ -231,11 +231,15 @@ protected:
   virtual void run() throw(RuntimeException) = 0;
 
   /**
-     Metodo manejador que podemos re-escribir para tratar la recepcion de la senhal USR1.
-     Por defecto
+     Handler for SIGUSR1. Application context written by default.
   */
   virtual void signalUSR1() throw(RuntimeException);
 
+  /**
+     Handler for SIGUSR2. Nothing done by default.
+  */
+  virtual void signalUSR2() throw(RuntimeException);
+
   /**
      Metodo manejador que podemos re-escribir para tratar la recepcion de la senhal SIGTERM.
   */
@@ -316,7 +320,8 @@ private:
   void stopComponents() throw(RuntimeException);
   void sendSignalToChilds(const int signal) throw();
 
-  static void handlerSignalUSR1(int) throw();
+  void signalUSR(int) throw(RuntimeException);
+  static void handlerSignalUSR(int) throw();
   static void handlerSignalTerminate(int) throw();
   static void handlerChildTerminate(int sig) throw();