|
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.VixHost
public class VixHost
VixHost is mainly used to connect at first and recover VixVM you want. You must use it to be able to have an access to a vm.
| Field Summary | |
|---|---|
private int |
handle
|
private String |
host
|
private String |
password
|
private int |
port
|
private int |
ServiceProvider
|
private String |
username
|
private VixLibrary |
vl
|
| Constructor Summary | |
|---|---|
VixHost()
Empty constructeur |
|
VixHost(String host,
int port,
String username,
String password,
int ServiceProvider)
|
|
| Method Summary | |
|---|---|
void |
connect()
Connect to the server. |
void |
disconnect()
Disconnect from the vmware server or workstation. |
int |
getHandle()
|
String |
getHost()
|
String |
getPassword()
|
int |
getPort()
|
int |
getServiceProvider()
|
String |
getUsername()
|
VixVM |
open(String vmxFilePathName)
This method is used to obtain a VM from an host machine. |
void |
reconnect()
Reconnect to the vmware server or workstation. |
void |
setHandle(int handle)
|
void |
setHost(String host)
|
void |
setPassword(String password)
|
void |
setPort(int port)
|
void |
setServiceProvider(int ServiceProvider)
|
void |
setUsername(String username)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int port
private String host
private String username
private String password
private int ServiceProvider
private int handle
private VixLibrary vl
| Constructor Detail |
|---|
public VixHost(String host,
int port,
String username,
String password,
int ServiceProvider)
host - host address where there is the vm hostedport - the port to communicate with. By default it's 902username - local username on the host machinepassword - local password on the host machineServiceProvider - specify the type of Service providerpublic VixHost()
| Method Detail |
|---|
public int getHandle()
public void setHandle(int handle)
public int getServiceProvider()
public void setServiceProvider(int ServiceProvider)
public String getHost()
public void setHost(String host)
public String getPassword()
public void setPassword(String password)
public int getPort()
public void setPort(int port)
public String getUsername()
public void setUsername(String username)
public VixVM open(String vmxFilePathName)
throws VMWareRuntimeException
connect() before.
vmxFilePathName - path to vm configuration file (vmx file)
VMWareRuntimeException
public void connect()
throws VMWareRuntimeException
VixHost(String, int, String, String, int)
VMWareRuntimeExceptionpublic void disconnect()
public void reconnect()
VixVM.revertToSnapshot(int) it seems necessary to reconnect
|
Agaetis VMWare API 1.0.0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||