diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapConnection.java b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapConnection.java index 9ff93df..9b35a0e 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapConnection.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapConnection.java @@ -125,7 +125,7 @@ public class EpnTapConnection implements EpnTapInterface { @Override public List sendADQLQuery(String tapURL, String adqlQuery) throws VOTableException { VOTableCtrl voTableCtrl = new VOTableCtrl(); - voTableCtrl.acquireVOTable(tapURL, adqlQuery); + voTableCtrl.acquireVOTableBlocking(tapURL, adqlQuery); VOTableData data = voTableCtrl.getVOTableData(); List granules; @@ -139,7 +139,7 @@ public class EpnTapConnection implements EpnTapInterface { throws VOTableException { String query = String.format(enumeratedQuery.toString(), schemaName); VOTableCtrl voTableCtrl = new VOTableCtrl(); - voTableCtrl.acquireVOTable(tapURL, query); + voTableCtrl.acquireVOTableBlocking(tapURL, query); VOTableData data = voTableCtrl.getVOTableData(); Debug.writeObject("data", data); diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/service/ServiceCtrl.java b/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/service/ServiceCtrl.java index a5f9324..9141055 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/service/ServiceCtrl.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/service/ServiceCtrl.java @@ -152,7 +152,7 @@ public class ServiceCtrl { */ public static VOTABLE getVoTable(String query) throws VOTableException { VOTableCtrl voTableCtrl = new VOTableCtrl(); - voTableCtrl.acquireVOTable(Consts.DEFAULT_REGISTRY_URL, query); + voTableCtrl.acquireVOTableBlocking(Consts.DEFAULT_REGISTRY_URL, query); return voTableCtrl.getVOTable(); } @@ -174,7 +174,7 @@ public class ServiceCtrl { */ public static VOTableData getVoTableData(VOTABLE voTable) throws VOTableException { VOTableCtrl ctrl = new VOTableCtrl(); - ctrl.acquireVOTable(voTable); + ctrl.acquireVOTableBlocking(voTable); Table table = (Table) voTable.getRESOURCE().get(0).getLINKAndTABLEOrRESOURCE().get(0); VOTableDataParser dataParser = new VOTableDataParser("Services list", table); dataParser.parseData(); -- libgit2 0.21.2