|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.vm.VMLoader
Root loader. Basic caching loader half-singleton. It shares the routine cache, but the call cache is local. It does not check to see if anything was updated. Be sure to call init after instantiation or behavior is undefined! It isn't entirely threadsafe, but good enough.
It is also responsible for creating cores, and giving logging and universe access to a VM.
A loader is not "valid" until both init() and create() are called.
EPG - Initial - 12may03
Field Summary | |
AutohitLogInjectorWrapper |
log
|
SystemContext |
sc
|
Constructor Summary | |
VMLoader()
Default Constructor. |
Method Summary | |
VMCore |
create()
Create a core. |
void |
flush()
Flush the entire routine cache |
void |
flush(java.lang.String name)
Flush a specific routine out fo the cache |
Call |
get(java.lang.String name,
VMCore core,
AutohitLogInjectorWrapper li)
Get a call. |
void |
init(SystemContext sctx)
Initializer. |
VMExecutable |
load(java.lang.String name)
Load |
java.lang.String |
property(java.lang.String name)
Gets a property from the SystemContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public SystemContext sc
public AutohitLogInjectorWrapper log
Constructor Detail |
public VMLoader()
Method Detail |
public void init(SystemContext sctx)
sctx
- the system contextpublic VMCore create()
public VMExecutable load(java.lang.String name) throws VMException
name
- of routine to load
VMException
- unable to load.public Call get(java.lang.String name, VMCore core, AutohitLogInjectorWrapper li) throws VMException
name
- of routine to loadcore
- a VMCore that holds a callcacheli
- log injector to give to the call
VMException
- unable to load.public void flush()
VMException
- if it locked by something else.public void flush(java.lang.String name)
VMException
- if it locked by something else.public java.lang.String property(java.lang.String name)
name
- of the property
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |