22 package com.mysql.ndbjtie.mgmapi;
 
   24 import java.nio.ByteBuffer;
 
   26 import com.mysql.jtie.Wrapper;
 
   30 {} 
class NdbMgmHandle extends Wrapper implements NdbMgmHandleConst
 
   32 {} 
interface NdbLogEventHandleConst
 
   41         int NDB_MGM_NO_ERROR = 0,
 
   42             NDB_MGM_ILLEGAL_CONNECT_STRING = 1001,
 
   43             NDB_MGM_ILLEGAL_SERVER_HANDLE = 1005,
 
   44             NDB_MGM_ILLEGAL_SERVER_REPLY = 1006,
 
   45             NDB_MGM_ILLEGAL_NUMBER_OF_NODES = 1007,
 
   46             NDB_MGM_ILLEGAL_NODE_STATUS = 1008,
 
   47             NDB_MGM_OUT_OF_MEMORY = 1009,
 
   48             NDB_MGM_SERVER_NOT_CONNECTED = 1010,
 
   49             NDB_MGM_COULD_NOT_CONNECT_TO_SOCKET = 1011,
 
   50             NDB_MGM_BIND_ADDRESS = 1012,
 
   51             NDB_MGM_ALLOCID_ERROR = 1101,
 
   52             NDB_MGM_ALLOCID_CONFIG_MISMATCH = 1102,
 
   53             NDB_MGM_START_FAILED = 2001,
 
   54             NDB_MGM_STOP_FAILED = 2002,
 
   55             NDB_MGM_RESTART_FAILED = 2003,
 
   56             NDB_MGM_COULD_NOT_START_BACKUP = 3001,
 
   57             NDB_MGM_COULD_NOT_ABORT_BACKUP = 3002,
 
   58             NDB_MGM_COULD_NOT_ENTER_SINGLE_USER_MODE = 4001,
 
   59             NDB_MGM_COULD_NOT_EXIT_SINGLE_USER_MODE = 4002,
 
   60             NDB_MGM_USAGE_ERROR = 5001;
 
   62 } 
interface MGMAPI_CONFIG_PARAMTERS
 
   66     int CFG_SYS_PRIMARY_MGM_NODE = 1;
 
   67     int CFG_SYS_CONFIG_GENERATION = 2;
 
   68     int CFG_SYS_PORT_BASE = 8;
 
   70     int CFG_NODE_BYTE_ORDER = 4;
 
   71     int CFG_NODE_HOST = 5;
 
   72     int CFG_NODE_SYSTEM = 6;
 
   73     int CFG_NODE_DATADIR = 7;
 
   75     int CFG_DB_NO_SAVE_MSGS = 100;
 
   76     int CFG_DB_NO_REPLICAS = 101;
 
   77     int CFG_DB_NO_TABLES = 102;
 
   78     int CFG_DB_NO_ATTRIBUTES = 103;
 
   79     int CFG_DB_NO_INDEXES = 104;
 
   80     int CFG_DB_NO_TRIGGERS = 105;
 
   81     int CFG_DB_NO_TRANSACTIONS = 106;
 
   82     int CFG_DB_NO_OPS = 107;
 
   83     int CFG_DB_NO_SCANS = 108;
 
   84     int CFG_DB_NO_TRIGGER_OPS = 109;
 
   85     int CFG_DB_NO_INDEX_OPS = 110;
 
   86     int CFG_DB_TRANS_BUFFER_MEM = 111;
 
   87     int CFG_DB_DATA_MEM = 112;
 
   88     int CFG_DB_INDEX_MEM = 113;
 
   89     int CFG_DB_MEMLOCK = 114;
 
   90     int CFG_DB_START_PARTIAL_TIMEOUT = 115;
 
   91     int CFG_DB_START_PARTITION_TIMEOUT = 116;
 
   92     int CFG_DB_START_FAILURE_TIMEOUT = 117;
 
   93     int CFG_DB_HEARTBEAT_INTERVAL = 118;
 
   94     int CFG_DB_API_HEARTBEAT_INTERVAL = 119;
 
   95     int CFG_DB_LCP_INTERVAL = 120;
 
   96     int CFG_DB_GCP_INTERVAL = 121;
 
   97     int CFG_DB_ARBIT_TIMEOUT = 122;
 
   98     int CFG_DB_WATCHDOG_INTERVAL = 123;
 
   99     int CFG_DB_STOP_ON_ERROR = 124;
 
  100     int CFG_DB_FILESYSTEM_PATH = 125;
 
  101     int CFG_DB_NO_REDOLOG_FILES = 126;
 
  102     int CFG_DB_REDOLOG_FILE_SIZE = 140;
 
  103     int CFG_DB_LCP_DISC_PAGES_TUP = 127;
 
  104     int CFG_DB_LCP_DISC_PAGES_TUP_SR = 128;
 
  105     int CFG_DB_LCP_DISC_PAGES_ACC = 137;
 
  106     int CFG_DB_LCP_DISC_PAGES_ACC_SR = 138;
 
  107     int CFG_DB_TRANSACTION_CHECK_INTERVAL = 129;
 
  108     int CFG_DB_TRANSACTION_INACTIVE_TIMEOUT = 130;
 
  109     int CFG_DB_TRANSACTION_DEADLOCK_TIMEOUT = 131;
 
  110     int CFG_DB_PARALLEL_BACKUPS = 132;
 
  111     int CFG_DB_BACKUP_MEM = 133;
 
  112     int CFG_DB_BACKUP_DATA_BUFFER_MEM = 134;
 
  113     int CFG_DB_BACKUP_LOG_BUFFER_MEM = 135;
 
  114     int CFG_DB_BACKUP_WRITE_SIZE = 136;
 
  115     int CFG_DB_BACKUP_MAX_WRITE_SIZE = 139;
 
  116     int CFG_DB_WATCHDOG_INTERVAL_INITIAL = 141;
 
  117     int CFG_LOG_DESTINATION = 147;
 
  118     int CFG_DB_DISCLESS = 148;
 
  119     int CFG_DB_NO_ORDERED_INDEXES = 149;
 
  120     int CFG_DB_NO_UNIQUE_HASH_INDEXES = 150;
 
  121     int CFG_DB_NO_LOCAL_OPS = 151;
 
  122     int CFG_DB_NO_LOCAL_SCANS = 152;
 
  123     int CFG_DB_BATCH_SIZE = 153;
 
  124     int CFG_DB_UNDO_INDEX_BUFFER = 154;
 
  125     int CFG_DB_UNDO_DATA_BUFFER = 155;
 
  126     int CFG_DB_REDO_BUFFER = 156;
 
  127     int CFG_DB_LONG_SIGNAL_BUFFER = 157;
 
  128     int CFG_DB_BACKUP_DATADIR = 158;
 
  129     int CFG_DB_MAX_OPEN_FILES = 159;
 
  130     int CFG_DB_DISK_PAGE_BUFFER_MEMORY = 160;
 
  131     int CFG_DB_STRING_MEMORY = 161;
 
  132     int CFG_DB_INITIAL_OPEN_FILES = 162;
 
  133     int CFG_DB_DISK_SYNCH_SIZE = 163;
 
  134     int CFG_DB_CHECKPOINT_SPEED = 164;
 
  135     int CFG_DB_CHECKPOINT_SPEED_SR = 165;
 
  136     int CFG_DB_MEMREPORT_FREQUENCY = 166;
 
  137     int CFG_DB_BACKUP_REPORT_FREQUENCY = 167;
 
  138     int CFG_DB_O_DIRECT = 168;
 
  139     int CFG_DB_MAX_ALLOCATE = 169;
 
  140     int CFG_DB_MICRO_GCP_INTERVAL = 170;
 
  141     int CFG_DB_MICRO_GCP_TIMEOUT = 171;
 
  142     int CFG_DB_COMPRESSED_BACKUP = 172;
 
  143     int CFG_DB_COMPRESSED_LCP = 173;
 
  144     int CFG_DB_SCHED_EXEC_TIME = 174;
 
  145     int CFG_DB_SCHED_SPIN_TIME = 175;
 
  146     int CFG_DB_REALTIME_SCHEDULER = 176;
 
  147     int CFG_DB_EXECUTE_LOCK_CPU = 177;
 
  148     int CFG_DB_MAINT_LOCK_CPU = 178;
 
  149     int CFG_DB_SUBSCRIPTIONS = 179;
 
  150     int CFG_DB_SUBSCRIBERS = 180;
 
  151     int CFG_DB_SUB_OPERATIONS = 181;
 
  152     int CFG_DB_MAX_BUFFERED_EPOCHS = 182;
 
  153     int CFG_DB_SUMA_HANDOVER_TIMEOUT = 183;
 
  154     int CFG_DB_INIT_REDO = 189;
 
  155     int CFG_DB_DD_FILESYSTEM_PATH = 193;
 
  156     int CFG_DB_DD_DATAFILE_PATH = 194;
 
  157     int CFG_DB_DD_UNDOFILE_PATH = 195;
 
  158     int CFG_DB_DD_LOGFILEGROUP_SPEC = 196;
 
  159     int CFG_DB_DD_TABLEPACE_SPEC = 197;
 
  160     int CFG_DB_SGA = 198;
 
  161     int CFG_DB_DATA_MEM_2 = 199;
 
  162     int CFG_DB_LCP_TRY_LOCK_TIMEOUT = 605;
 
  163     int CFG_NODE_ARBIT_RANK = 200;
 
  164     int CFG_NODE_ARBIT_DELAY = 201;
 
  166     int CFG_MIN_LOGLEVEL = 250;
 
  167     int CFG_LOGLEVEL_STARTUP = 250;
 
  168     int CFG_LOGLEVEL_SHUTDOWN = 251;
 
  169     int CFG_LOGLEVEL_STATISTICS = 252;
 
  170     int CFG_LOGLEVEL_CHECKPOINT = 253;
 
  171     int CFG_LOGLEVEL_NODERESTART = 254;
 
  172     int CFG_LOGLEVEL_CONNECTION = 255;
 
  173     int CFG_LOGLEVEL_INFO = 256;
 
  174     int CFG_LOGLEVEL_WARNING = 257;
 
  175     int CFG_LOGLEVEL_ERROR = 258;
 
  176     int CFG_LOGLEVEL_CONGESTION = 259;
 
  177     int CFG_LOGLEVEL_DEBUG = 260;
 
  178     int CFG_LOGLEVEL_BACKUP = 261;
 
  179     int CFG_MAX_LOGLEVEL = 261;
 
  180     int CFG_MGM_PORT = 300;
 
  181     int CFG_CONNECTION_NODE_1 = 400;
 
  182     int CFG_CONNECTION_NODE_2 = 401;
 
  183     int CFG_CONNECTION_SEND_SIGNAL_ID = 402;
 
  184     int CFG_CONNECTION_CHECKSUM = 403;
 
  185     int CFG_CONNECTION_NODE_1_SYSTEM = 404;
 
  186     int CFG_CONNECTION_NODE_2_SYSTEM = 405;
 
  187     int CFG_CONNECTION_SERVER_PORT = 406;
 
  188     int CFG_CONNECTION_HOSTNAME_1 = 407;
 
  189     int CFG_CONNECTION_HOSTNAME_2 = 408;
 
  190     int CFG_CONNECTION_GROUP = 409;
 
  191     int CFG_CONNECTION_NODE_ID_SERVER = 410;
 
  193     int CFG_TCP_SERVER = 452;
 
  194     int CFG_TCP_SEND_BUFFER_SIZE = 454;
 
  195     int CFG_TCP_RECEIVE_BUFFER_SIZE = 455;
 
  196     int CFG_TCP_PROXY = 456;
 
  197     int CFG_TCP_RCV_BUF_SIZE = 457;
 
  198     int CFG_TCP_SND_BUF_SIZE = 458;
 
  199     int CFG_TCP_MAXSEG_SIZE = 459;
 
  200     int CFG_TCP_BIND_INADDR_ANY = 460;
 
  201     int CFG_SHM_SEND_SIGNAL_ID = 500;
 
  202     int CFG_SHM_CHECKSUM = 501;
 
  203     int CFG_SHM_KEY = 502;
 
  204     int CFG_SHM_BUFFER_MEM = 503;
 
  205     int CFG_SHM_SIGNUM = 504;
 
  206     int CFG_SCI_HOST1_ID_0 = 550;
 
  207     int CFG_SCI_HOST1_ID_1 = 551;
 
  208     int CFG_SCI_HOST2_ID_0 = 552;
 
  209     int CFG_SCI_HOST2_ID_1 = 553;
 
  210     int CFG_SCI_SEND_LIMIT = 554;
 
  211     int CFG_SCI_BUFFER_MEM = 555;
 
  215     int CFG_MAX_SCAN_BATCH_SIZE = 800;
 
  216     int CFG_BATCH_BYTE_SIZE = 801;
 
  217     int CFG_BATCH_SIZE = 802;
 
  218     int CFG_AUTO_RECONNECT = 803;
 
  219     int CFG_DB_STOP_ON_ERROR_INSERT = 1;
 
  220     int CFG_TYPE_OF_SECTION = 999;
 
  221     int CFG_SECTION_SYSTEM = 1000;
 
  222     int CFG_SECTION_NODE = 2000;
 
  223     int CFG_SECTION_CONNECTION = 3000;
 
  224     int NODE_TYPE_DB = 0;
 
  225     int NODE_TYPE_API = 1;
 
  226     int NODE_TYPE_MGM = 2;
 
  227     int CONNECTION_TYPE_TCP = 0;
 
  228     int CONNECTION_TYPE_SHM = 1;
 
  229     int CONNECTION_TYPE_SCI = 2;
 
  230     int CONNECTION_TYPE_OSE = 3;
 
  231 } 
class MGMAPI 
implements MGMAPI_CONFIG_PARAMTERS
 
  234     static public final int MGM_LOGLEVELS = CFG_MAX_LOGLEVEL - CFG_MIN_LOGLEVEL + 1;
 
  235     static public final int NDB_MGM_MAX_LOGLEVEL = 15;
 
  238         int NDB_MGM_NODE_TYPE_UNKNOWN = -1,
 
  239             NDB_MGM_NODE_TYPE_API = NODE_TYPE_API,
 
  240             NDB_MGM_NODE_TYPE_NDB = NODE_TYPE_DB,
 
  241             NDB_MGM_NODE_TYPE_MGM = NODE_TYPE_MGM;
 
  245         int NDB_MGM_NODE_STATUS_UNKNOWN = 0,
 
  246             NDB_MGM_NODE_STATUS_NO_CONTACT = 1,
 
  247             NDB_MGM_NODE_STATUS_NOT_STARTED = 2,
 
  248             NDB_MGM_NODE_STATUS_STARTING = 3,
 
  249             NDB_MGM_NODE_STATUS_STARTED = 4,
 
  250             NDB_MGM_NODE_STATUS_SHUTTING_DOWN = 5,
 
  251             NDB_MGM_NODE_STATUS_RESTARTING = 6,
 
  252             NDB_MGM_NODE_STATUS_SINGLEUSER = 7,
 
  253             NDB_MGM_NODE_STATUS_RESUME = 8;
 
  255     static public class  ndb_mgm_node_state {
 
  293     static public native 
int ndb_mgm_set_configuration_nodeid(
NdbMgmHandle handle, 
int nodeid);
 
  310     static public native 
int ndb_mgm_stop3(
NdbMgmHandle handle, 
int no_of_nodes, 
int[] node_list, 
int abort, 
int[] disconnect);
 
  313     static public native 
int ndb_mgm_restart3(
NdbMgmHandle handle, 
int no_of_nodes, 
int[] node_list, 
int initial, 
int nostart, 
int abort, 
int[] disconnect);
 
  321     static public native 
void ndb_mgm_destroy_logevent_handle(
NdbLogEventHandle[] p0);
 
  323     static public native 
int ndb_logevent_get_next(NdbLogEventHandleConst p0, NDB_LOGEVENT.ndb_logevent dst, 
int timeout_in_milliseconds);
 
  331 } 
class NDB_LOGEVENT 
implements MGMAPI_CONFIG_PARAMTERS
 
  336         int NDB_LE_ILLEGAL_TYPE = -1,
 
  337             NDB_LE_Connected = 0,
 
  338             NDB_LE_Disconnected = 1,
 
  339             NDB_LE_CommunicationClosed = 2,
 
  340             NDB_LE_CommunicationOpened = 3,
 
  341             NDB_LE_ConnectedApiVersion = 51,
 
  342             NDB_LE_GlobalCheckpointStarted = 4,
 
  343             NDB_LE_GlobalCheckpointCompleted = 5,
 
  344             NDB_LE_LocalCheckpointStarted = 6,
 
  345             NDB_LE_LocalCheckpointCompleted = 7,
 
  346             NDB_LE_LCPStoppedInCalcKeepGci = 8,
 
  347             NDB_LE_LCPFragmentCompleted = 9,
 
  348             NDB_LE_NDBStartStarted = 10,
 
  349             NDB_LE_NDBStartCompleted = 11,
 
  350             NDB_LE_STTORRYRecieved = 12,
 
  351             NDB_LE_StartPhaseCompleted = 13,
 
  352             NDB_LE_CM_REGCONF = 14,
 
  353             NDB_LE_CM_REGREF = 15,
 
  354             NDB_LE_FIND_NEIGHBOURS = 16,
 
  355             NDB_LE_NDBStopStarted = 17,
 
  356             NDB_LE_NDBStopCompleted = 53,
 
  357             NDB_LE_NDBStopForced = 59,
 
  358             NDB_LE_NDBStopAborted = 18,
 
  359             NDB_LE_StartREDOLog = 19,
 
  360             NDB_LE_StartLog = 20,
 
  361             NDB_LE_UNDORecordsExecuted = 21,
 
  362             NDB_LE_NR_CopyDict = 22,
 
  363             NDB_LE_NR_CopyDistr = 23,
 
  364             NDB_LE_NR_CopyFragsStarted = 24,
 
  365             NDB_LE_NR_CopyFragDone = 25,
 
  366             NDB_LE_NR_CopyFragsCompleted = 26,
 
  367             NDB_LE_NodeFailCompleted = 27,
 
  368             NDB_LE_NODE_FAILREP = 28,
 
  369             NDB_LE_ArbitState = 29,
 
  370             NDB_LE_ArbitResult = 30,
 
  371             NDB_LE_GCP_TakeoverStarted = 31,
 
  372             NDB_LE_GCP_TakeoverCompleted = 32,
 
  373             NDB_LE_LCP_TakeoverStarted = 33,
 
  374             NDB_LE_LCP_TakeoverCompleted = 34,
 
  375             NDB_LE_TransReportCounters = 35,
 
  376             NDB_LE_OperationReportCounters = 36,
 
  377             NDB_LE_TableCreated = 37,
 
  378             NDB_LE_UndoLogBlocked = 38,
 
  379             NDB_LE_JobStatistic = 39,
 
  380             NDB_LE_SendBytesStatistic = 40,
 
  381             NDB_LE_ReceiveBytesStatistic = 41,
 
  382             NDB_LE_MemoryUsage = 50,
 
  383             NDB_LE_ThreadConfigLoop = 68,
 
  384             NDB_LE_TransporterError = 42,
 
  385             NDB_LE_TransporterWarning = 43,
 
  386             NDB_LE_MissedHeartbeat = 44,
 
  387             NDB_LE_DeadDueToHeartbeat = 45,
 
  388             NDB_LE_WarningEvent = 46,
 
  389             NDB_LE_SentHeartbeat = 47,
 
  390             NDB_LE_CreateLogBytes = 48,
 
  391             NDB_LE_InfoEvent = 49,
 
  392             NDB_LE_SingleUser = 52,
 
  393             NDB_LE_BackupStarted = 54,
 
  394             NDB_LE_BackupFailedToStart = 55,
 
  395             NDB_LE_BackupStatus = 62,
 
  396             NDB_LE_BackupCompleted = 56,
 
  397             NDB_LE_BackupAborted = 57,
 
  398             NDB_LE_RestoreMetaData = 63,
 
  399             NDB_LE_RestoreData = 64,
 
  400             NDB_LE_RestoreLog = 65,
 
  401             NDB_LE_RestoreStarted = 66,
 
  402             NDB_LE_RestoreCompleted = 67,
 
  403             NDB_LE_EventBufferStatus = 58,
 
  404             NDB_LE_StartReport = 60,
 
  405             NDB_LE_SubscriptionStatus = 69,
 
  406             NDB_LE_RedoStatus = 73;
 
  410         int NDB_MGM_ILLEGAL_EVENT_SEVERITY = -1,
 
  411             NDB_MGM_EVENT_SEVERITY_ON = 0,
 
  412             NDB_MGM_EVENT_SEVERITY_DEBUG = 1,
 
  413             NDB_MGM_EVENT_SEVERITY_INFO = 2,
 
  414             NDB_MGM_EVENT_SEVERITY_WARNING = 3,
 
  415             NDB_MGM_EVENT_SEVERITY_ERROR = 4,
 
  416             NDB_MGM_EVENT_SEVERITY_CRITICAL = 5,
 
  417             NDB_MGM_EVENT_SEVERITY_ALERT = 6,
 
  418             NDB_MGM_EVENT_SEVERITY_ALL = 7;
 
  422         int NDB_MGM_ILLEGAL_EVENT_CATEGORY = -1,
 
  423             NDB_MGM_EVENT_CATEGORY_STARTUP = CFG_LOGLEVEL_STARTUP,
 
  424             NDB_MGM_EVENT_CATEGORY_SHUTDOWN = CFG_LOGLEVEL_SHUTDOWN,
 
  425             NDB_MGM_EVENT_CATEGORY_STATISTIC = CFG_LOGLEVEL_STATISTICS,
 
  426             NDB_MGM_EVENT_CATEGORY_CHECKPOINT = CFG_LOGLEVEL_CHECKPOINT,
 
  427             NDB_MGM_EVENT_CATEGORY_NODE_RESTART = CFG_LOGLEVEL_NODERESTART,
 
  428             NDB_MGM_EVENT_CATEGORY_CONNECTION = CFG_LOGLEVEL_CONNECTION,
 
  429             NDB_MGM_EVENT_CATEGORY_BACKUP = CFG_LOGLEVEL_BACKUP,
 
  430             NDB_MGM_EVENT_CATEGORY_CONGESTION = CFG_LOGLEVEL_CONGESTION,
 
  431             NDB_MGM_EVENT_CATEGORY_INFO = CFG_LOGLEVEL_INFO,
 
  432             NDB_MGM_EVENT_CATEGORY_ERROR = CFG_LOGLEVEL_ERROR;
 
  434     static public class  ndb_logevent {
 
  443         Connected _Connected;
 
  444         Disconnected _Disconnected;
 
  445         CommunicationClosed _CommunicationClosed;
 
  446         CommunicationOpened _CommunicationOpened;
 
  447         ConnectedApiVersion _ConnectedApiVersion;
 
  448         GlobalCheckpointStarted _GlobalCheckpointStarted;
 
  449         GlobalCheckpointCompleted _GlobalCheckpointCompleted;
 
  450         LocalCheckpointStarted _LocalCheckpointStarted;
 
  451         LocalCheckpointCompleted _LocalCheckpointCompleted;
 
  452         LCPStoppedInCalcKeepGci _LCPStoppedInCalcKeepGci;
 
  453         LCPFragmentCompleted _LCPFragmentCompleted;
 
  454         UndoLogBlocked _UndoLogBlocked;
 
  455         NDBStartStarted _NDBStartStarted;
 
  456         NDBStartCompleted _NDBStartCompleted;
 
  457         STTORRYRecieved _STTORRYRecieved;
 
  458         StartPhaseCompleted _StartPhaseCompleted;
 
  459         CM_REGCONF _CM_REGCONF;
 
  460         CM_REGREF _CM_REGREF;
 
  461         FIND_NEIGHBOURS _FIND_NEIGHBOURS;
 
  462         NDBStopStarted _NDBStopStarted;
 
  463         NDBStopCompleted _NDBStopCompleted;
 
  464         NDBStopForced _NDBStopForced;
 
  465         NDBStopAborted _NDBStopAborted;
 
  466         StartREDOLog _StartREDOLog;
 
  468         UNDORecordsExecuted _UNDORecordsExecuted;
 
  469         NR_CopyDict _NR_CopyDict;
 
  470         NR_CopyDistr _NR_CopyDistr;
 
  471         NR_CopyFragsStarted _NR_CopyFragsStarted;
 
  472         NR_CopyFragDone _NR_CopyFragDone;
 
  473         NR_CopyFragsCompleted _NR_CopyFragsCompleted;
 
  474         NodeFailCompleted _NodeFailCompleted;
 
  475         NODE_FAILREP _NODE_FAILREP;
 
  476         ArbitState _ArbitState;
 
  477         ArbitResult _ArbitResult;
 
  478         GCP_TakeoverStarted _GCP_TakeoverStarted;
 
  479         GCP_TakeoverCompleted _GCP_TakeoverCompleted;
 
  480         LCP_TakeoverStarted _LCP_TakeoverStarted;
 
  481         LCP_TakeoverCompleted _LCP_TakeoverCompleted;
 
  482         TransReportCounters _TransReportCounters;
 
  483         OperationReportCounters _OperationReportCounters;
 
  484         TableCreated _TableCreated;
 
  485         JobStatistic _JobStatistic;
 
  486         SendBytesStatistic _SendBytesStatistic;
 
  487         ReceiveBytesStatistic _ReceiveBytesStatistic;
 
  488         MemoryUsage _MemoryUsage;
 
  489         TransporterError _TransporterError;
 
  490         TransporterWarning _TransporterWarning;
 
  491         MissedHeartbeat _MissedHeartbeat;
 
  492         DeadDueToHeartbeat _DeadDueToHeartbeat;
 
  493         WarningEvent _WarningEvent;
 
  494         SentHeartbeat _SentHeartbeat;
 
  495         CreateLogBytes _CreateLogBytes;
 
  496         InfoEvent _InfoEvent;
 
  497         EventBufferStatus _EventBufferStatus;
 
  498         BackupStarted _BackupStarted;
 
  499         BackupFailedToStart _BackupFailedToStart;
 
  500         BackupCompleted _BackupCompleted;
 
  501         BackupStatus _BackupStatus;
 
  502         BackupAborted _BackupAborted;
 
  503         RestoreStarted _RestoreStarted;
 
  505         RestoreData _RestoreData;
 
  506         RestoreLog _RestoreLog;
 
  507         RestoreCompleted _RestoreCompleted;
 
  508         SingleUser _SingleUser;
 
  509         StartReport _StartReport;
 
  510         SubscriptionStatus _SubscriptionStatus;
 
  511         RedoStatus _RedoStatus;
 
  513         static public class  Connected {
 
  516         static public class  Disconnected {
 
  519         static public class  CommunicationClosed {
 
  522         static public class  CommunicationOpened {
 
  525         static public class  ConnectedApiVersion {
 
  529         static public class  GlobalCheckpointStarted {
 
  532         static public class  GlobalCheckpointCompleted {
 
  535         static public class  LocalCheckpointStarted {
 
  540         static public class  LocalCheckpointCompleted {
 
  543         static public class  LCPStoppedInCalcKeepGci {
 
  546         static public class  LCPFragmentCompleted {
 
  551         static public class  UndoLogBlocked {
 
  555         static public class  NDBStartStarted {
 
  558         static public class  NDBStartCompleted {
 
  561         static public class  STTORRYRecieved {
 
  564         static public class  StartPhaseCompleted {
 
  568         static public class  CM_REGCONF {
 
  573         static public class  CM_REGREF {
 
  578         static public class  FIND_NEIGHBOURS {
 
  584         static public class  NDBStopStarted {
 
  587         static public class  NDBStopCompleted {
 
  591         static public class  NDBStopForced {
 
  598         static public class  NDBStopAborted {
 
  601         static public class  StartREDOLog {
 
  607         static public class  StartLog {
 
  613         static public class  UNDORecordsExecuted {
 
  626         static public class  NR_CopyDict {
 
  629         static public class  NR_CopyDistr {
 
  632         static public class  NR_CopyFragsStarted {
 
  635         static public class  NR_CopyFragDone {
 
  640         static public class  NR_CopyFragsCompleted {
 
  643         static public class  NodeFailCompleted {
 
  648         static public class  NODE_FAILREP {
 
  652         static public class  ArbitState {
 
  658         static public class  ArbitResult {
 
  664         static public class  GCP_TakeoverStarted {
 
  667         static public class  GCP_TakeoverCompleted {
 
  670         static public class  LCP_TakeoverStarted {
 
  673         static public class  LCP_TakeoverCompleted {
 
  676         static public class  TransReportCounters {
 
  680             int simple_read_count;
 
  686             int range_scan_count;
 
  688         static public class  OperationReportCounters {
 
  691         static public class  TableCreated {
 
  694         static public class  JobStatistic {
 
  697         static public class  SendBytesStatistic {
 
  701         static public class  ReceiveBytesStatistic {
 
  703             int mean_received_bytes;
 
  705         static public class  MemoryUsage {
 
  712         static public class  TransporterError {
 
  716         static public class  TransporterWarning {
 
  720         static public class  MissedHeartbeat {
 
  724         static public class  DeadDueToHeartbeat {
 
  727         static public class  WarningEvent {
 
  730         static public class  SentHeartbeat {
 
  733         static public class  CreateLogBytes {
 
  736         static public class  InfoEvent {
 
  739         static public class  EventBufferStatus {
 
  748         static public class  BackupStarted {
 
  752         static public class  BackupFailedToStart {
 
  756         static public class  BackupCompleted {
 
  766             int n_log_records_hi;
 
  770         static public class  BackupStatus {
 
  775             int n_log_records_lo;
 
  776             int n_log_records_hi;
 
  782         static public class  BackupAborted {
 
  787         static public class  RestoreStarted {
 
  800         static public class  RestoreData {
 
  808         static public class  RestoreLog {
 
  816         static public class  RestoreCompleted {
 
  820         static public class  SingleUser {
 
  824         static public class  StartReport {
 
  830         static public class  SubscriptionStatus {
 
  834         static public class  RedoStatus {
 
  848         int NDB_LEH_NO_ERROR = 0,
 
  849             NDB_LEH_READ_ERROR = 1,
 
  850             NDB_LEH_MISSING_EVENT_SPECIFIER = 2,
 
  851             NDB_LEH_UNKNOWN_EVENT_TYPE = 3,
 
  852             NDB_LEH_UNKNOWN_EVENT_VARIABLE = 4,
 
  853             NDB_LEH_INTERNAL_ERROR = 5;