DumpStateOrd.hpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:4k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef DUMP_STATE_ORD_HPP
  14. #define DUMP_STATE_ORD_HPP
  15. #include "SignalData.hpp"
  16. /**
  17.  * DumpStateOrd is sent by the mgmtsrvr to CMVMI.
  18.  * CMVMI the redirect the signal to all blocks.
  19.  *
  20.  * The implementation of the DumpStateOrd should dump state information
  21.  * (typically using the infoEvent-function)
  22.  */
  23. class DumpStateOrd {
  24.   /**
  25.    * Sender/Reciver
  26.    */
  27.   friend class Cmvmi;
  28.   /**
  29.    * Sender(s)
  30.    */
  31.   friend class MgmtSrvr;
  32.   
  33.   /**
  34.    * Reciver(s)
  35.    */
  36.   friend class Dbacc;
  37.   friend class Dblqh;
  38.   friend class Dbtup;
  39.   friend class Dbtc;
  40.   friend class Ndbcntr;
  41.   friend class Qmgr;
  42.   friend class Dbdih;
  43.   friend class Dbdict;
  44.   friend class Ndbfs;
  45. public:
  46.   enum DumpStateType {
  47.     // 1 QMGR Dump information about phase 1 variables
  48.     // 13 CMVMI Dump signal counter
  49.     // 13 NDBCNTR Dump start phase information
  50.     // 13 NDBCNTR_REF  Dump start phase information
  51.     CommitAckMarkersSize = 14, // TC+LQH Dump free size in commitAckMarkerP
  52.     CommitAckMarkersDump = 15, // TC+LQH Dump info in commitAckMarkerPool
  53.     DihDumpNodeRestartInfo = 16, // 16 DIH Dump node restart info
  54.     DihDumpNodeStatusInfo = 17,// 17 DIH Dump node status info
  55.     DihPrintFragmentation = 18,// 18 DIH Print fragmentation
  56.     // 19 NDBFS Fipple with O_SYNC, O_CREATE etc.
  57.     // 20-24 BACKUP
  58.     NdbcntrTestStopOnError = 25,
  59.     // 100-105 TUP and ACC  
  60.     // 200-240 UTIL
  61.     // 300-305 TRIX
  62.     NdbfsDumpFileStat = 400,
  63.     NdbfsDumpAllFiles = 401,
  64.     NdbfsDumpOpenFiles = 402,
  65.     NdbfsDumpIdleFiles = 403,
  66.     // 1222-1225 DICT
  67.     LqhDumpAllDefinedTabs = 1332,
  68.     LqhDumpNoLogPages = 1333,
  69.     LqhDumpOneScanRec = 2300,
  70.     LqhDumpAllScanRec = 2301,
  71.     LqhDumpAllActiveScanRec = 2302,
  72.     LqhDumpLcpState = 2303,
  73.     AccDumpOneScanRec = 2400,
  74.     AccDumpAllScanRec = 2401,
  75.     AccDumpAllActiveScanRec = 2402,
  76.     AccDumpOneOperationRec = 2403,
  77.     AccDumpNumOpRecs = 2404,
  78.     AccDumpFreeOpRecs = 2405,
  79.     AccDumpNotFreeOpRecs = 2406,
  80.     DumpPageMemory = 1000, // Acc & TUP
  81.     TcDumpAllScanFragRec = 2500,
  82.     TcDumpOneScanFragRec = 2501,
  83.     TcDumpAllScanRec = 2502,
  84.     TcDumpAllActiveScanRec = 2503,
  85.     TcDumpOneScanRec = 2504,
  86.     TcDumpOneApiConnectRec = 2505,
  87.     TcDumpAllApiConnectRec = 2506,
  88.     TcSetTransactionTimeout = 2507,
  89.     TcSetApplTransactionTimeout = 2508,
  90.     StartTcTimer = 2509,
  91.     StopTcTimer = 2510,
  92.     StartPeriodicTcTimer = 2511,
  93.     TcStartDumpIndexOpCount = 2512,
  94.     TcDumpIndexOpCount = 2513,
  95.     CmvmiDumpConnections = 2600,
  96.     CmvmiDumpLongSignalMemory = 2601,
  97.     CmvmiSetRestartOnErrorInsert = 2602,
  98.     CmvmiTestLongSigWithDelay = 2603,
  99.     // 7000 DIH
  100.     // 7001 DIH
  101.     // 7002 DIH
  102.     // 7003 DIH
  103.     // 7004 DIH
  104.     // 7005 DIH
  105.     // 7006 DIH
  106.     // 7006 DIH
  107.     // 7007 DIH
  108.     // 7008 DIH
  109.     // 7009 DIH
  110.     // 7010 DIH
  111.     // 7011 DIH
  112.     // 7012 DIH
  113.     DihDumpLCPState= 7013,
  114.     DihDumpLCPMasterTakeOver = 7014,    
  115.     // 7015 DIH
  116.     DihAllAllowNodeStart = 7016,
  117.     DihMinTimeBetweenLCP = 7017,
  118.     DihMaxTimeBetweenLCP = 7018,
  119.     EnableUndoDelayDataWrite = 7080, // DIH+ACC+TUP
  120.     DihStartLcpImmediately = 7099,
  121.     // 8000 Suma
  122.     // 12000 Tux
  123.     TuxLogToFile = 12001,
  124.     TuxSetLogFlags = 12002,
  125.     TuxMetaDataJunk = 12009
  126.   };
  127. public:
  128.   
  129.   Uint32 args[25];          // Generic argument
  130. };
  131. #endif