The Robot Application Programming Interface Delegate Project
RAPID Logo

ProcessInfo Class Reference

List of all members.

Static Public Member Functions

static String username ()
 get the current user's username.
static String username (String spaceReplace)
static String hostname ()
static long processId ()
 This call is not guaranteed to work.
static long processId (long fallback)

Member Function Documentation

static String hostname ( ) [static]
Returns:
hostname
static long processId ( long  fallback) [static]
static long processId ( ) [static]

There is no platform-independent way to get the process id from Java, but by convention in the Sun JVMs, ManagementFactory returns a string that is pid.

Returns:
pid if it works, -1 if not
static String username ( ) [static]

Any spaces in the username will be removed.

Returns:
username
static String username ( String  spaceReplace) [static]
Parameters:
spaceReplaceif spaces exist in the username, replace them with this value
Returns:
username

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines