C# Class GSF.Snap.Services.ClientDatabaseBase

Represents a single historian database.
Inheritance: IDisposable
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AttachFilesOrPaths() public abstract méthode

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.
Résultat void

DeleteFiles() public abstract méthode

Deletes the list of files from the database.
public abstract DeleteFiles ( List files ) : void
files List the files that need to be deleted
Résultat void

DetatchFiles() public abstract méthode

Detaches the list of files from the database.
public abstract DetatchFiles ( List files ) : void
files List the file ids that need to be detatched.
Résultat void

Dispose() public abstract méthode

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

GetAllAttachedFiles() public abstract méthode

Enumerates all of the files attached to the database.
public abstract GetAllAttachedFiles ( ) : List
Résultat List

HardCommit() public abstract méthode

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
Résultat void

SoftCommit() public abstract méthode

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
Résultat void