Class Win32ProcessCachedFFM

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

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

    • getInstance

      public static Win32ProcessCachedFFM 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.