ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class ProcessMonitorImpl.ProcessMonitorImpl(system, config)

I am the abstract parent of all tools the monitor running processes on the target system. Most of my functions should be supportable by any GUI based process monitor tool (e.g., Taskmanager or System Monitor on Fedora)

exit(save=False)

Exit the application.

Parameters:

  • save: ignored here, accepted only for common prototype

open()

Launch the app to monitor the process

select_tab(name)

Select a tab by a given name. Recognzied names are:

  • Applications

  • Processes

  • Performance

  • Networking

Name matching is not case sensitive.

Parameters:

  • name: the name (from the above list) of the tab to select

Return: True of the tab is selected, False otherwise

sort_column(name)

Select the column to sort the data on. The list of supported columns only match those in a default setting for Taskmanager and not all possible columns. Additionally, not each tab is applicable to each tab. The list of supported column names is:

  • Task: on Applications tab

  • Status: on Applications tab

  • Name: for Image Name on Processes tab

  • User: for User Name on Processes tab

  • CPU: on Processes tab

  • Mem: for Mem Usage on Processes tab

Parameters:

  • name: the column name from the list above

Return: True if the column was clicked, False otherwise

ProcessMonitorImpl.get_process_monitor(system, config, ptype=None)

This is the Factory_ method to create the instance of the correct subclass of <no title> to interact with a tool to monitor process on the target system.

Parameters:

  • system: the <no title> object to use to interact with the target

  • config: the <no title> defining this user

  • ptype: optionally the (string) type of ProcessMonitorImpl to create, regardless of what config says

Return: an instance of ProcessMonitorImpl if one matching the desired type can be found, None otherwise