client server connection improved, interrupt handler for monitor process added
[u/mrichter/AliRoot.git] / MONITOR / AliMonitorProcess.h
index a685da29b7aeb88d629c54026c05e7e13c0a170a..fcae2fc53e14c5a060869e3f4c874a02cd3192ce 100644 (file)
@@ -85,7 +85,7 @@ private:
   void             StartNewRun();
 
   void             CheckForConnections();
-  void             BroadcastHistos();
+  void             BroadcastHistos(TSocket* toSocket = NULL);
   void             SetStatus(EStatus status);
 
   static const Int_t fgkPort;          // port number for client connections
@@ -121,6 +121,19 @@ private:
   EStatus          fStatus;             // current status
   Bool_t           fStopping;           // stop of process requested or not
 
+  class AliMonitorInterruptHandler : public TSignalHandler {
+  public:
+    AliMonitorInterruptHandler(AliMonitorProcess* process);
+    AliMonitorInterruptHandler(const AliMonitorInterruptHandler& handler);
+    AliMonitorInterruptHandler& operator = 
+      (const AliMonitorInterruptHandler& handler);
+    virtual Bool_t Notify();
+  private:
+    AliMonitorProcess* fProcess;       // process to notify
+  };
+
+  AliMonitorInterruptHandler* fInterruptHandler;  // interrupt handler
+
   ClassDef(AliMonitorProcess, 0)   // class for performing the monitoring
 };