public class KernelState extends Object implements Restorable<KernelState>
Modifier and Type | Class and Description |
---|---|
static interface |
KernelState.ChangeListener
interface for getting notified of changes to KernelState and everything
"below" it.
|
Modifier and Type | Field and Description |
---|---|
ClassLoaderList |
classLoaders
the list of the class loaders
|
Heap |
heap
The area containing the heap
|
ThreadList |
threads
The list of the threads
|
Constructor and Description |
---|
KernelState(Config config)
Creates a new kernel state object.
|
Modifier and Type | Method and Description |
---|---|
void |
addClassLoader(ClassLoaderInfo cl)
Adds the given loader to the list of existing class loaders.
|
void |
changed()
called by internals to indicate a change in KernelState.
|
void |
gc() |
protected ClassLoaderInfo |
getClassLoader(int gid)
Returns the ClassLoader with the given globalId
|
ClassLoaderList |
getClassLoaderList() |
Heap |
getHeap() |
Memento<KernelState> |
getMemento() |
Memento<KernelState> |
getMemento(MementoFactory factory) |
int |
getThreadCount() |
ThreadList |
getThreadList() |
void |
pushChangeListener(KernelState.ChangeListener cl)
push a listener for notification of the next change.
|
public Heap heap
public ThreadList threads
public ClassLoaderList classLoaders
public KernelState(Config config)
public Memento<KernelState> getMemento(MementoFactory factory)
getMemento
in interface Restorable<KernelState>
public Memento<KernelState> getMemento()
public void addClassLoader(ClassLoaderInfo cl)
protected ClassLoaderInfo getClassLoader(int gid)
public Heap getHeap()
public ThreadList getThreadList()
public ClassLoaderList getClassLoaderList()
public void changed()
public void pushChangeListener(KernelState.ChangeListener cl)
public int getThreadCount()
public void gc()