public Task addHost_Task ( HostConnectSpec spec , boolean asConnected , ResourcePool resourcePool , String license ) throws InvalidLogin , HostConnectFault , RuntimeFault , RemoteException { ManagedObjectReference taskMOR = getVimService ( ) . addHost_Task ( getMOR ( ) , spec , asConnected , resourcePool == null ? null : resourcePool . getMOR ( ) , license ) ; return new Task ( getServerConnection ( ) , taskMOR ) ; }
new SDK 4 . 0 signature