Class ProcessNameUtil
java.lang.Object
com.databricks.jdbc.common.util.ProcessNameUtil
Utility class for determining the current process name as it would appear in Activity Monitor.
Note : removing logging as it methods are called on static INIT and logging might not be fully
configured.
-
Constructor Details
-
ProcessNameUtil
public ProcessNameUtil()
-
-
Method Details
-
getProcessName
Gets the current process name as it would appear in Activity Monitor.- Returns:
- The current process name
-
getProcessNameFromHandle
Gets the current process name using ProcessHandle (Java 9+).- Returns:
- The current process name or null if not available
-