Share via


DeviceStatistics Class

Definition

Helps a service object implement device statistics reporting.

public class DeviceStatistics : IDisposable
type DeviceStatistics = class
    interface IDisposable
Public Class DeviceStatistics
Implements IDisposable
Inheritance
DeviceStatistics
Implements

Constructors

DeviceStatistics(String, String, String)

Initializes a new instance of DeviceStatistics with the specified device information.

Properties

CapStatisticsReporting

Indicates whether a device supports statistics reporting.

CapUpdateStatistics

Indicates whether at least one statistic can reset its value to zero.

FlushInterval

Contains the interval used by POS for .NET to determine when to update the device's XML statistics file with the current statistics values.

Methods

Close()

Releases the class and its resources.

CreateStatistic(String, Boolean, String)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

CreateStatistic(String, Boolean)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

Dispose()

Releases all managed and unmanaged resources.

Dispose(Boolean)

Releases the specified resources.

FlushStatistics()

Saves the current statistics values to the XML statistics file.

GetStatisticValue(String)

Returns the value of the specified statistic.

IncrementStatistic(String, Int32)

Increments a statistic by the specified amount.

IncrementStatistic(String)

Increments the specified statistic by 1.

LoadStatistics()

Loads the saved statistics values for a device, so that they can be incremented during the current work session and then re-saved.

ResetStatistic(String)

Resets the specified statistic to zero.

ResetStatistics()

Resets all statistics associated with a device to 0 (zero).

ResetStatistics(StatisticCategories)

Resets all statistics for a specified category to 0 (zero).

ResetStatistics(String[])

Resets the specified statistics to 0 (zero).

RetrieveStatistic(String)

Retrieves all device statistics.

RetrieveStatistics()

Retrieves all device statistics.

RetrieveStatistics(StatisticCategories)

Retrieves the statistics for the specified category.

RetrieveStatistics(String[])

Retrieves the specified string of statistics.

SetStatisticHandlers(String, GetStatistic, SetStatistic)

Sets the statistic handlers for an existing statistic.

SetStatisticValue(String, Object)

Sets the value of a specified statistic.

UpdateStatistic(String, Object)

Updates the value of the specified statistic.

UpdateStatistics(Statistic[])

Updates a list of statistics with the corresponding specified values.

UpdateStatistics(StatisticCategories, Object)

Updates the specified category of statistics with the specified value.

Applies to