Class OshiProcessInfoFactory

java.lang.Object
de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory
de.oktoflow.platform.support.processInfo.oshi.OshiProcessInfoFactory

public class OshiProcessInfoFactory extends de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory
Implements the Rest interface by Spark.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
     

    Nested classes/interfaces inherited from class de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory

    de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory.ProcessInfo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static oshi.SystemInfo
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory.ProcessInfo
    create(long pid)
     
    long
     
    long
     

    Methods inherited from class de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory

    create, getInstance, setInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sysInfo

      private static oshi.SystemInfo sysInfo
  • Constructor Details

    • OshiProcessInfoFactory

      public OshiProcessInfoFactory()
  • Method Details

    • create

      public de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory.ProcessInfo create(long pid)
      Specified by:
      create in class de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory
    • getProcessId

      public long getProcessId(Process proc)
      Specified by:
      getProcessId in class de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory
    • getProcessId

      public long getProcessId()
      Specified by:
      getProcessId in class de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory