Class StandardProcessHandleProvider
java.lang.Object
org.apache.nifi.bootstrap.command.process.StandardProcessHandleProvider
- All Implemented Interfaces:
ProcessHandleProvider
Process Handle Provider searches running Processes and locates the first handles match based on command arguments
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind Process Handle for Application based on matching argument for path to application propertiesFind Process Handle for Bootstrap based on matching argument for path to bootstrap configurationprivate Optional<ProcessHandle> findProcessHandle(SystemProperty systemProperty, Path configuration)
-
Field Details
-
PROPERTIES_ARGUMENT
- See Also:
-
configurationProvider
-
-
Constructor Details
-
StandardProcessHandleProvider
-
-
Method Details
-
findApplicationProcessHandle
Find Process Handle for Application based on matching argument for path to application properties- Specified by:
findApplicationProcessHandlein interfaceProcessHandleProvider- Returns:
- Application Process Handle or empty when not found
-
findBootstrapProcessHandle
Find Process Handle for Bootstrap based on matching argument for path to bootstrap configuration- Specified by:
findBootstrapProcessHandlein interfaceProcessHandleProvider- Returns:
- Bootstrap Process Handle or empty when not found
-
findProcessHandle
private Optional<ProcessHandle> findProcessHandle(SystemProperty systemProperty, Path configuration)
-