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
Показать файл Открыть проект Примеры использования класса

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