Class ProcessIdFileReader
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.util.ProcessIdFileReader
Helper functionality to read the pid from a file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetProcessId(org.apache.hadoop.fs.Path path) Get the process id from specified file path.
-
Constructor Details
-
ProcessIdFileReader
public ProcessIdFileReader()
-
-
Method Details
-
getProcessId
Get the process id from specified file path. Parses each line to find a valid number and returns the first one found.- Returns:
- Process Id if obtained from path specified else null
- Throws:
IOException
-