C# 클래스 GSF.Snap.Services.ClientDatabaseBase

Represents a single historian database.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
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