GlobalData Struct Reference

#include <GlobalData.hpp>


Detailed Description

Definition at line 36 of file GlobalData.hpp.

Public Member Functions

SimulatedBlockgetBlock (BlockNumber blockNo)
const Uint32getWatchDogPtr ()
 GlobalData ()
void incrementWatchDogCounter (Uint32 place)
void setBlock (BlockNumber blockNo, SimulatedBlock *block)
 ~GlobalData ()

Data Fields

Uint32 activateSendPacked
Uint32 highestAvailablePrio
Uint64 internalMillisecCounter
Uint32 JobCounter
Uint64 JobLap
Uint32 loopMax
NodeInfo m_nodeInfo [MAX_NODES]
NodeId ownId
Uint32 sendPackedActivated
Uint32 testOn
Uint32 theCountTimer
Uint32 theCurrentTimer
Uint32 theFirstFreeTQIndex
Uint32 theLongTQIndex
Uint32 theNextTimerJob
restartStates theRestartFlag
Uint32 theShortTQIndex
Uint32 theSignalId
Uint32 theStartLevel
Signal VMSignals [1]

Private Attributes

SimulatedBlockblockTable [NO_OF_BLOCKS]
Uint32 watchDog


Constructor & Destructor Documentation

GlobalData::GlobalData  )  [inline]
 

Definition at line 64 of file GlobalData.hpp.

References perform_start, NodeState::SL_NOTHING, theRestartFlag, theSignalId, and theStartLevel.

00064               { 
00065     theSignalId = 0; 
00066     theStartLevel = NodeState::SL_NOTHING;
00067     theRestartFlag = perform_start;
00068   }

GlobalData::~GlobalData  )  [inline]
 

Definition at line 69 of file GlobalData.hpp.

00069 {}


Member Function Documentation

SimulatedBlock * GlobalData::getBlock BlockNumber  blockNo  )  [inline]
 

Definition at line 100 of file GlobalData.hpp.

References blockTable, and MIN_BLOCK_NO.

Referenced by FastScheduler::doJob(), UpgradeStartup::execCM_APPCHG(), Dbtux::execSTTOR(), Dblqh::execSTTOR(), Dbacc::execSTTOR(), SimulatedBlock::EXECUTE_DIRECT(), and FastScheduler::sendPacked().

00100                                        {
00101   blockNo -= MIN_BLOCK_NO;
00102   return blockTable[blockNo];
00103 }

const Uint32 * GlobalData::getWatchDogPtr  )  [inline]
 

Definition at line 113 of file GlobalData.hpp.

References watchDog.

00113                           {
00114   return &watchDog;
00115 }

void GlobalData::incrementWatchDogCounter Uint32  place  )  [inline]
 

Definition at line 107 of file GlobalData.hpp.

References watchDog.

Referenced by FastScheduler::doJob(), dumpJam(), FastScheduler::dumpSignalMemory(), ThreadConfig::ipControlLoop(), SimulatedBlock::refresh_watch_dog(), and WatchDog::run().

00107                                                 {
00108   watchDog = place;
00109 }

void GlobalData::setBlock BlockNumber  blockNo,
SimulatedBlock block
[inline]
 

Definition at line 92 of file GlobalData.hpp.

References assert, blockTable, and MIN_BLOCK_NO.

Referenced by SimulatedBlock::SimulatedBlock().

00092                                                                {
00093   blockNo -= MIN_BLOCK_NO;
00094   assert((blockTable[blockNo] == 0) || (blockTable[blockNo] == block));
00095   blockTable[blockNo] = block;
00096 }


Field Documentation

Uint32 GlobalData::activateSendPacked
 

Definition at line 62 of file GlobalData.hpp.

Referenced by FastScheduler::activateSendPacked(), FastScheduler::clear(), Cmvmi::execSTTOR(), and FastScheduler::sendPacked().

SimulatedBlock* GlobalData::blockTable[NO_OF_BLOCKS] [private]
 

Definition at line 79 of file GlobalData.hpp.

Referenced by getBlock(), and setBlock().

Uint32 GlobalData::highestAvailablePrio
 

Definition at line 41 of file GlobalData.hpp.

Referenced by FastScheduler::clear(), FastScheduler::doJob(), FastScheduler::highestAvailablePrio(), and ThreadConfig::ipControlLoop().

Uint64 GlobalData::internalMillisecCounter
 

Definition at line 40 of file GlobalData.hpp.

Referenced by ThreadConfig::ipControlLoop(), and ThreadConfig::scanTimeQueue().

Uint32 GlobalData::JobCounter
 

Definition at line 42 of file GlobalData.hpp.

Referenced by FastScheduler::clear(), FastScheduler::doJob(), FastScheduler::dumpSignalMemory(), and FastScheduler::reportJob().

Uint64 GlobalData::JobLap
 

Definition at line 43 of file GlobalData.hpp.

Referenced by FastScheduler::clear(), FastScheduler::doJob(), FastScheduler::dumpSignalMemory(), and FastScheduler::reportJob().

Uint32 GlobalData::loopMax
 

Definition at line 44 of file GlobalData.hpp.

Referenced by FastScheduler::activateSendPacked(), FastScheduler::clear(), and FastScheduler::doJob().

NodeInfo GlobalData::m_nodeInfo[MAX_NODES]
 

Definition at line 37 of file GlobalData.hpp.

Referenced by Cmvmi::execCONNECT_REP(), SimulatedBlock::getNodeInfo(), and SimulatedBlock::setNodeInfo().

NodeId GlobalData::ownId
 

Definition at line 55 of file GlobalData.hpp.

Referenced by FastScheduler::doJob(), SimulatedBlock::EXECUTE_DIRECT(), Configuration::fetch_configuration(), ErrorReporter::get_trace_no(), Configuration::init(), main(), Dbacc::ndbrestart1Lab(), print_restart(), reportConnect(), reportDisconnect(), reportError(), reportReceiveLen(), reportSendLen(), SimulatedBlock::sendSignal(), SimulatedBlock::sendSignalWithDelay(), Configuration::setupConfiguration(), systemInfo(), and WriteMessage().

Uint32 GlobalData::sendPackedActivated
 

Definition at line 61 of file GlobalData.hpp.

Referenced by FastScheduler::activateSendPacked(), FastScheduler::clear(), and FastScheduler::sendPacked().

Uint32 GlobalData::testOn
 

Definition at line 53 of file GlobalData.hpp.

Referenced by FastScheduler::doJob(), SimulatedBlock::EXECUTE_DIRECT(), SimulatedBlock::sendSignal(), and SimulatedBlock::sendSignalWithDelay().

Uint32 GlobalData::theCountTimer
 

Definition at line 51 of file GlobalData.hpp.

Uint32 GlobalData::theCurrentTimer
 

Definition at line 47 of file GlobalData.hpp.

Referenced by TimeQueue::clear(), TimeQueue::insert(), TimeQueue::recount_timers(), and TimeQueue::scanTable().

Uint32 GlobalData::theFirstFreeTQIndex
 

Definition at line 52 of file GlobalData.hpp.

Referenced by TimeQueue::clear(), TimeQueue::getIndex(), and TimeQueue::releaseIndex().

Uint32 GlobalData::theLongTQIndex
 

Definition at line 50 of file GlobalData.hpp.

Referenced by TimeQueue::clear(), TimeQueue::insert(), TimeQueue::recount_timers(), and TimeQueue::scanTable().

Uint32 GlobalData::theNextTimerJob
 

Definition at line 46 of file GlobalData.hpp.

Referenced by TimeQueue::clear(), TimeQueue::insert(), TimeQueue::recount_timers(), and TimeQueue::scanTable().

restartStates GlobalData::theRestartFlag
 

Definition at line 58 of file GlobalData.hpp.

Referenced by Cmvmi::execSTART_ORD(), Cmvmi::execSTOP_ORD(), GlobalData(), handler_shutdown(), Configuration::init(), ThreadConfig::ipControlLoop(), main(), and NdbShutdown().

Uint32 GlobalData::theShortTQIndex
 

Definition at line 48 of file GlobalData.hpp.

Referenced by TimeQueue::clear(), TimeQueue::insert(), TimeQueue::recount_timers(), and TimeQueue::scanTable().

Uint32 GlobalData::theSignalId
 

Definition at line 59 of file GlobalData.hpp.

Referenced by GlobalData(), APZJobBuffer::retrieve(), and APZJobBuffer::signal2buffer().

Uint32 GlobalData::theStartLevel
 

Definition at line 57 of file GlobalData.hpp.

Referenced by Cmvmi::execCONNECT_REP(), Cmvmi::execDISCONNECT_REP(), Cmvmi::execSTART_ORD(), Cmvmi::execSTTOR(), and GlobalData().

Signal GlobalData::VMSignals[1]
 

Definition at line 38 of file GlobalData.hpp.

Referenced by FastScheduler::clear(), and FastScheduler::getVMSignals().

Uint32 GlobalData::watchDog [private]
 

Definition at line 78 of file GlobalData.hpp.

Referenced by getWatchDogPtr(), and incrementWatchDogCounter().


The documentation for this struct was generated from the following file:
Generated on Wed Jul 20 21:12:09 2005 for MySQL 5.0.9 Beta by  doxygen 1.4.3