Updated license
[anna.git] / include / anna / app / Application.hpp
index c34c46a..77684fd 100644 (file)
@@ -1,4 +1,4 @@
-// ANNA - Anna is Not 'N' Anymore
+// ANNA - Anna is Not Nothingness Anymore
 //
 // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
 //
@@ -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();