OperatingSystemImpl
OperatingSystemImpl
is the implementation of the OperatingSystem
interface. It uses the oshi
library to gather system operating information and map this information to the classes and methods provided by our API.
Parameters
The object containing general information about the operating system.
Properties
currentProcess
The current running process.
currentThread
The current running thread.
fileSystem
The file system information, including the list of file stores and other statistics.
A lazy-initialized property that holds the information about the operating system. This property is retrieved from the systemInfo
object and represents the operating system details that include file system information, version, network statistics, and more.
internetProtocolStats
The statistics related to network protocols (TCP/UDP).
isElevated
Indicates if the operating system is running in elevated (privileged) mode.
manufacturer
The manufacturer of the operating system (e.g., "Microsoft", "Apple").
networkParams
The network parameters, including hostname, DNS, gateway.
processCount
The number of active processes running on the system.
systemBootTime
The system boot time in milliseconds (UNIX timestamp).
systemUptime
The system uptime in milliseconds.
threadCount
The number of threads running on the system.
versionInfo
The version information of the operating system.
Functions
Retrieves the visible desktop windows of the operating system.
Retrieves a single process by its PID.
Retrieves the list of all active processes on the system.
Retrieves the list of processes specified by their PIDs.
Initializes an OSProcess
object from an OSHI OSProcess
object.
Initializes an OSThread
object from an OSHI OSThread
object.
Loads a list of OSDesktopWindow
objects from the provided list of oshi.software.os.OSDesktopWindow
.
Loads a list of processes from a list of OSHI OSProcess
objects.
Loads a list of services from a list of OSHI OSService
objects.
Loads a list of sessions from a list of OSHI OSSession
objects.
Loads a list of threads from a list of OSHI OSThread
objects.