|
Agaetis VMWare API 1.0.0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agaetis.vmware.VixLibrary
public class VixLibrary
Class for the mapping between vix library and java using jna.
NB : If the libvix.so is used to connect to another console than VMware Server 1.0 then you have to change the libvix.so in resources/libs
NB : This class use libvixAllProducts so it has to be in the jna path.
| Nested Class Summary | |
|---|---|
static interface |
VixLibrary.VixLibraryInterface
|
| Field Summary | |
|---|---|
(package private) URL |
libsURL
|
| Constructor Summary | |
|---|---|
VixLibrary()
|
|
| Method Summary | |
|---|---|
static void |
checkError(int err)
Throws an exception, if there is an error. |
static void |
checkHandle(int handle)
This static method check if the handle given is valid. |
static VixLibrary.VixLibraryInterface |
getInterfaceInstance()
if the platform is linux and if the jna library path contains a vixAllProducts library then load it otherwise load the vix library. |
static void |
releaseHandle(int handle)
Release resources attached to the given handle. |
static void |
setLibraryPath(String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
URL libsURL
| Constructor Detail |
|---|
public VixLibrary()
| Method Detail |
|---|
public static void checkError(int err)
throws VMWareRuntimeException
err - Error number obtained by Vix_JobWait
VMWareRuntimeException
public static void checkHandle(int handle)
throws VMWareRuntimeException
handle - Handle to check
VMWareRuntimeExceptionpublic static void releaseHandle(int handle)
handle - Handle to release.public static void setLibraryPath(String path)
public static VixLibrary.VixLibraryInterface getInterfaceInstance()
|
Agaetis VMWare API 1.0.0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||