C# Класс GSF.Snap.Services.ClientDatabaseBase

Represents a single historian database.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AttachFilesOrPaths ( IEnumerable paths ) : void

Loads the provided files from all of the specified paths.

DeleteFiles ( List files ) : void

Deletes the list of files from the database.

DetatchFiles ( List files ) : void

Detaches the list of files from the database.

Dispose ( ) : void

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

GetAllAttachedFiles ( ) : List

Enumerates all of the files attached to the database.

HardCommit ( ) : void

Forces a commit to the disk subsystem. Once this returns, the data will not be lost due to an application crash or unexpected shutdown. Hard commits can take 100ms or longer depending on how much data has to be committed. This requires two consecutive hardware cache flushes.

SoftCommit ( ) : void

Forces a soft commit on the database. A soft commit only commits data to memory. This allows other clients to read the data. While soft committed, this data could be lost during an unexpected shutdown. Soft commits usually occur within microseconds.

Описание методов

AttachFilesOrPaths() публичный абстрактный Метод

Loads the provided files from all of the specified paths.
public abstract AttachFilesOrPaths ( IEnumerable paths ) : void
paths IEnumerable all of the paths of archive files to attach. These can either be a path, or an individual file name.
Результат void

DeleteFiles() публичный абстрактный Метод

Deletes the list of files from the database.
public abstract DeleteFiles ( List files ) : void
files List the files that need to be deleted
Результат void

DetatchFiles() публичный абстрактный Метод

Detaches the list of files from the database.
public abstract DetatchFiles ( List files ) : void
files List the file ids that need to be detatched.
Результат void

Dispose() публичный абстрактный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public abstract Dispose ( ) : void
Результат void

GetAllAttachedFiles() публичный абстрактный Метод

Enumerates all of the files attached to the database.
public abstract GetAllAttachedFiles ( ) : List
Результат List

HardCommit() публичный абстрактный Метод

Forces a commit to the disk subsystem. Once this returns, the data will not be lost due to an application crash or unexpected shutdown. Hard commits can take 100ms or longer depending on how much data has to be committed. This requires two consecutive hardware cache flushes.
public abstract HardCommit ( ) : void
Результат void

SoftCommit() публичный абстрактный Метод

Forces a soft commit on the database. A soft commit only commits data to memory. This allows other clients to read the data. While soft committed, this data could be lost during an unexpected shutdown. Soft commits usually occur within microseconds.
public abstract SoftCommit ( ) : void
Результат void