IDataManager::get_MaxSize method (pla.h)
Retrieves or sets the maximum disk space to be used by all data collectors in the set.
This property is read/write.
Syntax
HRESULT get_MaxSize(
ULONG *pulMaxSize
);
Parameters
pulMaxSize
Return value
None
Remarks
The maximum value applies to all files in all subfolders under the path specified by the IDataCollectorSet::RootPath property.
This value is used by the data manager:
- Before the data collector set starts if the value of the IDataManager::CheckBeforeRunning property is VARIANT_TRUE. If the maximum size is exceeded, the manager prevents the data collector set from running.
- After the collection is completed. If the maximum size is exceeded, the data manager will start deleting folders (according to the IDataManager::ResourcePolicy property) until the total size is below the maximum size.
- Set the IDataCollector::LogCircular property to True and set the IDataCollectorSet::SegmentMaxSize property to the desired maximum size.
- Set the IDataCollector::LogCircular property to False, set the IDataCollectorSet::SegmentMaxSize property equal to the maximum folder size, and set the IDataCollectorSet::Segment property to False.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | pla.h |
DLL | Pla.dll |