Package com.sun.grid.util
Class SGEUtil
java.lang.Object
com.sun.grid.util.SGEUtil
This class defines some helper methods which are vital
for gridengine.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static SGEUtil
Get the instance of theSGEUtil
.char[]
getPassword
(String prompt) Read a password from the console.int
getPID()
get pid of the java virtual machinestatic boolean
-
Method Details
-
getInstance
Get the instance of theSGEUtil
. The first call of this method tries to load the native library juti.- Returns:
- the instance of
SGEUtil
- See Also:
-
getPID
public int getPID()get pid of the java virtual machine- Returns:
- the pid of the java virtual machine
-
getPassword
Read a password from the console.- Parameters:
prompt
- the prompt- Returns:
- the password
-
isWindows
public static boolean isWindows() -
getArch
- Throws:
IOException
-