C# 클래스 DataMigration.FileSystemPublishMonitoringData

상속: IPublishMonitoringData
파일 보기 프로젝트 열기: scoutmedia/DataMigration

공개 메소드들

메소드 설명
PublishFailure ( DataSourcePlan plan, IOrderedEnumerable logEntries, Exception exception ) : void

Publishs a file called 'failure' with all the relevant information. It will put one in a directory called 'latest', removing whatever is there ('success' or 'failure') and

PublishSuccess ( DataSourcePlan plan, IOrderedEnumerable logEntries ) : void

Create a file called 'success', with all the relevant information. It will put one file in a directory called 'latest', overwriting.

비공개 메소드들

메소드 설명
GetLatestAndHistoricalPaths ( DataSourcePlan plan, string &pathForLatest, string &pathForHistorical ) : void

Gets the latest and historical paths. This function simply returns the paths for calling code to use for generating 'latest' and 'historical' files.

WriteLatestAndHistoricalFiles ( DataSourcePlan plan, bool success, IOrderedEnumerable logEntries, Exception exception ) : void

Writes the monitoring report file to both the 'latest', and to a historical directory, which is named in a sortable data format. Thus, there's a complete record of runs, whether they succeeded or failed, and what happened in either case.

WriteMonitoringFile ( DataSourcePlan plan, string monitoredFilePath, bool success, IOrderedEnumerable logEntries, Exception exception ) : void

Writes the monitoring status file out to disk.

WriteSeparatorLine ( StreamWriter writer ) : void

Writes out a separator line to the file.

메소드 상세

PublishFailure() 공개 메소드

Publishs a file called 'failure' with all the relevant information. It will put one in a directory called 'latest', removing whatever is there ('success' or 'failure') and
public PublishFailure ( DataSourcePlan plan, IOrderedEnumerable logEntries, Exception exception ) : void
plan DataSourcePlan Plan.
logEntries IOrderedEnumerable Log entries.
exception System.Exception Exception.
리턴 void

PublishSuccess() 공개 메소드

Create a file called 'success', with all the relevant information. It will put one file in a directory called 'latest', overwriting.
public PublishSuccess ( DataSourcePlan plan, IOrderedEnumerable logEntries ) : void
plan DataSourcePlan Plan.
logEntries IOrderedEnumerable Log entries.
리턴 void