C# Class GSF.IO.FileStructure.SubFileDiskIoSessionPool

Contains a set of DiskIoSessions that speed up the I/O operations associated with reading and writing to an archive disk. This class contains two I/O Sessions if the file supports modification to speed up the copy operation when doing shadow copies.
Inheritance: IDisposable
Show file Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Properties

Property Type Description
DestinationData GSF.IO.FileStructure.Media.DiskIoSession
DestinationIndex GSF.IO.FileStructure.Media.DiskIoSession
SourceData GSF.IO.FileStructure.Media.DiskIoSession
SourceIndex GSF.IO.FileStructure.Media.DiskIoSession

Public Methods

Method Description
Clear ( ) : void

Releases all of the data associated with the I/O Sessions.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SubFileDiskIoSessionPool ( DiskIo diskIo, FileHeaderBlock header, SubFileHeader file, bool isReadOnly ) : System

Creates this file with the following data.

SwapData ( ) : void

Swaps the source and destination Data I/O Sessions

SwapIndex ( ) : void

Swaps the source and destination index I/O Sessions.

Method Details

Clear() public method

Releases all of the data associated with the I/O Sessions.
public Clear ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

SubFileDiskIoSessionPool() public method

Creates this file with the following data.
public SubFileDiskIoSessionPool ( DiskIo diskIo, FileHeaderBlock header, SubFileHeader file, bool isReadOnly ) : System
diskIo GSF.IO.FileStructure.Media.DiskIo
header FileHeaderBlock
file SubFileHeader
isReadOnly bool
return System

SwapData() public method

Swaps the source and destination Data I/O Sessions
public SwapData ( ) : void
return void

SwapIndex() public method

Swaps the source and destination index I/O Sessions.
public SwapIndex ( ) : void
return void

Property Details

DestinationData public property

Null if in readonly mode
public DiskIoSession,GSF.IO.FileStructure.Media DestinationData
return GSF.IO.FileStructure.Media.DiskIoSession

DestinationIndex public property

Null if in readonly mode
public DiskIoSession,GSF.IO.FileStructure.Media DestinationIndex
return GSF.IO.FileStructure.Media.DiskIoSession

SourceData public property

public DiskIoSession,GSF.IO.FileStructure.Media SourceData
return GSF.IO.FileStructure.Media.DiskIoSession

SourceIndex public property

public DiskIoSession,GSF.IO.FileStructure.Media SourceIndex
return GSF.IO.FileStructure.Media.DiskIoSession