org.rhq.plugins.apache.util
Class OsProcessUtility

java.lang.Object
  extended by org.rhq.plugins.apache.util.OsProcessUtility

public abstract class OsProcessUtility
extends Object

Utility class to obtain the executable path of a process with the help of Sigar.

Author:
Ian Springer

Method Summary
static File getProcExe(long pid, String name)
          Attempt to find the executable path of the process with the specified pid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProcExe

@Nullable
public static File getProcExe(long pid,
                                       String name)
Attempt to find the executable path of the process with the specified pid. If at all possible, an absolute path will be returned. Otherwise, a relative path will be returned. If the path cannot be determined, null is returned.

Parameters:
pid - Process identifier
name - Binary base name to match against
Returns:
The process executable path.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.