TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsduck.SystemMonitor Class Reference

A wrapper class for C++ SystemMonitor. More...

Inheritance diagram for tsduck.SystemMonitor:
Collaboration diagram for tsduck.SystemMonitor:

Public Member Functions

 __init__ (self, report, config=None)
 Constructor.
 delete (self)
 Explicitly free the underlying C++ object.
 start (self)
 Start the monitoring thread.
 stop (self)
 Stop the monitoring thread.
 waitForTermination (self)
 Synchronously wait for the monitoring thread to stop.

Protected Member Functions

 _getNative (self)
 Get the native object.
 _setNative (self, obj)
 Set the native object.

Detailed Description

A wrapper class for C++ SystemMonitor.

Constructor & Destructor Documentation

◆ __init__()

tsduck.SystemMonitor.__init__ ( self,
report,
config = None )

Constructor.

Create the monitoring object but do not start the monitoring thread yet.

Parameters
reportThe tsduck.Report object to use.
configThe monitoring configuration file name, if different from the default.

Member Function Documentation

◆ delete()

tsduck.SystemMonitor.delete ( self)

Explicitly free the underlying C++ object.

After this call, the object becomes unusable. Most usages are unpredictable but most likely will do nothing.

Returns
None.

Reimplemented from tsduck.NativeObject.

◆ start()

tsduck.SystemMonitor.start ( self)

Start the monitoring thread.

Returns
None.

◆ stop()

tsduck.SystemMonitor.stop ( self)

Stop the monitoring thread.

The monitoring thread is requested to stop. This method returns immediately, use waitForTermination() to synchronously wait for its termination.

Returns
None.

◆ waitForTermination()

tsduck.SystemMonitor.waitForTermination ( self)

Synchronously wait for the monitoring thread to stop.

Returns
None.

◆ _setNative()

tsduck.NativeObject._setNative ( self,
obj )
protectedinherited

Set the native object.

This is typically done by subclass constructors.

Parameters
objAddress of the C++ native object to store.

◆ _getNative()

tsduck.NativeObject._getNative ( self)
protectedinherited

Get the native object.

This is typically used by subclasses.

Returns
Address of the C++ native object.

The documentation for this class was generated from the following file:
  • tsduck.py