Photon Server API
Classes | Public Member Functions | Public Attributes | List of all members
ExitGames.Diagnostics.Monitoring.CounterSamplePublisher Class Reference

Collects and publishes data from ICounter instances in a specified interval. More...

Public Member Functions

 CounterSamplePublisher (int publishInterval)
 Initializes a new instance of the CounterSamplePublisher class. More...
 
void AddCounter (ICounter counter, string name)
 Adds an ICounter instance to the counter publisher. More...
 
void Start ()
 Starts this instance to collect and publish counter data. More...
 
void Stop ()
 Stops publishing counter data. More...
 

Public Attributes

readonly Channel< CounterSampleMessageChannel = new Channel<CounterSampleMessage>()
 A channel for CounterSampleMessages. More...
 
readonly Channel< IList< CounterSampleMessage > > ListChannel = new Channel<IList<CounterSampleMessage>>()
 A channel for lists of CounterSampleMessages. More...
 

Detailed Description

Collects and publishes data from ICounter instances in a specified interval.

Constructor & Destructor Documentation

ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.CounterSamplePublisher ( int  publishInterval)
inline

Initializes a new instance of the CounterSamplePublisher class.

Parameters
publishIntervalSpecifies the interval to publish counter values in seconds.

Member Function Documentation

void ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.AddCounter ( ICounter  counter,
string  name 
)
inline

Adds an ICounter instance to the counter publisher.

Parameters
counterThe counter to add.
nameThe name of the counter.
void ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.Start ( )
inline

Starts this instance to collect and publish counter data.

void ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.Stop ( )
inline

Stops publishing counter data.

Member Data Documentation

readonly Channel<CounterSampleMessage> ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.Channel = new Channel<CounterSampleMessage>()

A channel for CounterSampleMessages.

readonly Channel<IList<CounterSampleMessage> > ExitGames.Diagnostics.Monitoring.CounterSamplePublisher.ListChannel = new Channel<IList<CounterSampleMessage>>()

A channel for lists of CounterSampleMessages.