Class AbstractProcessManager<P extends ProcessInfo>

java.lang.Object
com.iamsoft.util.ui.javafx.management.AbstractProcessManager<P>
Type Parameters:
P - Process information

public abstract class AbstractProcessManager<P extends ProcessInfo> extends Object
  • Constructor Details

    • AbstractProcessManager

      public AbstractProcessManager()
  • Method Details

    • getRunningProcesses

      public javafx.collections.ObservableList<P> getRunningProcesses()
    • updateRunningProcessesInfo

      public void updateRunningProcessesInfo()
    • createLocalProcess

      protected abstract P createLocalProcess()
    • getProcessesInfo

      protected abstract List<P> getProcessesInfo()
    • getLocalProcess

      public P getLocalProcess()
    • getLocalProcess

      public P getLocalProcess(List<P> pProcesses)
      Searches the specified list of processes for the process in which this method is invoked. If not found, null is returned.
    • createLocalProcessInfo

      public static ProcessInfo createLocalProcessInfo()
    • getLocalProcessId

      public static String getLocalProcessId()
      Gets the ID of the process in which this method is invoked.
    • getLocalProcessStartTime

      public static long getLocalProcessStartTime()
      Gets the start time of the process in which this method is invoked.
    • pid

      public static String pid()
      The ID of the current process.