|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edg.workload.userinterface.jclient.Api
The Api class provides static native implementation of common C/C++ operation not generally allowed by the JVM It also internally implements the methods used RB-LB c++ classes
Constructor Summary | |
Api()
Default constructor |
Method Summary | |
static java.lang.String |
getEnv(java.lang.String key)
Static native System Info Method: retrieve the environment specified variable |
static int |
getPid()
Static native System Info Method: retrieve the current process pid |
static int |
getUid()
Static native System Info Method: retrieve the user id number |
static void |
setEnv(java.lang.String key,
java.lang.String value)
Static native System Info Method: Set the specified Environment variable |
static int |
shadow(java.lang.String command)
Static native System Method: Execute the command specified and returns its exit code |
static void |
unsetEnv(java.lang.String key)
Static native System Info Method: Unset the specified Environment variable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Api()
Method Detail |
public static int getPid()
public static int shadow(java.lang.String command)
command
- the executable command to be launched as a standard C process
public static java.lang.String getEnv(java.lang.String key)
key
- the name of the variable to be retrieved
public static int getUid()
public static void setEnv(java.lang.String key, java.lang.String value)
key
- the name of the environment variable to setvalue
- the value of the environment variable to be setpublic static void unsetEnv(java.lang.String key)
key
- the name of the environment variable to unset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |