C# Class TabMon.TabMonAgent

A timer-based performance monitoring agent. Loads a set of counters from a config file and polls them periodically, passing the results to a writer object.
Inheritance: IDisposable
Mostra file Open project: tableau/TabMon Class Usage Examples

Public Properties

Property Type Description
Log4NetConfigKey string

Public Methods

Method Description
Dispose ( ) : void
IsRunning ( ) : bool

Indicates whether the agent is currently running (is initialized & has an active timer).

Start ( ) : void

Starts up the agent.

Stop ( ) : void

Stops the agent by disabling the timer. Uses a write lock to prevent data from being corrupted mid-write.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
OnTimer ( object stateInfo ) : void

Handles all tasks involved in the pulling cycle.

Poll ( ) : void

Polls the sampler's counters and writes the results to the writer object.

PurgeExpiredData ( ) : void

Checks to see if data is purgeable then purges based off of threshold.

TabMonAgent ( bool loadOptionsFromConfig = true ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

IsRunning() public method

Indicates whether the agent is currently running (is initialized & has an active timer).
public IsRunning ( ) : bool
return bool

Start() public method

Starts up the agent.
public Start ( ) : void
return void

Stop() public method

Stops the agent by disabling the timer. Uses a write lock to prevent data from being corrupted mid-write.
public Stop ( ) : void
return void

Property Details

Log4NetConfigKey public_oe static_oe property

public static string Log4NetConfigKey
return string