Class ProcessInfoFactory
java.lang.Object
de.iip_ecosphere.platform.support.processInfo.ProcessInfoFactory
Generic access to process level information. Requires an implementing plugin of type
ProcessInfoFactory
or an active ProcessInfoFactoryProviderDescriptor.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a process and its accessible information. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ProcessInfoFactory.ProcessInfocreate(long pid) Creates aProcessInfoFactory.ProcessInfoobject for the process with idpid.Creates aProcessInfoFactory.ProcessInfoobject for the processproc.static ProcessInfoFactoryReturns the Rest instance.abstract longReturns the process id of this process.abstract longgetProcessId(Process proc) Returns the process id of the given process.static voidManually sets the instance.
-
Field Details
-
instance
-
-
Constructor Details
-
ProcessInfoFactory
public ProcessInfoFactory()
-
-
Method Details
-
getInstance
Returns the Rest instance.- Returns:
- the instance
-
setInstance
Manually sets the instance. Shall not be needed, but may be required in some tests.- Parameters:
rest- the Rest instance
-
create
Creates aProcessInfoFactory.ProcessInfoobject for the process with idpid.- Parameters:
pid- the process id- Returns:
- the process info object
-
create
Creates aProcessInfoFactory.ProcessInfoobject for the processproc.- Parameters:
proc- the process to attach to- Returns:
- the process info object
-
getProcessId
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
-