Inheritance diagram for lm::LoadMonitor::NetworkEnumCache:
Public Member Functions | |
NetworkEnumCache (void) | |
Create new cache object. | |
virtual | ~NetworkEnumCache (void) |
Free used resources. | |
virtual bool | AddToRefresher (IWbemConfigureRefresher *configure, IWbemServices *services) |
Add object to the refresher. | |
virtual void | Release (void) |
Free resources. | |
virtual bool | QueryData (LoadSample &target) |
Query data. | |
bool | QueryNames (HardwareDescription &target) |
Query names or all interfaces. | |
Protected Member Functions | |
virtual bool | CacheImpl (IWbemObjectAccess *access_object) |
Cache property handles. | |
Private Attributes | |
IWbemHiPerfEnum * | enum_network |
Enumerator for Win32_PerfRawData_Tcpip_NetworkInterface or Win32_PerfFormattedData_Tcpip_NetworkInterface. | |
long | enum_network_id |
ID of the network enumerator. | |
long | id_bytes_received |
ID of the "BytesReceivedPerSec" property. | |
long | id_bytes_sent |
ID of the "BytesSentPerSec" property. | |
long | id_name |
ID of the "Name" property. |
lm::LoadMonitor::NetworkEnumCache::NetworkEnumCache | ( | void | ) |
Create new cache object.
lm::LoadMonitor::NetworkEnumCache::~NetworkEnumCache | ( | void | ) | [virtual] |
Free used resources.
bool lm::LoadMonitor::NetworkEnumCache::AddToRefresher | ( | IWbemConfigureRefresher * | configure, | |
IWbemServices * | services | |||
) | [virtual] |
Add object to the refresher.
configure | Configure refresher which will be used to add required objects to the refresher. | |
services | WMI service provider. |
Implements lm::LoadMonitor::PerformanceCounterEnumCache.
bool lm::LoadMonitor::NetworkEnumCache::CacheImpl | ( | IWbemObjectAccess * | access_object | ) | [protected, virtual] |
Cache property handles.
access_object | Object which contains all properties that need to be cached. |
Implements lm::LoadMonitor::PerformanceCounterEnumCache.
bool lm::LoadMonitor::NetworkEnumCache::QueryData | ( | LoadSample & | target | ) | [virtual] |
Query data.
Query data after it has been refreshed. This will collect all data from enumerators previously registered with refresher via AddToRefresher method and store resulting data in provided load sample. If data are stored in array (e.g. CPU usage on multi-processor machines), arrays will be automatically allocated. If query fails, sample will remain unmodified.
target | Reference to the load sample which will receive data. |
Implements lm::LoadMonitor::PerformanceCounterEnumCache.
bool lm::LoadMonitor::NetworkEnumCache::QueryNames | ( | HardwareDescription & | target | ) |
Query names or all interfaces.
Query names of all network adapters that are monitored by the Load Monitor library.
target | HardwareDescription object that will receive names of network interfaces. |
void lm::LoadMonitor::NetworkEnumCache::Release | ( | void | ) | [virtual] |
IWbemHiPerfEnum* lm::LoadMonitor::NetworkEnumCache::enum_network [private] |
Enumerator for Win32_PerfRawData_Tcpip_NetworkInterface or Win32_PerfFormattedData_Tcpip_NetworkInterface.
long lm::LoadMonitor::NetworkEnumCache::enum_network_id [private] |
ID of the network enumerator.
long lm::LoadMonitor::NetworkEnumCache::id_bytes_received [private] |
ID of the "BytesReceivedPerSec" property.
long lm::LoadMonitor::NetworkEnumCache::id_bytes_sent [private] |
ID of the "BytesSentPerSec" property.
long lm::LoadMonitor::NetworkEnumCache::id_name [private] |
ID of the "Name" property.