C# Class TabMon.Counters.MBean.MBeanClientFactory

Factory class that produces instances of MBeanClient objects for a given hostname and port range.
Mostra file Open project: tableau/TabMon

Public Methods

Method Description
CreateClients ( string hostname, int startPort, int endPort ) : ICollection

Creates instances of MBeanClient objects for all open JMX ports on a host within a given port range. This is accomplished by scanning the range starting from the bottom and stopping when a closed port is encountered, to maintain parity with how Tableau exposes JMX ports.

Private Methods

Method Description
IsValidPort ( int port ) : bool
IsValidPortRange ( int startPort, int endPort ) : bool

Method Details

CreateClients() public static method

Creates instances of MBeanClient objects for all open JMX ports on a host within a given port range. This is accomplished by scanning the range starting from the bottom and stopping when a closed port is encountered, to maintain parity with how Tableau exposes JMX ports.
public static CreateClients ( string hostname, int startPort, int endPort ) : ICollection
hostname string The hostname of the remote host to generate clients for.
startPort int The start of the port range to scan.
endPort int The end of the port range to scan.
return ICollection