TSDuck Version 3.29-2562 (TSDuck - The MPEG Transport Stream Toolkit)
io.tsduck.SystemMonitor Class Reference

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

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

Public Member Functions

 SystemMonitor (Report report)
 Constructor. More...
 
 SystemMonitor (Report report, String config)
 Constructor. More...
 
native void delete ()
 Delete the encapsulated C++ object.
 
native void start ()
 Start the monitoring thread.
 
native void stop ()
 Stop the monitoring thread.
 
native void waitForTermination ()
 Suspend the calling thread until the monitoring thread is terminated. More...
 

Protected Attributes

long nativeObject = 0
 The address of the underlying C++ object. More...
 

Detailed Description

A wrapper class for C++ SystemMonitor.

Constructor & Destructor Documentation

◆ SystemMonitor() [1/2]

io.tsduck.SystemMonitor.SystemMonitor ( Report  report)
inline

Constructor.

Parameters
reportThe report object to use. If null, the logs are sent to the standard error. Be sure to specify a thread-safe report such has AsyncReport or a subclass of AbstractAsyncReport.

◆ SystemMonitor() [2/2]

io.tsduck.SystemMonitor.SystemMonitor ( Report  report,
String  config 
)
inline

Constructor.

Parameters
reportThe report object to use. If null, the logs are sent to the standard error. Be sure to specify a thread-safe report such has AsyncReport or a subclass of AbstractAsyncReport.
configName of the monitoring configuration file. If null or empty, the default configuration file is used.

Member Function Documentation

◆ waitForTermination()

native void io.tsduck.SystemMonitor.waitForTermination ( )

Suspend the calling thread until the monitoring thread is terminated.

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

Member Data Documentation

◆ nativeObject

long io.tsduck.NativeObject.nativeObject = 0
protectedinherited

The address of the underlying C++ object.

It is normally accessed by native methods only.


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