public class SystemLeolaLibrary extends Object implements LeolaLibrary
Constructor and Description |
---|
SystemLeolaLibrary() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(String path) |
Process |
execute(String application,
LeoArray args,
String workingdir) |
void |
exit(int code)
Exits the JVM
|
void |
gc() |
String |
getPath() |
void |
init(Leola runtime,
LeoNamespace namespace)
Initializes the library.
|
String |
javapath() |
long |
memused() |
void |
pipe(InputStream iStream) |
int |
random(int max) |
void |
setLibraryPath(String path)
Sets the java.library.path
|
void |
setPath(String paths) |
void |
sleep(long time)
Sleeps
|
public void init(Leola runtime, LeoNamespace namespace) throws LeolaRuntimeException
LeolaLibrary
init
in interface LeolaLibrary
LeolaRuntimeException
public final void setPath(String paths)
public final String getPath()
public final void setLibraryPath(String path) throws Exception
path
- Exception
public final String javapath()
public final int random(int max)
public final long memused()
public final void gc()
public final Process execute(String application, LeoArray args, String workingdir) throws Exception
Exception
public final void pipe(InputStream iStream) throws Exception
Exception
public final void sleep(long time) throws Exception
time
- Exception
Copyright © 2010–2015. All rights reserved.