APIdia Launch Partner
Top Description Constructors Methods
sun.tools.common

pack-priv final Class ProcessHelper

extends Object
Class Inheritance

A helper class to retrieve the main class name for a running Java process. Default implementation returns null. Platform specific implementation currently available for Linux only.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

main class name or null if the main class could not be retrieved
getMainClass
(String
- process ID (pid)
pid
)

Returns the main class name for the given Java process

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ProcessHelperback to summary
pack-priv ProcessHelper()

Method Detail

getMainClassback to summary
pack-priv static String getMainClass(String pid)

Returns the main class name for the given Java process

Parameters
pid:String

- process ID (pid)

Returns:String

main class name or null if the main class could not be retrieved