System.out.println("Host Name : " + host.getName());
System.out.println("Network : " + host.getNetworks()[0].getName());
System.out.println("Datastore : " + host.getDatastores()[0].getName());
InventoryNavigator iv = new InventoryNavigator(si.getRootFolder());
HttpNfcLease hnLease = null;
ManagedEntity me = null;
if (entityType.equals("VirtualApp"))
{
me = iv.searchManagedEntity("VirtualApp", vAppOrVmName);
hnLease = ((VirtualApp)me).exportVApp();
}
else
{
me = iv.searchManagedEntity("VirtualMachine", vAppOrVmName);
hnLease = ((VirtualMachine)me).exportVm();
}
// Wait until the HttpNfcLeaseState is ready
HttpNfcLeaseState hls;