Class Win32ProcessCachedJNA

java.lang.Object
oshi.driver.windows.wmi.Win32ProcessCachedJNA

@ThreadSafe public final class Win32ProcessCachedJNA extends Object
Utility to query WMI class Win32_Process using cache (JNA).
  • Method Details

    • getInstance

      public static Win32ProcessCachedJNA getInstance()
      Get the singleton instance of this class.
      Returns:
      the singleton instance
    • getCommandLine

      public String getCommandLine(int processId, long startTime)
      Gets the process command line, while also querying and caching command lines for all running processes if the specified process is not in the cache.
      Parameters:
      processId - The process ID for which to return the command line.
      startTime - The start time of the process, in milliseconds since the 1970 epoch.
      Returns:
      The command line of the specified process.