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 ProcessMonitor.ProcessMonitor(system, config, ptype=None)

I am the public interface by which a <no title> interacts with process monitoring tools on the target system.

Parameters:

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

  • config: the <no title> object defining this user

  • ptype: optionally the (string) type of <no title> to create regardless of the type config indicates

exit(save=False)

Close the application

Parameters:

  • save: ignored here, only accepted to maintain a common function prototype

open()

Launch the application.

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