Class cornell.slk.jkernel.core.SystemRuntimeDangerous
Source code
java.lang.Object
|
+----cornell.slk.jkernel.core.SystemRuntimeDangerous
- public class SystemRuntimeDangerous
- extends java.lang.Object
- implements SystemRuntimeDangerousInterface
Runtime and System are a hodgepodge of harmless and extremely
dangerous functions all mixed together.
Language functions (arrayCopy, identityHashCode) are
mixed freely with system functions (exec, currentTimeMillis).
SystemRuntimeSafe extracts the harmless things, while
SystemRuntimeDangerous extracts the dangerous ones.
SystemRuntimeSafe is placed in the standard resolver, while
SystemRuntimeDangerous is not.
Later we should probably take all the system functions (as
opposed to the language functions), and export these through
capabilities.
Field Summary
|
java.lang.Runtime
|
runtime
|
Methods inherited from class java.lang.Object
|
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
runtime
private java.lang.Runtime runtime
SystemRuntimeDangerous
public SystemRuntimeDangerous()
load
public void load(java.lang.String filename) throws java.lang.SecurityException, java.lang.UnsatisfiedLinkError
- Implements:
- load in interface SystemRuntimeDangerousInterface
loadLibrary
public void loadLibrary(java.lang.String libname) throws java.lang.SecurityException, java.lang.UnsatisfiedLinkError
- Implements:
- loadLibrary in interface SystemRuntimeDangerousInterface
getProperties
public java.util.Properties getProperties() throws java.lang.SecurityException
- Implements:
- getProperties in interface SystemRuntimeDangerousInterface
setProperties
public void setProperties(java.util.Properties props) throws java.lang.SecurityException
- Implements:
- setProperties in interface SystemRuntimeDangerousInterface
getProperty
public java.lang.String getProperty(java.lang.String key) throws java.lang.SecurityException
- Implements:
- getProperty in interface SystemRuntimeDangerousInterface
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String def) throws java.lang.SecurityException
- Implements:
- getProperty in interface SystemRuntimeDangerousInterface
getenv
public java.lang.String getenv(java.lang.String name)
- Implements:
- getenv in interface SystemRuntimeDangerousInterface
exit
public void exit(int status) throws java.lang.SecurityException
- Implements:
- exit in interface SystemRuntimeDangerousInterface
gc
public void gc()
- Implements:
- gc in interface SystemRuntimeDangerousInterface
runFinalization
public void runFinalization()
- Implements:
- runFinalization in interface SystemRuntimeDangerousInterface
runFinalizersOnExit
public void runFinalizersOnExit(boolean value)
- Implements:
- runFinalizersOnExit in interface SystemRuntimeDangerousInterface
exec
public java.lang.Process exec(java.lang.String command) throws java.io.IOException, java.lang.SecurityException
- Implements:
- exec in interface SystemRuntimeDangerousInterface
exec
public java.lang.Process exec(java.lang.String command,
java.lang.String[] envp) throws java.io.IOException, java.lang.SecurityException
- Implements:
- exec in interface SystemRuntimeDangerousInterface
exec
public java.lang.Process exec(java.lang.String[] cmdarray) throws java.io.IOException, java.lang.SecurityException
- Implements:
- exec in interface SystemRuntimeDangerousInterface
exec
public java.lang.Process exec(java.lang.String[] cmdarray,
java.lang.String[] envp) throws java.io.IOException, java.lang.SecurityException
- Implements:
- exec in interface SystemRuntimeDangerousInterface
freeMemory
public long freeMemory()
- Implements:
- freeMemory in interface SystemRuntimeDangerousInterface
totalMemory
public long totalMemory()
- Implements:
- totalMemory in interface SystemRuntimeDangerousInterface
traceInstructions
public void traceInstructions(boolean on)
- Implements:
- traceInstructions in interface SystemRuntimeDangerousInterface
traceMethodCalls
public void traceMethodCalls(boolean on)
- Implements:
- traceMethodCalls in interface SystemRuntimeDangerousInterface