Class RandomAccessDeviceManager
Inheritance
RandomAccessDeviceManager
Assembly: ZoneTree.dll
Syntax
public sealed class RandomAccessDeviceManager : IRandomAccessDeviceManager
Constructors
|
Improve this Doc
View Source
RandomAccessDeviceManager(ILogger, IFileStreamProvider, string)
Declaration
public RandomAccessDeviceManager(ILogger logger, IFileStreamProvider fileStreamProvider, string dataDirectory = "data")
Parameters
Properties
|
Improve this Doc
View Source
DeviceCount
Declaration
public int DeviceCount { get; }
Property Value
|
Improve this Doc
View Source
FileStreamProvider
Declaration
public IFileStreamProvider FileStreamProvider { get; }
Property Value
|
Improve this Doc
View Source
Logger
Declaration
public ILogger Logger { get; }
Property Value
|
Improve this Doc
View Source
ReadOnlyDeviceCount
Declaration
public int ReadOnlyDeviceCount { get; }
Property Value
|
Improve this Doc
View Source
WritableDeviceCount
Declaration
public int WritableDeviceCount { get; }
Property Value
Methods
|
Improve this Doc
View Source
CloseAllDevices()
Declaration
public void CloseAllDevices()
|
Improve this Doc
View Source
CreateWritableDevice(long, string, bool, int, bool, bool, CompressionMethod, int)
Declaration
public IRandomAccessDevice CreateWritableDevice(long segmentId, string category, bool isCompressed, int compressionBlockSize, bool deleteIfExists, bool backupIfDelete, CompressionMethod compressionMethod, int compressionLevel)
Parameters
Returns
|
Improve this Doc
View Source
DeleteDevice(long, string, bool)
Declaration
public void DeleteDevice(long segmentId, string category, bool isCompressed)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
bool |
isCompressed |
|
|
Improve this Doc
View Source
DeviceExists(long, string, bool)
Declaration
public bool DeviceExists(long segmentId, string category, bool isCompressed)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
bool |
isCompressed |
|
Returns
|
Improve this Doc
View Source
DropStore()
Declaration
|
Improve this Doc
View Source
GetDevices()
Declaration
public IReadOnlyList<IRandomAccessDevice> GetDevices()
Returns
|
Improve this Doc
View Source
GetFilePath(long, string)
Declaration
public string GetFilePath(long segmentId, string category)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
Returns
|
Improve this Doc
View Source
GetReadOnlyDevice(long, string, bool, int, CompressionMethod, int)
Declaration
public IRandomAccessDevice GetReadOnlyDevice(long segmentId, string category, bool isCompressed, int compressionBlockSize, CompressionMethod compressionMethod, int compressionLevel)
Parameters
Returns
|
Improve this Doc
View Source
GetReadOnlyDevices()
Declaration
public IReadOnlyList<IRandomAccessDevice> GetReadOnlyDevices()
Returns
|
Improve this Doc
View Source
GetWritableDevices()
Declaration
public IReadOnlyList<IRandomAccessDevice> GetWritableDevices()
Returns
|
Improve this Doc
View Source
RemoveReadOnlyDevice(long, string)
Declaration
public void RemoveReadOnlyDevice(long segmentId, string category)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
|
Improve this Doc
View Source
RemoveWritableDevice(long, string)
Declaration
public void RemoveWritableDevice(long segmentId, string category)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
Implements