Class ProcessInfoFactory

java.lang.Object
de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory

public abstract class ProcessInfoFactory extends Object
Generic access to process level information. Requires an implementing plugin of type ProcessInfoFactory or an active ProcessInfoFactoryProviderDescriptor.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • ProcessInfoFactory

      public ProcessInfoFactory()
  • Method Details

    • getInstance

      public static ProcessInfoFactory getInstance()
      Returns the Rest instance.
      Returns:
      the instance
    • setInstance

      public static void setInstance(ProcessInfoFactory rest)
      Manually sets the instance. Shall not be needed, but may be required in some tests.
      Parameters:
      rest - the Rest instance
    • create

      public abstract ProcessInfoFactory.ProcessInfo create(long pid)
      Creates a ProcessInfoFactory.ProcessInfo object for the process with id pid.
      Parameters:
      pid - the process id
      Returns:
      the process info object
    • create

      Creates a ProcessInfoFactory.ProcessInfo object for the process proc.
      Parameters:
      proc - the process to attach to
      Returns:
      the process info object
    • getProcessId

      public abstract long getProcessId(Process proc)
      Returns the process id of the given process.
      Parameters:
      proc - the process
      Returns:
      the process id
    • getProcessId

      public abstract long getProcessId()
      Returns the process id of this process.
      Returns:
      the process id