#include <LinearDeviceSegment.h>
Public Member Functions | |
LinearDeviceSegmentParams () | |
Public Attributes | |
BlockId | firstBlockId |
BlockId of the first page in the segment; the owning device must already be registered with the cache. | |
BlockNum | nPagesMin |
Minimum number of pages in segment. | |
BlockNum | nPagesAllocated |
Number of pages considered allocated in segment on construction. | |
BlockNum | nPagesIncrement |
When the device needs to be extended to satisfy an allocation, the number of pages by which to extend it. | |
BlockNum | nPagesMax |
Maximum number of pages in the segment; the device will not be extended beyond this. |
Definition at line 36 of file LinearDeviceSegment.h.
LinearDeviceSegmentParams::LinearDeviceSegmentParams | ( | ) | [explicit] |
Definition at line 31 of file LinearDeviceSegment.cpp.
References firstBlockId, MAXU, nPagesAllocated, nPagesIncrement, nPagesMax, nPagesMin, and NULL_BLOCK_ID.
00032 { 00033 firstBlockId = NULL_BLOCK_ID; 00034 nPagesMin = 0; 00035 nPagesAllocated = 0; 00036 nPagesIncrement = 1; 00037 nPagesMax = MAXU; 00038 }
BlockId of the first page in the segment; the owning device must already be registered with the cache.
Definition at line 42 of file LinearDeviceSegment.h.
Referenced by Database::allocateHeader(), Database::createDataSegment(), SegStorageTestBase::createLinearDeviceSegment(), Database::createShadowLog(), Database::createTxnLogSegment(), LinearDeviceSegment::LinearDeviceSegment(), LinearDeviceSegmentParams(), Database::loadHeader(), SegmentFactory::newTempDeviceSegment(), and SparseBitmapTest::openStorage().
Minimum number of pages in segment.
If the device isn't big enough, it is automatically extended when the segment is created.
Definition at line 48 of file LinearDeviceSegment.h.
Referenced by Database::createDataDevice(), SegStorageTestBase::createLinearDeviceSegment(), Database::createShadowLog(), Database::createTxnLogSegment(), LinearDeviceSegment::LinearDeviceSegment(), LinearDeviceSegmentParams(), and Database::readDeviceParams().
Number of pages considered allocated in segment on construction.
Must be less than nPagesMax (or MAXU, in which case all pages are considered allocated).
Definition at line 55 of file LinearDeviceSegment.h.
Referenced by Database::createDataSegment(), SegStorageTestBase::createLinearDeviceSegment(), Database::createShadowLog(), Database::createTxnLogSegment(), LinearDeviceSegment::LinearDeviceSegment(), LinearDeviceSegmentParams(), Database::loadHeader(), SegmentFactory::newTempDeviceSegment(), SparseBitmapTest::openStorage(), and Database::readDeviceParams().
When the device needs to be extended to satisfy an allocation, the number of pages by which to extend it.
If 0, no auto-extension is performed.
Definition at line 61 of file LinearDeviceSegment.h.
Referenced by Database::createShadowLog(), Database::createTxnLogSegment(), LinearDeviceSegment::LinearDeviceSegment(), LinearDeviceSegmentParams(), and Database::readDeviceParams().
Maximum number of pages in the segment; the device will not be extended beyond this.
If MAXU, segment size is limited only by disk space.
Definition at line 67 of file LinearDeviceSegment.h.
Referenced by Database::createShadowLog(), Database::createTxnLogSegment(), LinearDeviceSegment::LinearDeviceSegment(), LinearDeviceSegmentParams(), Database::loadHeader(), and Database::readDeviceParams().