public void run() { while (true) { try { httpNfcLease.httpNfcLeaseProgress(progressPercent); Thread.sleep(updateInterval); } catch(InterruptedException ie) { break; } catch(Exception e) { throw new RuntimeException(e); } } }
public LocalizedMethodFault getError() { return (LocalizedMethodFault) getCurrentProperty("error"); }
/** @since SDK4.1 */ public HttpNfcLeaseManifestEntry[] httpNfcLeaseGetManifest() throws Timedout, InvalidState, RuntimeFault, RemoteException { return getVimService().httpNfcLeaseGetManifest(getMOR()); }
for(;;) hls = hnLease.getState(); if(hls == HttpNfcLeaseState.ready) HttpNfcLeaseInfo httpNfcLeaseInfo = hnLease.getInfo(); httpNfcLeaseInfo.setLeaseTimeout(300*1000*1000); printHttpNfcLeaseInfo(httpNfcLeaseInfo); hnLease.httpNfcLeaseProgress(100); hnLease.httpNfcLeaseComplete();
public HttpNfcLease exportVApp() throws InvalidPowerState, TaskInProgress, InvalidState, FileFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().exportVApp(getMOR()); return new HttpNfcLease(getServerConnection(), mor); }
for(;;) hls = hnLease.getState(); if(hls == HttpNfcLeaseState.ready) HttpNfcLeaseInfo httpNfcLeaseInfo = hnLease.getInfo(); httpNfcLeaseInfo.setLeaseTimeout(300*1000*1000); printHttpNfcLeaseInfo(httpNfcLeaseInfo); hnLease.httpNfcLeaseProgress(100); hnLease.httpNfcLeaseComplete();
/** @since SDK4.0 */ public HttpNfcLease exportVm() throws InvalidPowerState, TaskInProgress, InvalidState, FileFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().exportVm(getMOR()); return new HttpNfcLease(getServerConnection(), mor); }
for(;;) hls = httpNfcLease.getState(); if(hls == HttpNfcLeaseState.ready || hls == HttpNfcLeaseState.error) HttpNfcLeaseInfo httpNfcLeaseInfo = (HttpNfcLeaseInfo) httpNfcLease.getInfo(); printHttpNfcLeaseInfo(httpNfcLeaseInfo); httpNfcLease.httpNfcLeaseProgress(100); httpNfcLease.httpNfcLeaseComplete();
public void httpNfcLeaseComplete() throws Timedout, InvalidState, RuntimeFault, RemoteException { getVimService().httpNfcLeaseComplete(getMOR()); }
public void run() { while (true) { try { httpNfcLease.httpNfcLeaseProgress(progressPercent); Thread.sleep(updateInterval); } catch(InterruptedException ie) { break; } catch(Exception e) { throw new RuntimeException(e); } } }
public HttpNfcLeaseState getState() { return (HttpNfcLeaseState)getCurrentProperty("state"); }
/** @since SDK4.0 */ public HttpNfcLease importVApp(ImportSpec spec, Folder folder, HostSystem host) throws VmConfigFault, FileFault, OutOfBounds, DuplicateName, InvalidName, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().importVApp(getMOR(), spec, folder==null? null : folder.getMOR(), host==null? null : host.getMOR()); return new HttpNfcLease(getServerConnection(), mor); }
for(;;) hls = httpNfcLease.getState(); if(hls == HttpNfcLeaseState.ready || hls == HttpNfcLeaseState.error) HttpNfcLeaseInfo httpNfcLeaseInfo = (HttpNfcLeaseInfo) httpNfcLease.getInfo(); printHttpNfcLeaseInfo(httpNfcLeaseInfo); httpNfcLease.httpNfcLeaseProgress(100); httpNfcLease.httpNfcLeaseComplete();
public void httpNfcLeaseProgress(int percent) throws Timedout, RuntimeFault, RemoteException { getVimService().httpNfcLeaseProgress(getMOR(), percent); } }
public HttpNfcLeaseInfo getInfo() { return (HttpNfcLeaseInfo) getCurrentProperty("info"); }
public void httpNfcLeaseAbort(LocalizedMethodFault fault) throws Timedout, InvalidState, RuntimeFault, RemoteException { getVimService().httpNfcLeaseAbort(getMOR(), fault); }
public int getInitializeProgress() { return ((Integer)getCurrentProperty("initializeProgress")).intValue(); }