// $Id: XrdFileCloseReporterAmq.h 2815 2012-07-12 23:04:12Z matevz $ // Copyright (C) 1999-2008, Matevz Tadel. All rights reserved. // This file is part of GLED, released under GNU General Public License version 2. // For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/. #ifndef XrdMon_XrdFileCloseReporterAmq_H #define XrdMon_XrdFileCloseReporterAmq_H #include namespace cms { class ConnectionFactory; class Connection; class Session; class Destination; class MessageProducer; } class XrdFileCloseReporterAmq : public XrdFileCloseReporter { MAC_RNR_FRIENDS(XrdFileCloseReporterAmq); private: void _init(); protected: TString mAmqHost; // X{GS} 7 Textor() UShort_t mAmqPort; // X{GS} 7 Value() TString mAmqUser; // X{GS} 7 Textor() TString mAmqPswd; // X{GS} 7 Textor() TString mAmqTopic; // X{GS} 7 Textor() cms::ConnectionFactory *mConnFac; //! cms::Connection *mConn; //! cms::Session *mSess; //! cms::Destination *mDest; //! cms::MessageProducer *mProd; //! virtual void ReportLoopInit(); virtual void ReportFileClosed(FileUserServer& fus); virtual void ReportLoopFinalize(); public: XrdFileCloseReporterAmq(const Text_t* n="XrdFileCloseReporterAmq", const Text_t* t=0); virtual ~XrdFileCloseReporterAmq(); #include "XrdFileCloseReporterAmq.h7" ClassDef(XrdFileCloseReporterAmq, 1); }; // endclass XrdFileCloseReporterAmq #endif