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] |
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:
-
spaceReplace | if spaces exist in the username, replace them with this value |
- Returns:
- username
The documentation for this class was generated from the following file: