C# Class GSF.Snap.Services.Writer.RolloverLogFile

Logs the rollover process so that it can be properly finished in the event of a power outage or process crash
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Свойство Type Description
DestinationFile System.Guid
FileName string
IsValid bool
SourceFiles List

Méthodes publiques

Méthode Description
Delete ( ) : void

Deletes the file associated with this ArchiveLog

Recover ( ArchiveList list ) : void

Recovers this rollover during an application crash.

RolloverLogFile ( string fileName ) : GSF.Diagnostics

Resumes a rollover log

RolloverLogFile ( string fileName, List sourceFiles, System.Guid destinationFile ) : GSF.Diagnostics

Creates a new rollover log

Private Methods

Méthode Description
RolloverLogFile ( ) : GSF.Diagnostics

Method Details

Delete() public méthode

Deletes the file associated with this ArchiveLog
public Delete ( ) : void
Résultat void

Recover() public méthode

Recovers this rollover during an application crash.
public Recover ( ArchiveList list ) : void
list ArchiveList
Résultat void

RolloverLogFile() public méthode

Resumes a rollover log
public RolloverLogFile ( string fileName ) : GSF.Diagnostics
fileName string the name of the log file to load.
Résultat GSF.Diagnostics

RolloverLogFile() public méthode

Creates a new rollover log
public RolloverLogFile ( string fileName, List sourceFiles, System.Guid destinationFile ) : GSF.Diagnostics
fileName string the name of the file to save
sourceFiles List the source files in the rollover process
destinationFile System.Guid the destination file in the rollover process.
Résultat GSF.Diagnostics

Property Details

DestinationFile public_oe property

Gets the destination file
public Guid,System DestinationFile
Résultat System.Guid

FileName public_oe property

Gets the filename of this log file. String.Empty if not currently associated with a file.
public string FileName
Résultat string

IsValid public_oe property

Gets if the file is valid and not corrupt.
public bool IsValid
Résultat bool

SourceFiles public_oe property

Gets all of the source files.
public List SourceFiles
Résultat List