Module com.iamsoft.util.ui
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 Summary
Constructors Constructor Description AbstractProcessManager()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract P
createLocalProcess()
static ProcessInfo
createLocalProcessInfo()
P
getLocalProcess()
P
getLocalProcess(List<P> pProcesses)
Searches the specified list of processes for the process in which this method is invoked.static String
getLocalProcessId()
Gets the ID of the process in which this method is invoked.static long
getLocalProcessStartTime()
Gets the start time of the process in which this method is invoked.protected abstract List<P>
getProcessesInfo()
javafx.collections.ObservableList<P>
getRunningProcesses()
static String
pid()
The ID of the current process.void
updateRunningProcessesInfo()
-
-
-
Method Detail
-
getRunningProcesses
public javafx.collections.ObservableList<P> getRunningProcesses()
-
updateRunningProcessesInfo
public void updateRunningProcessesInfo()
-
createLocalProcess
protected abstract P createLocalProcess()
-
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.
-
-