C# Class AppMetrics.DataReader

ファイルを表示 Open project: fandrei/AppMetrics

Public Methods

Method Description
GetLineTime ( string line ) : System.DateTime
GetRecords ( string appKey, TimePeriod period ) : List
GetRecordsFromPath ( string dataPath, TimePeriod period ) : List
GetRecordsFromSession ( AppMetrics.Session session, TimePeriod period, bool filterRecords = true ) : List
GetSessionLastWriteTime ( string filePath ) : System.DateTime
GetSessions ( string appKey, TimePeriod period ) : List
GetSessionsFromPath ( string dataPath, TimePeriod period ) : List
ReadLastLine ( Stream stream, Encoding encoding ) : string
ReadLastLine ( string filePath ) : string
ReadSession ( string filePath, TimePeriod period ) : AppMetrics.Session
ReadSession ( string appKey, string sessionId, TimePeriod period ) : AppMetrics.Session

Private Methods

Method Description
DetectEncoding ( Stream stream ) : Encoding
GetSessionsDataPath ( string appKey ) : string
IsServiceMessage ( string name ) : bool
ParseLine ( string line ) : AppMetrics.Record
ReadLine ( Stream stream, Encoding encoding ) : string
SkipOutdatedRecords ( Stream stream, Encoding encoding, System.DateTime startTime ) : void

Method Details

GetLineTime() public static method

public static GetLineTime ( string line ) : System.DateTime
line string
return System.DateTime

GetRecords() public static method

public static GetRecords ( string appKey, TimePeriod period ) : List
appKey string
period TimePeriod
return List

GetRecordsFromPath() public static method

public static GetRecordsFromPath ( string dataPath, TimePeriod period ) : List
dataPath string
period TimePeriod
return List

GetRecordsFromSession() public static method

public static GetRecordsFromSession ( AppMetrics.Session session, TimePeriod period, bool filterRecords = true ) : List
session AppMetrics.Session
period TimePeriod
filterRecords bool
return List

GetSessionLastWriteTime() public static method

public static GetSessionLastWriteTime ( string filePath ) : System.DateTime
filePath string
return System.DateTime

GetSessions() public static method

public static GetSessions ( string appKey, TimePeriod period ) : List
appKey string
period TimePeriod
return List

GetSessionsFromPath() public static method

public static GetSessionsFromPath ( string dataPath, TimePeriod period ) : List
dataPath string
period TimePeriod
return List

ReadLastLine() public static method

public static ReadLastLine ( Stream stream, Encoding encoding ) : string
stream Stream
encoding System.Text.Encoding
return string

ReadLastLine() public static method

public static ReadLastLine ( string filePath ) : string
filePath string
return string

ReadSession() public static method

public static ReadSession ( string filePath, TimePeriod period ) : AppMetrics.Session
filePath string
period TimePeriod
return AppMetrics.Session

ReadSession() public static method

public static ReadSession ( string appKey, string sessionId, TimePeriod period ) : AppMetrics.Session
appKey string
sessionId string
period TimePeriod
return AppMetrics.Session