- private native void start(Host host, String name, int coreAmount);
-
- /** Returns whether the given VM is currently suspended
- */
- public native boolean isSuspended();
- /** Returns whether the given VM is currently running
+ @Deprecated @Override
+ protected void finalize() throws Throwable {
+ nativeFinalize();
+ }
+ private native void nativeFinalize();
+
+ /** Returns whether the given VM is currently suspended */
+ public native int isCreated();
+
+ /** Returns whether the given VM is currently running */
+ public native int isRunning();
+
+ /** Returns whether the given VM is currently running */
+ public native int isMigrating();
+
+ /** Returns whether the given VM is currently suspended */
+ public native int isSuspended();
+
+ /** Returns the amount of virtual CPUs provided */
+ public int getCoreAmount() {
+ return coreAmount;
+ }
+
+ /**
+ * Natively implemented method create the VM.
+ * @param ramSize size of the RAM that should be allocated (in MB)
+ * @param migNetSpeed (network bandwith allocated for migrations in MB/s, if you don't know put zero ;))
+ * @param dpIntensity (dirty page intensity, a percentage of migNetSpeed [0-100], if you don't know put zero ;))