C# Class TabMon.CounterConfig.MBeanCounterConfigReader

Handles parsing & loading the MBean counters defined within a Counters.config file.
Inheritance: ICounterConfigReader
Exibir arquivo Open project: tableau/TabMon Class Usage Examples

Public Methods

Method Description
LoadCounters ( XmlNode root, TabMon.Helpers.Host host, CounterLifecycleType lifeCycleTypeToLoad ) : ICollection

Parses & loads a set of MBean counters for the given host using the XML tree.

Private Methods

Method Description
BuildCounterFromCounterNode ( XmlNode counterNode, IMBeanClient mbeanClient, TabMon.Helpers.Host host, string sourceName, int startPort ) : ICounter

Builds an ICounter instance from a counter XML node and a set of properties.

BuildCountersForSourceNode ( XmlNode sourceNode, TabMon.Helpers.Host host, IMBeanClient mbeanClient, int startPort ) : List

Builds a collection of ICounter instances from a source XML node.

BuildInstanceName ( string sourceName, int startPort, int currentPort ) : string

Builds the instance name to match what Perfmon does (i.e. a machine with two dataserver processes will have instance names "dataserver" & "dataserver#1".

Method Details

LoadCounters() public method

Parses & loads a set of MBean counters for the given host using the XML tree.
public LoadCounters ( XmlNode root, TabMon.Helpers.Host host, CounterLifecycleType lifeCycleTypeToLoad ) : ICollection
root System.Xml.XmlNode The root MBean counters config node.
host TabMon.Helpers.Host The host to load counters for.
lifeCycleTypeToLoad CounterLifecycleType A filter that indicates whether ephemeral or persistent counters should be loaded.
return ICollection