C# 클래스 SobekCM.Builder_Library.Statistics.SobekCM_Stats_DataSet

All of the information about a range of hits and sessions against this SobekCM system
This class is used by the SobekCM Stats Reader app
파일 보기 프로젝트 열기: MarkVSullivan/SobekCM-Web-Application 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Add_Bib_Hit ( string BibID, int SessionID ) : void

Add a single hit against a title (or BibID)

Add_Collection_Hit ( string Code, Display_Mode_Enum Mode, Aggregation_Type_Enum AggrType, int SessionID ) : void

Add a single hit against an aggregation (or collection)

Add_IP_Hit ( string IP, string UserAgent ) : void

Add a single mapping from IP address to the user agent, or browser/system information

This is used for determining if there are new search engine robots out there sneaking through my robot detection algorithm

Add_Institution_Hit ( string Code, Display_Mode_Enum Mode, Aggregation_Type_Enum AggrType, int SessionID ) : void

Add a single hit against an institutional aggregation

Add_Item_Hit ( int Item_ID, string BibID, string VID, string ViewerCode, string Text_Search, int SessionID ) : void

Adds a single hit against an item within this library

Add_JSON_Hit ( ) : void

Add the fact that a single hit occurred against the JSON writers

Add_OAI_Hit ( ) : void

Add the fact that a single hit occurred against the OAI-PMH writers

Add_Portal_Hit ( string Portal_Name ) : void

Add a single hit against a portal

Add_Robot_Hit ( ) : void

Add a single robotic hit (otherwise not analyzed)

Add_WebContent_Hit ( string Browse_Mode ) : void

Add a single hit against static web content

Add_XML_Hit ( ) : void

Add the fact that a single hit occurred against the XML writers

Increment_Hits ( ) : void

Increment the number of (human) hits

Increment_Sessions ( ) : void

Increment the number of (human) sessions or visits

Merge ( SobekCM_Stats_DataSet Stats_DataSet ) : void

Merge this data with another existing set of data

Used when merging daily sets into a monthly set

Perform_SQL_Inserts ( int year, int month, int>.Dictionary aggregationHash, int>.Dictionary bibHash, int>.Dictionary portalHash ) : void

Write the list of all SQL insert command to add this new usage statistical information to the SobekCM database

Read_XML ( string file ) : void

Read an existing XML output from this class into this object

SobekCM_Stats_DataSet ( ) : System

Constructor for a new instance of the SobekCM Statistics dataset

Write_Highest_Users ( string directory, string filename ) : void

Write the highest users as a XML file

This clears all other rows, so this must be called last

Write_XML ( string directory ) : void

Write this data as XML

Write_XML ( string directory, string filename ) : void

Write this data as XML

메소드 상세

Add_Bib_Hit() 공개 메소드

Add a single hit against a title (or BibID)
public Add_Bib_Hit ( string BibID, int SessionID ) : void
BibID string Bibliographic identifier for the title hit
SessionID int ID for the session from which this hit originated
리턴 void

Add_Collection_Hit() 공개 메소드

Add a single hit against an aggregation (or collection)
public Add_Collection_Hit ( string Code, Display_Mode_Enum Mode, Aggregation_Type_Enum AggrType, int SessionID ) : void
Code string Aggregation Code
Mode Display_Mode_Enum Mode information
AggrType Aggregation_Type_Enum Aggregation type, if this is Aggregation mode
SessionID int ID for the session from which this hit originated
리턴 void

Add_IP_Hit() 공개 메소드

Add a single mapping from IP address to the user agent, or browser/system information
This is used for determining if there are new search engine robots out there sneaking through my robot detection algorithm
public Add_IP_Hit ( string IP, string UserAgent ) : void
IP string IP address from which this request came
UserAgent string User agent from the HTTP requrest ( browser/system information )
리턴 void

Add_Institution_Hit() 공개 메소드

Add a single hit against an institutional aggregation
public Add_Institution_Hit ( string Code, Display_Mode_Enum Mode, Aggregation_Type_Enum AggrType, int SessionID ) : void
Code string Institutional aggregation code
Mode Display_Mode_Enum Mode information
AggrType Aggregation_Type_Enum Aggregation type, if this is aggregation mode
SessionID int ID for the session from which this hit originated
리턴 void

Add_Item_Hit() 공개 메소드

Adds a single hit against an item within this library
public Add_Item_Hit ( int Item_ID, string BibID, string VID, string ViewerCode, string Text_Search, int SessionID ) : void
Item_ID int
BibID string
VID string
ViewerCode string
Text_Search string
SessionID int ID for the session from which this hit originated
리턴 void

Add_JSON_Hit() 공개 메소드

Add the fact that a single hit occurred against the JSON writers
public Add_JSON_Hit ( ) : void
리턴 void

Add_OAI_Hit() 공개 메소드

Add the fact that a single hit occurred against the OAI-PMH writers
public Add_OAI_Hit ( ) : void
리턴 void

Add_Portal_Hit() 공개 메소드

Add a single hit against a portal
public Add_Portal_Hit ( string Portal_Name ) : void
Portal_Name string Name of the portal
리턴 void

Add_Robot_Hit() 공개 메소드

Add a single robotic hit (otherwise not analyzed)
public Add_Robot_Hit ( ) : void
리턴 void

Add_WebContent_Hit() 공개 메소드

Add a single hit against static web content
public Add_WebContent_Hit ( string Browse_Mode ) : void
Browse_Mode string Name of the web content
리턴 void

Add_XML_Hit() 공개 메소드

Add the fact that a single hit occurred against the XML writers
public Add_XML_Hit ( ) : void
리턴 void

Increment_Hits() 공개 메소드

Increment the number of (human) hits
public Increment_Hits ( ) : void
리턴 void

Increment_Sessions() 공개 메소드

Increment the number of (human) sessions or visits
public Increment_Sessions ( ) : void
리턴 void

Merge() 공개 메소드

Merge this data with another existing set of data
Used when merging daily sets into a monthly set
public Merge ( SobekCM_Stats_DataSet Stats_DataSet ) : void
Stats_DataSet SobekCM_Stats_DataSet Set of usage data to merge with this one
리턴 void

Perform_SQL_Inserts() 공개 메소드

Write the list of all SQL insert command to add this new usage statistical information to the SobekCM database
public Perform_SQL_Inserts ( int year, int month, int>.Dictionary aggregationHash, int>.Dictionary bibHash, int>.Dictionary portalHash ) : void
year int
month int
aggregationHash int>.Dictionary
bibHash int>.Dictionary
portalHash int>.Dictionary
리턴 void

Read_XML() 공개 메소드

Read an existing XML output from this class into this object
public Read_XML ( string file ) : void
file string
리턴 void

SobekCM_Stats_DataSet() 공개 메소드

Constructor for a new instance of the SobekCM Statistics dataset
public SobekCM_Stats_DataSet ( ) : System
리턴 System

Write_Highest_Users() 공개 메소드

Write the highest users as a XML file
This clears all other rows, so this must be called last
public Write_Highest_Users ( string directory, string filename ) : void
directory string
filename string
리턴 void

Write_XML() 공개 메소드

Write this data as XML
public Write_XML ( string directory ) : void
directory string Directory to write this XML into
리턴 void

Write_XML() 공개 메소드

Write this data as XML
public Write_XML ( string directory, string filename ) : void
directory string
filename string
리턴 void