GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
DTDL
DADL
Setup
DataFS SDK setup
DataFS setup
DataFS Tools
DataFS setup parameters
stcStorageDiskSettings
stcStorageDiskOpen
stcStorageDiskCreate
stcDomainStorage
stcDomainSettings
stcStorageSettings

stcStorageSettings structure

Storage settings

Syntax

struct stcStorageSettings
{
UINT32 ulSize;
 
GUID guidId;
wchar_t* strName;
 
UINT32 ulFlags;
 
UINT16 usStorageId;
UINT8 ubtServerId;
 
UINT8 ubtSecureBlockShift;
 
UINT32 ulLogDataPoolLength;
UINT32 ulLogDataReplicationPoolLength;
UINT32 ulLogDataBlockSize;
 
UINT32 ulMinStorageElementCount;
UINT32 ulMaxStorageElementCount;
 
UINT32 ulMinStorageDataSize;
UINT32 ulMaxStorageDataSize;
UINT32 ulDeltaStorageDataSize;
 
UINT32 ulMinPartObjectCount;
UINT32 ulMaxPartObjectCount;
 
UINT32 ulCacheHalfLife;
 
UINT32 ulMinStorageCount;
UINT32 ulMaxStorageCount;
UINT32 ulDeltaStorageCount;
 
UINT32 ulMinPartCount;
UINT32 ulMaxPartCount;
UINT32 ulDeltaPartCount;
 
UINT32 ulWriteDownThreadCount;
UINT32 ulMaxIncompleteTransaction;
 
UINT32 ulReplicationThreadCount;
UINT32 ulEventThreadCount;
};

Member

ulSize
Type: UINT32
The size (sizeof(stcStorageSettings)) of the structure.
guidId
Type: GUID
The globally unique ID of the domain.
strName
Type: wchar_t*
The name of the domain. This name is only used in GUIs.
ulFlags
Type: UINT32
0x1 Enabled (read-only, use “EnableStorage” to set it).
usStorageId
Type: UINT16
The ID of the storage in relation to the domain.
ubtServerId
Type: UINT8
The ID of the server in relation to the storage.
ubtSecureBlockShift
Type: UINT8
Defines the size of a block that is written in a single operation (atomic) by the storage device used. The size of a block is 1 << ubtSecureBlockShift. If the value is less than 9, the value is increased so that a minimum block size of 512 is created.
ulLogDataPoolLength
Type: UINT32
The log blocks’ count for incoming write requests is kept loaded in the memory.
ulLogDataReplicationPoolLength
Type: UINT32
Always 0.
ulLogDataBlockSize
Type: UINT32
Size of log blocks.
Minimum value: 1048576 (1 MB)
Default value: 1048576 (1 MB)
ulMinStorageElementCount
Type: UINT32
Minimum count of objects that can be stored inside an object storage.
Minimum value: 32
Default value: 32
ulMaxStorageElementCount
Type: UINT32
Maximum count of objects that can be stored inside an object storage.
Minimum value: 8192
Default value: 8192
ulMinStorageDataSize
Type: UINT32
Minimum size of object data that can be stored inside an object storage.
Minimum value: 4096 (4 KB)
Default value: 4096 (4 KB)
ulMaxStorageDataSize
Type: UINT32
Maximum size of object data that can be stored inside an object storage.
Minimum value: 8388608 (8 MB)
Default value: 8388608 (8 MB)
ulDeltaStorageDataSize
Type: UINT32
Size that the object data size is increased or decreased by when more or less space is needed.
Minimum value: 131072 (128 KB)
Default value: 131072 (128 KB)
ulMinPartObjectCount
Type: UINT32
Minimum count of objects inside a part of the caching table for open objects.
ulMaxPartObjectCount
Type: UINT32
Maximum count of objects inside a part of the caching table for open objects.
Minimum value: 64
Default value: 64
ulCacheHalfLife
Type: UINT32
Time in milliseconds after which the system tries to reduce the size of the data inside the cache if the data has not been used.
ulMinStorageCount
Type: UINT32
Minimum count of object storages kept loaded in the memory for caching.
ulMaxStorageCount
Type: UINT32
Maximum count of object storages kept loaded in the memory for caching.
ulDeltaStorageCount
Type: UINT32
Delta count that the storage count is reduced by after not being used for more than the ulCacheHalfLife time.
ulMinPartCount
Type: UINT32
Minimum count of caching tables for caching objects.
ulMaxPartCount
Type: UINT32
Maximum count of caching tables for caching objects.
ulDeltaPartCount
Type: UINT32
Delta count that the part count is reduced by after not being used for more than the ulCacheHalfLife time.
ulWriteDownThreadCount
Type: UINT32
Count of threads to be used to make logged transaction changes to the data in the database.
ulMaxIncompleteTransaction
Type: UINT32
Maximum number of incomplete transactions. A transaction is complete once it is fully processed. This is when it has been logged and all the changes have been made to the data in the database.
The system delays the execution of client write requests until the count of incomplete transactions falls below this limit.
ulReplicationThreadCount
Type: UINT32
Always 0.
ulEventThreadCount
Type: UINT32
Count of threads to be used for event handling. Events are sent to clients to inform them of changes to the database.
© 2022 Mobiland AG