#ifndef GENERICDEBUGMSGEX_H_
#define GENERICDEBUGMSGEX_H_

#include <common/net/message/nodes/GenericDebugMsg.h>
#include <common/Common.h>


class GenericDebugMsgEx : public GenericDebugMsg
{
   public:
      virtual bool processIncoming(ResponseContext& ctx);

   private:
      std::string processCommand();

      std::string processOpListFileAppendLocks(std::istringstream& commandStream);
      std::string processOpListFileEntryLocks(std::istringstream& commandStream);
      std::string processOpListFileRangeLocks(std::istringstream& commandStream);
      std::string processOpListOpenFiles(std::istringstream& commandStream);
      std::string processOpReferenceStatistics(std::istringstream& commandStream);
      std::string processOpCacheStatistics(std::istringstream& commandStream);
      std::string processOpVersion(std::istringstream& commandStream);
      std::string processOpMsgQueueStats(std::istringstream& commandStream);
      std::string processOpListPools(std::istringstream& commandStream);
      std::string processOpDumpDentry(std::istringstream& commandStream);
      std::string processOpDumpInode(std::istringstream& commandStream);
      std::string processOpDumpInlinedInode(std::istringstream& commandStream);
      std::string processOpQuotaExceeded(std::istringstream& commandStream);

   #ifdef CONGFS_DEBUG
      std::string processOpWriteDirDentry(std::istringstream& commandStream);
      std::string processOpWriteDirInode(std::istringstream& commandStream);
      std::string processOpWriteInlinedFileInode(std::istringstream& commandStream);
   #endif // CONGFS_DEBUG

};

#endif /* GENERICDEBUGMSGEX_H_ */
