return;
}
}
System.out.println("HttpNfcLeaseState: ready ");
HttpNfcLeaseInfo httpNfcLeaseInfo = hnLease.getInfo();
httpNfcLeaseInfo.setLeaseTimeout(300*1000*1000);
printHttpNfcLeaseInfo(httpNfcLeaseInfo);
//Note: the diskCapacityInByte could be many time bigger than
//the total size of VMDK files downloaded.
//As a result, the progress calculated could be much less than reality.
long diskCapacityInByte = (httpNfcLeaseInfo.getTotalDiskCapacityInKB()) * 1024;
leaseProgUpdater = new LeaseProgressUpdater(hnLease, 5000);
leaseProgUpdater.start();
long alredyWrittenBytes = 0;
HttpNfcLeaseDeviceUrl[] deviceUrls = httpNfcLeaseInfo.getDeviceUrl();
if (deviceUrls != null)
{
OvfFile[] ovfFiles = new OvfFile[deviceUrls.length];
System.out.println("Downloading Files:");
for (int i = 0; i < deviceUrls.length; i++)