BoilerPlate-LightweightLogging Service OMG Formal/03-11-03 |
#include <IdxRecordId.h>
Responsible for controlling access to the file indecies. Each Log instance has two indecies that are referenced to support queries from a LogConsumer. The primary index is the RecId index containing IdxRecord. The second is the Momento.idx that contains the current RecordIdx of the current Log. When the Log is shutdown it will reclaim the information in the Momento to start the Log from where it left off.
The IdxRecordId is also responsible for finding the location of specific LogRecords by time. LogRecords can exist in the Log archives that are written when a Log reaches its maximum size. The primary index is used to locate records by time and record id.
Public Member Functions | |
IdxRecordId (std::string logname) throw (OrbInit::InitializationError) | |
virtual | ~IdxRecordId () |
IdxRecord | get_last_record () |
IdxRecord | get_next_record_id (IdxRecord last) |
IdxRecord | find_by_time (const CosLwLog::LogTime &time) |
IdxRecord | find_by_recid (const CosLwLog::RecordId &recid) |
const bool | is_the_future (const CosLwLog::RecordId &recid) const |
CosLwLog::RecordId | future_id () |
|
ctor
|
|
dtor Ensures all files are closed |
|
Find the IdxRecord that contains the specified RecordId Given a RecordId, find the IdxRecord describing the Log that contains the specified RecordId
|
|
Find the IdxRecord that contains the specified time Given a LogTime find the IdxRecord describing the Log that contains the specified time
|
|
Query the next RecordId Determine the next RecordId. This is an unprotected operation.
|
|
Obtain the IdxRecord of the last Log Reads the current Log's IdxRecord from the Momento index
|
|
Obtain the next valid Record Id Responsible for determining the next RecordId. Reads the Momento index. If the start_seconds in the parameter last is greater than the start seconds in the Momento Index, an entry is made in the primary index and the Momento index is updated.
|
|
Is the given RecordId in the future Given a RecordId, determine if it exists in the future
|
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:33:06 2004 for BoilerPlate CosLightweightLogging Service by 1.3.7 |