Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RepositoryMaintenanceThread.cpp File Reference

#include "indri/RepositoryMaintenanceThread.hpp"
#include "indri/Repository.hpp"
#include "indri/ScopedLock.hpp"
#include <iostream>

Functions

float maintenance_smoothed_load (indri::collection::Repository::Load &load)
bool maintenance_should_merge (indri::collection::Repository::index_state &state, indri::collection::Repository::Load &documentLoad, indri::collection::Repository::Load &queryLoad, UINT64 lastThrashing)
bool maintenance_should_trim (indri::collection::Repository::index_state &state, indri::collection::Repository::Load &documentLoad, indri::collection::Repository::Load &queryLoad, UINT64 lastThrashing)

Variables

const UINT64 TIME_DELAY = 10*1000*1000
const UINT64 SHORT_TIME_DELAY = 3*1000*1000
const UINT64 THRASHING_MERGE_DELAY = 300*1000*1000
const int MAXIMUM_INDEX_COUNT = 50

Function Documentation

bool maintenance_should_merge indri::collection::Repository::index_state state,
indri::collection::Repository::Load documentLoad,
indri::collection::Repository::Load queryLoad,
UINT64  lastThrashing
[static]
 

bool maintenance_should_trim indri::collection::Repository::index_state state,
indri::collection::Repository::Load documentLoad,
indri::collection::Repository::Load queryLoad,
UINT64  lastThrashing
[static]
 

float maintenance_smoothed_load indri::collection::Repository::Load load  )  [static]
 


Variable Documentation

const int MAXIMUM_INDEX_COUNT = 50
 

const UINT64 SHORT_TIME_DELAY = 3*1000*1000
 

const UINT64 THRASHING_MERGE_DELAY = 300*1000*1000
 

const UINT64 TIME_DELAY = 10*1000*1000
 


Generated on Tue Jun 15 11:02:57 2010 for Lemur by doxygen 1.3.4