hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
moncmds_facade.MonCmdsFacade Class Reference
Inheritance diagram for moncmds_facade.MonCmdsFacade:

Public Member Functions

def __init__ (self, str uri)
 Initializator for a new MonCmdsFacade.
 
def __del__ (self)
 
def reload (self, result_slot=None, error_slot=None)
 SimCmds Slots ##.
 
def get_modules_loaded (self, result_slot=None, error_slot=None)
 This method executes the GetModulesLoaded command on the server.
 
def set_app_ignore (self, str app_name, bool ignore, finished_slot=None, result_slot=None, error_slot=None)
 This method executes the AppIgnoreData command on the server.
 
def thread_complete (self)
 Helper Methods ##.
 

Constructor & Destructor Documentation

◆ __init__()

def moncmds_facade.MonCmdsFacade.__init__ (   self,
str  uri 
)

Initializator for a new MonCmdsFacade.

It inherits from MalAdapter, which provides all the connection logic ready to be used.

We mainly interact with MalAdapter through get_interface() get_mal() and get_factory(). We do not keep references to them.

This class exposes Slots that use the elt.cut.task.Task class to execute long-running operations in a separate thread. Each Slot is a method in the hellociiif interface.

Parameters
uriURI for the MAL reply request endpoint

◆ __del__()

def moncmds_facade.MonCmdsFacade.__del__ (   self)

Member Function Documentation

◆ get_modules_loaded()

def moncmds_facade.MonCmdsFacade.get_modules_loaded (   self,
  result_slot = None,
  error_slot = None 
)

This method executes the GetModulesLoaded command on the server.

It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.

Parameters

result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.

Return

None

◆ reload()

def moncmds_facade.MonCmdsFacade.reload (   self,
  result_slot = None,
  error_slot = None 
)

SimCmds Slots ##.

This method executes the reload command on the server. It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.

Parameters

position_name Position name result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.

Return

None

◆ set_app_ignore()

def moncmds_facade.MonCmdsFacade.set_app_ignore (   self,
str  app_name,
bool  ignore,
  finished_slot = None,
  result_slot = None,
  error_slot = None 
)

This method executes the AppIgnoreData command on the server.

It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.

Parameters

app_name str Name of the application to change the ignore condition ignore bool New ignore condition for the app finished_slot Slot Slot method that will be triggered when the execution finishes. result_slot Slot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.

Return

None

◆ thread_complete()

def moncmds_facade.MonCmdsFacade.thread_complete (   self)

Helper Methods ##.

Print a thread message 'COMPLETE!'


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