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 534 of file cpu_monitor.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 535 of file cpu_monitor.py.

Member Function Documentation

◆ _restart_temp_check()

def cpu_monitor.CPUMonitor._restart_temp_check (   self)
private

Definition at line 599 of file cpu_monitor.py.

◆ cancel_timers()

def cpu_monitor.CPUMonitor.cancel_timers (   self)

Must have the lock to cancel everything.

Definition at line 612 of file cpu_monitor.py.

◆ check_nfs_stat()

def cpu_monitor.CPUMonitor.check_nfs_stat (   self)

Definition at line 622 of file cpu_monitor.py.

◆ check_temps()

def cpu_monitor.CPUMonitor.check_temps (   self)

Call every 10sec at minimum.

Definition at line 699 of file cpu_monitor.py.

◆ check_usage()

def cpu_monitor.CPUMonitor.check_usage (   self)

Definition at line 746 of file cpu_monitor.py.

◆ publish_stats()

def cpu_monitor.CPUMonitor.publish_stats (   self)

Definition at line 797 of file cpu_monitor.py.

Member Data Documentation

◆ _check_core_temps

cpu_monitor.CPUMonitor._check_core_temps
private

Definition at line 543 of file cpu_monitor.py.

◆ _check_ipmi

cpu_monitor.CPUMonitor._check_ipmi
private

Definition at line 540 of file cpu_monitor.py.

◆ _check_nfs

cpu_monitor.CPUMonitor._check_nfs
private

Definition at line 546 of file cpu_monitor.py.

◆ _diag_pub

cpu_monitor.CPUMonitor._diag_pub
private

Definition at line 536 of file cpu_monitor.py.

◆ _enforce_speed

cpu_monitor.CPUMonitor._enforce_speed
private

Definition at line 541 of file cpu_monitor.py.

◆ _last_nfs_time

cpu_monitor.CPUMonitor._last_nfs_time
private

Definition at line 589 of file cpu_monitor.py.

◆ _last_publish_time

cpu_monitor.CPUMonitor._last_publish_time
private

Definition at line 590 of file cpu_monitor.py.

◆ _last_temp_time

cpu_monitor.CPUMonitor._last_temp_time
private

Definition at line 587 of file cpu_monitor.py.

◆ _last_usage_time

cpu_monitor.CPUMonitor._last_usage_time
private

Definition at line 588 of file cpu_monitor.py.

◆ _load1_threshold

cpu_monitor.CPUMonitor._load1_threshold
private

Definition at line 550 of file cpu_monitor.py.

◆ _load5_threshold

cpu_monitor.CPUMonitor._load5_threshold
private

Definition at line 551 of file cpu_monitor.py.

◆ _mutex

cpu_monitor.CPUMonitor._mutex
private

Definition at line 538 of file cpu_monitor.py.

◆ _nfs_stat

cpu_monitor.CPUMonitor._nfs_stat
private

Definition at line 579 of file cpu_monitor.py.

◆ _nfs_timer

cpu_monitor.CPUMonitor._nfs_timer
private

Definition at line 557 of file cpu_monitor.py.

◆ _num_cores

cpu_monitor.CPUMonitor._num_cores
private

Definition at line 553 of file cpu_monitor.py.

◆ _temp_stat

cpu_monitor.CPUMonitor._temp_stat
private

Definition at line 563 of file cpu_monitor.py.

◆ _temp_vals

cpu_monitor.CPUMonitor._temp_vals
private

Definition at line 560 of file cpu_monitor.py.

◆ _temps_timer

cpu_monitor.CPUMonitor._temps_timer
private

Definition at line 555 of file cpu_monitor.py.

◆ _usage_stat

cpu_monitor.CPUMonitor._usage_stat
private

Definition at line 571 of file cpu_monitor.py.

◆ _usage_timer

cpu_monitor.CPUMonitor._usage_timer
private

Definition at line 556 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 Thu Sep 26 2024 02:53:24