org.simgrid.msg
public class VM extends java.lang.Object
Constructor and Description |
---|
VM(Host host,
java.lang.String name,
int coreAmount)
Create a new empty VM.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(Process process)
Add the given process into the VM.
|
protected void |
destroy()
Destroy the VM
|
protected void |
finalize() |
java.lang.String |
getName() |
boolean |
isRunning()
Returns whether the given VM is currently running
|
boolean |
isSuspended()
Returns whether the given VM is currently suspended
|
void |
migrate(Host destination)
Immediately change the host on which all processes are running
No migration cost occurs.
|
static void |
nativeInit()
Class initializer, to initialize various JNI stuff
|
void |
reboot()
Reboot the VM, restarting all the processes in it.
|
void |
resume()
Immediately resumes the execution of all processes within the given VM
No resume cost occurs.
|
void |
shutdown()
Immediately kills all processes within the given VM.
|
void |
suspend()
Immediately suspend the execution of all processes within the given VM
No suspension cost occurs.
|
void |
unbind(Process process)
Removes the given process from the given VM, and kill it
Will raise a ProcessNotFound exception if the process were not bound to that VM
|
public VM(Host host, java.lang.String name, int coreAmount)
protected void finalize()
finalize
in class java.lang.Object
protected void destroy()
public boolean isSuspended()
public boolean isRunning()
public void bind(Process process)
public void unbind(Process process)
public void migrate(Host destination)
public void suspend()
public void resume()
public void shutdown()
public void reboot()
public java.lang.String getName()
public static void nativeInit()