Public Member Functions | Private Member Functions | Private Attributes | List of all members
cpu_monitor.CPUMonitor Class Reference

Public Member Functions

def __init__ (self, hostname, diag_hostname)
 
def cancel_timers (self)
 Must have the lock to cancel everything. More...
 
def check_nfs_stat (self)
 
def check_temps (self)
 Call every 10sec at minimum. More...
 
def check_usage (self)
 
def publish_stats (self)
 

Private Member Functions

def _restart_temp_check (self)
 

Private Attributes

 _check_core_temps
 
 _check_ipmi
 
 _check_nfs
 
 _diag_pub
 
 _enforce_speed
 
 _last_nfs_time
 
 _last_publish_time
 
 _last_temp_time
 
 _last_usage_time
 
 _load1_threshold
 
 _load5_threshold
 
 _mutex
 
 _nfs_stat
 
 _nfs_timer
 
 _num_cores
 
 _temp_stat
 
 _temp_vals
 
 _temps_timer
 
 _usage_stat
 
 _usage_timer
 

Detailed Description

Definition at line 521 of file cpu_monitor.py.

Constructor & Destructor Documentation

def cpu_monitor.CPUMonitor.__init__ (   self,
  hostname,
  diag_hostname 
)

Definition at line 522 of file cpu_monitor.py.

Member Function Documentation

def cpu_monitor.CPUMonitor._restart_temp_check (   self)
private

Definition at line 586 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.cancel_timers (   self)

Must have the lock to cancel everything.

Definition at line 599 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_nfs_stat (   self)

Definition at line 609 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_temps (   self)

Call every 10sec at minimum.

Definition at line 684 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_usage (   self)

Definition at line 731 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.publish_stats (   self)

Definition at line 782 of file cpu_monitor.py.

Member Data Documentation

cpu_monitor.CPUMonitor._check_core_temps
private

Definition at line 530 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._check_ipmi
private

Definition at line 527 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._check_nfs
private

Definition at line 533 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._diag_pub
private

Definition at line 523 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._enforce_speed
private

Definition at line 528 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._last_nfs_time
private

Definition at line 576 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._last_publish_time
private

Definition at line 577 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._last_temp_time
private

Definition at line 574 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._last_usage_time
private

Definition at line 575 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._load1_threshold
private

Definition at line 537 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._load5_threshold
private

Definition at line 538 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._mutex
private

Definition at line 525 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._nfs_stat
private

Definition at line 566 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._nfs_timer
private

Definition at line 544 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._num_cores
private

Definition at line 540 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._temp_stat
private

Definition at line 550 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._temp_vals
private

Definition at line 547 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._temps_timer
private

Definition at line 542 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._usage_stat
private

Definition at line 558 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._usage_timer
private

Definition at line 543 of file cpu_monitor.py.


The documentation for this class was generated from the following file:


pr2_computer_monitor
Author(s): Kevin Watts (watts@willowgarage.com)
autogenerated on Tue Jun 1 2021 02:50:51