Skip to content
Snippets Groups Projects
Commit b8b4a042 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Async recall: added node-type param and renamed tape-recall to async-recall

parent ae7d5a44
No related branches found
No related tags found
No related merge requests found
Pipeline #904 passed
......@@ -8,6 +8,7 @@ import java.util.List;
import java.util.UUID;
import net.ivoa.xml.uws.v1.ExecutionPhase;
import net.ivoa.xml.uws.v1.JobSummary;
import net.ivoa.xml.vospace.v2.Param;
import net.ivoa.xml.vospace.v2.Protocol;
import net.ivoa.xml.vospace.v2.StructuredDataNode;
import net.ivoa.xml.vospace.v2.Transfer;
......@@ -58,7 +59,13 @@ public class JobController extends BaseController {
transfer.setDirection("pullToVoSpace");
transfer.setTarget(target);
Protocol protocol = new Protocol();
protocol.setUri("ia2:tape-recall");
Param param = new Param();
param.setUri("ia2:node-type");
param.setValue(paths.size() == 1 ? "single" : "list");
protocol.getParam().add(param);
protocol.setUri("ia2:async-recall");
transfer.getProtocols().add(protocol);
JobSummary job = client.startTransferJob(transfer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment