
#include <LBDBManager.h>

Definition at line 70 of file LBDBManager.h.
typedef CkVec<LBOM*> LBDB::OMList [private] |
Definition at line 255 of file LBDBManager.h.
typedef CkVec<LBObj*> LBDB::ObjList [private] |
Definition at line 256 of file LBDBManager.h.
typedef CkVec<MigrateCB*> LBDB::MigrateCBList [private] |
Definition at line 257 of file LBDBManager.h.
typedef CkVec<StartLBCB*> LBDB::StartLBCBList [private] |
Definition at line 258 of file LBDBManager.h.
typedef CkVec<MigrationDoneCB*> LBDB::MigrationDoneCBList [private] |
Definition at line 259 of file LBDBManager.h.
| LBDB::~LBDB | ( | ) | [inline] |
Definition at line 73 of file LBDBManager.h.
| void LBDB::SetPeriod | ( | double | secs | ) | [inline] |
Definition at line 75 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::setPeriod().
Referenced by LDSetLBPeriod().
| double LBDB::GetPeriod | ( | ) | [inline] |
Definition at line 76 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::getPeriod().
Referenced by LDGetLBPeriod().
| void LBDB::insert | ( | LBOM * | om | ) |
| void LBDB::LocalBarrierOn | ( | void | ) | [inline] |
Definition at line 88 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOn().
Referenced by LDLocalBarrierOn().
| void LBDB::LocalBarrierOff | ( | void | ) | [inline] |
Definition at line 90 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOff().
Referenced by LDLocalBarrierOff().
| LBOM* LBDB::LbOM | ( | LDOMHandle | h | ) | [inline] |
Definition at line 93 of file LBDBManager.h.
References LDOMHandle::handle, and oms.
Referenced by LDOMUserData().
| LBObj* LBDB::LbObj | ( | const LDObjHandle & | h | ) | const [inline] |
Definition at line 95 of file LBDBManager.h.
References LDObjHandle::handle, and objs.
Referenced by LBDatabase::EstObjLoad(), LDAsyncMigrate(), LDCollectStatsOn(), LDGetObjLoad(), LDMigratable(), LDNonMigratable(), LDObjectStart(), LDObjectStop(), LDObjTime(), LDObjUserData(), and LDQueryKnownObjLoad().
| void LBDB::TurnStatsOn | ( | void | ) | [inline] |
Definition at line 101 of file LBDBManager.h.
References CmiTrue, machineUtil, statsAreOn, and LBMachineUtil::StatsOn().
Referenced by LDCollectStatsOn().
| void LBDB::TurnStatsOff | ( | void | ) | [inline] |
Definition at line 103 of file LBDBManager.h.
References CmiFalse, machineUtil, statsAreOn, and LBMachineUtil::StatsOff().
Referenced by LDCollectStatsOff().
| CmiBool LBDB::StatsOn | ( | void | ) | const [inline] |
Definition at line 105 of file LBDBManager.h.
References statsAreOn.
Referenced by LDCollectingStats(), LDCollectStatsOn(), LDMulticastSend(), LDObjectStart(), LDObjectStop(), and LDSend().
| void LBDB::TurnPredictorOn | ( | void * | model | ) | [inline] |
Definition at line 109 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::on, and predictCBFn.
Referenced by LDTurnPredictorOn(), and LDTurnPredictorOnWin().
| void LBDB::TurnPredictorOn | ( | void * | model, | |
| int | wind | |||
| ) | [inline] |
Definition at line 113 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::onWin, and predictCBFn.
| void LBDB::TurnPredictorOff | ( | void | ) | [inline] |
Definition at line 117 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::off, and predictCBFn.
Referenced by LDTurnPredictorOff().
| void LBDB::ChangePredictor | ( | void * | model | ) | [inline] |
Definition at line 122 of file LBDBManager.h.
References LBDB::PredictCB::change, CmiPrintf(), LBDB::PredictCB::data, and predictCBFn.
Referenced by LDChangePredictor().
| int LBDB::CommDataCount | ( | ) | [inline] |
Definition at line 131 of file LBDBManager.h.
References LBCommTable::CommCount(), and commTable.
Referenced by LDGetCommDataSz().
| void LBDB::GetCommData | ( | LDCommData * | data | ) | [inline] |
Definition at line 136 of file LBDBManager.h.
References commTable, and LBCommTable::GetCommData().
Referenced by LDGetCommData().
| void LBDB::TurnOnNotifyMigrated | ( | int | handle | ) | [inline] |
| void LBDB::TurnOffNotifyMigrated | ( | int | handle | ) | [inline] |
| void LBDB::TurnManualLBOn | ( | ) | [inline] |
Definition at line 148 of file LBDBManager.h.
References CmiFalse, and useBarrier.
Referenced by LDTurnManualLBOn().
| void LBDB::TurnManualLBOff | ( | ) | [inline] |
Definition at line 150 of file LBDBManager.h.
References CmiTrue, and useBarrier.
Referenced by LDTurnManualLBOff().
| void LBDB::TurnOnStartLBFn | ( | int | handle | ) | [inline] |
| void LBDB::TurnOffStartLBFn | ( | int | handle | ) | [inline] |
| void LBDB::IdleTime | ( | LBRealType * | walltime | ) | [inline] |
Definition at line 165 of file LBDBManager.h.
References LBMachineUtil::IdleTime(), and machineUtil.
Referenced by BackgroundLoad(), GetTime(), and LDIdleTime().
| void LBDB::TotalTime | ( | LBRealType * | walltime, | |
| LBRealType * | cputime | |||
| ) | [inline] |
Definition at line 167 of file LBDBManager.h.
References machineUtil, and LBMachineUtil::TotalTime().
Referenced by BackgroundLoad(), GetTime(), and LDTotalTime().
| void LBDB::SetRunningObj | ( | const LDObjHandle & | _h | ) | [inline] |
runningObj records the obj handler index so that load balancer knows if an event(e.g.
Send) is in an entry function or not. An index is enough here because LDObjHandle can be retrieved from objs array. Copying LDObjHandle is expensive.
Definition at line 180 of file LBDBManager.h.
References CmiTrue, LDObjHandle::handle, obj_running, and runningObj.
Referenced by LDObjectStart().
| const LDObjHandle& LBDB::RunningObj | ( | ) | const [inline] |
Definition at line 182 of file LBDBManager.h.
References objs, and runningObj.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), MulticastSend(), LBDatabase::RunningObject(), and Send().
| void LBDB::NoRunningObj | ( | ) | [inline] |
Definition at line 184 of file LBDBManager.h.
References CmiFalse, and obj_running.
Referenced by LDObjectStop().
| CmiBool LBDB::ObjIsRunning | ( | ) | const [inline] |
Definition at line 186 of file LBDBManager.h.
References obj_running.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), and LBDatabase::RunningObject().
| LDBarrierClient LBDB::AddLocalBarrierClient | ( | LDResumeFn | fn, | |
| void * | data | |||
| ) | [inline] |
Definition at line 189 of file LBDBManager.h.
References LocalBarrier::AddClient(), and localBarrier.
Referenced by LBDB::batsyncer::init(), and LDAddLocalBarrierClient().
| void LBDB::RemoveLocalBarrierClient | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 191 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveClient().
Referenced by LDRemoveLocalBarrierClient().
| LDBarrierReceiver LBDB::AddLocalBarrierReceiver | ( | LDBarrierFn | fn, | |
| void * | data | |||
| ) | [inline] |
Definition at line 193 of file LBDBManager.h.
References LocalBarrier::AddReceiver(), and localBarrier.
Referenced by LDAddLocalBarrierReceiver().
| void LBDB::RemoveLocalBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 195 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveReceiver().
Referenced by LDRemoveLocalBarrierReceiver().
| void LBDB::TurnOnBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 197 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOnReceiver().
| void LBDB::TurnOffBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 199 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOffReceiver().
| void LBDB::AtLocalBarrier | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 201 of file LBDBManager.h.
References LocalBarrier::AtBarrier(), localBarrier, and useBarrier.
Referenced by LBDB::batsyncer::gotoSync(), and LDAtLocalBarrier().
| void LBDB::ResumeClients | ( | void | ) | [inline] |
Definition at line 203 of file LBDBManager.h.
References localBarrier, and LocalBarrier::ResumeClients().
Referenced by LDResumeClients().
Definition at line 205 of file LBDBManager.h.
References obj_cputime, obj_walltime, and statsAreOn.
Referenced by LBObj::IncrementTime().
| int LBDB::validObjHandle | ( | LDObjHandle | h | ) | [inline] |
Definition at line 295 of file LBDBManager.h.
References LDObjHandle::handle, objCount, and objs.
Referenced by CentralLB::ProcessReceiveMigration().
| int LBDB::getObjCount | ( | ) | [inline] |
Definition at line 308 of file LBDBManager.h.
References objCount.
Referenced by controlPointManager::gotoNextPhase().
| const ObjList& LBDB::getObjs | ( | ) | [inline] |
Definition at line 309 of file LBDBManager.h.
References objs.
Referenced by controlPointManager::gotoNextPhase().
LBCommTable* LBDB::commTable [private] |
Definition at line 261 of file LBDBManager.h.
Referenced by ClearLoads(), CommDataCount(), GetCommData(), LBDB(), MulticastSend(), Send(), and useMem().
Definition at line 262 of file LBDBManager.h.
Referenced by AddOM(), DoneRegisteringObjects(), LbOM(), Migrate(), RegisteringObjects(), and useMem().
int LBDB::omCount [private] |
int LBDB::oms_registering [private] |
Definition at line 264 of file LBDBManager.h.
Referenced by DoneRegisteringObjects(), LBDB(), and RegisteringObjects().
ObjList LBDB::objs [private] |
Definition at line 266 of file LBDBManager.h.
Referenced by AddObj(), ClearLoads(), GetObjData(), getObjs(), LbObj(), LbObjIdx(), Migrate(), ObjDataCount(), RunningObj(), UnregisterObj(), and validObjHandle().
int LBDB::objCount [private] |
Definition at line 267 of file LBDBManager.h.
Referenced by AddObj(), ClearLoads(), DumpDatabase(), getObjCount(), LBDB(), Migrate(), ObjDataCount(), and validObjHandle().
CmiBool LBDB::statsAreOn [private] |
Definition at line 269 of file LBDBManager.h.
Referenced by LBDB(), MeasuredObjTime(), StatsOn(), TurnStatsOff(), and TurnStatsOn().
MigrateCBList LBDB::migrateCBList [private] |
Definition at line 270 of file LBDBManager.h.
Referenced by Migrated(), NotifyMigrated(), RemoveNotifyMigrated(), TurnOffNotifyMigrated(), TurnOnNotifyMigrated(), and useMem().
MigrationDoneCBList LBDB::migrationDoneCBList [private] |
Definition at line 272 of file LBDBManager.h.
Referenced by AddMigrationDoneFn(), MigrationDone(), and RemoveMigrationDoneFn().
PredictCB* LBDB::predictCBFn [private] |
Definition at line 274 of file LBDBManager.h.
Referenced by ChangePredictor(), LBDB(), SetupPredictor(), TurnPredictorOff(), and TurnPredictorOn().
CmiBool LBDB::obj_running [private] |
Definition at line 276 of file LBDBManager.h.
Referenced by LBDB(), MulticastSend(), NoRunningObj(), ObjIsRunning(), Send(), and SetRunningObj().
int LBDB::runningObj [private] |
batsyncer LBDB::batsync [private] |
LocalBarrier LBDB::localBarrier [private] |
Definition at line 281 of file LBDBManager.h.
Referenced by AddLocalBarrierClient(), AddLocalBarrierReceiver(), AtLocalBarrier(), DoneRegisteringObjects(), LocalBarrierOff(), LocalBarrierOn(), RegisteringObjects(), RemoveLocalBarrierClient(), RemoveLocalBarrierReceiver(), ResumeClients(), TurnOffBarrierReceiver(), and TurnOnBarrierReceiver().
CmiBool LBDB::useBarrier [private] |
Definition at line 282 of file LBDBManager.h.
Referenced by AtLocalBarrier(), TurnManualLBOff(), and TurnManualLBOn().
LBMachineUtil LBDB::machineUtil [private] |
Definition at line 284 of file LBDBManager.h.
Referenced by ClearLoads(), IdleTime(), TotalTime(), TurnStatsOff(), and TurnStatsOn().
double LBDB::obj_walltime [private] |
Definition at line 285 of file LBDBManager.h.
Referenced by BackgroundLoad(), ClearLoads(), GetTime(), LBDB(), and MeasuredObjTime().
double LBDB::obj_cputime [private] |
Definition at line 287 of file LBDBManager.h.
Referenced by BackgroundLoad(), ClearLoads(), GetTime(), LBDB(), and MeasuredObjTime().
StartLBCBList LBDB::startLBFnList [private] |
Definition at line 290 of file LBDBManager.h.
Referenced by AddStartLBFn(), RemoveStartLBFn(), StartLB(), TurnOffStartLBFn(), TurnOnStartLBFn(), and useMem().
int LBDB::startLBFn_count [private] |
Definition at line 291 of file LBDBManager.h.
Referenced by AddStartLBFn(), LBDB(), RemoveStartLBFn(), and StartLB().
1.5.5