TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
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.
 
 SystemMonitor (Report report, String config)
 Constructor.
 
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.
 

Protected Attributes

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

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.

◆ delete()

native void io.tsduck.SystemMonitor.delete ( )

Delete the encapsulated C++ object.

Reimplemented from io.tsduck.NativeObject.

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: