@@ -150,8 +150,6 @@ public class AtlasClientV2 extends AtlasBaseClient {
150150 // Async Import APIs
151151 private static final String ASYNC_IMPORT_URI = BASE_URI + "admin/async/import" ;
152152 private static final String ASYNC_IMPORT_STATUS_URI = BASE_URI + "admin/async/import/status" ;
153- private static final String ASYNC_IMPORT_STATUS_BY_ID_URI = BASE_URI + "admin/async/import/status/" ;
154- private static final String ASYNC_IMPORT_BY_ID_URI = BASE_URI + "admin/async/import/" ;
155153
156154 private static final String IMPORT_REQUEST_PARAMTER = "request" ;
157155 private static final String IMPORT_DATA_PARAMETER = "data" ;
@@ -1060,7 +1058,15 @@ public AtlasAsyncImportRequest importAsync(AtlasImportRequest request, InputStre
10601058 }
10611059
10621060 public PList <AsyncImportStatus > getAsyncImportStatus () throws AtlasServiceException {
1063- return callAPI (API_V2 .ASYNC_IMPORT_STATUS_ALL , new GenericType <PList <AsyncImportStatus >>() {}, null );
1061+ return getAsyncImportStatus (0 , 50 );
1062+ }
1063+
1064+ public PList <AsyncImportStatus > getAsyncImportStatus (Integer offset , Integer limit ) throws AtlasServiceException {
1065+ MultivaluedMap <String , String > queryParams = new MultivaluedMapImpl ();
1066+ queryParams .add ("offset" , String .valueOf (offset ));
1067+ queryParams .add ("limit" , String .valueOf (limit ));
1068+
1069+ return callAPI (API_V2 .ASYNC_IMPORT_STATUS_ALL , new GenericType <PList <AsyncImportStatus >>() {}, queryParams );
10641070 }
10651071
10661072 public AtlasAsyncImportRequest getAsyncImportStatusById (String importId ) throws AtlasServiceException {
@@ -1298,8 +1304,8 @@ public static class API_V2 extends API {
12981304 // Async Import APIs
12991305 public static final API_V2 ASYNC_IMPORT = new API_V2 (ASYNC_IMPORT_URI , HttpMethod .POST , Response .Status .OK , MediaType .MULTIPART_FORM_DATA , MediaType .APPLICATION_JSON );
13001306 public static final API_V2 ASYNC_IMPORT_STATUS_ALL = new API_V2 (ASYNC_IMPORT_STATUS_URI , HttpMethod .GET , Response .Status .OK );
1301- public static final API_V2 ASYNC_IMPORT_STATUS_BY_ID = new API_V2 (ASYNC_IMPORT_STATUS_BY_ID_URI + "%s" , HttpMethod .GET , Response .Status .OK );
1302- public static final API_V2 ABORT_ASYNC_IMPORT_BY_ID = new API_V2 (ASYNC_IMPORT_BY_ID_URI + "%s" , HttpMethod .DELETE , Response .Status .NO_CONTENT );
1307+ public static final API_V2 ASYNC_IMPORT_STATUS_BY_ID = new API_V2 (ASYNC_IMPORT_STATUS_URI + "/ %s" , HttpMethod .GET , Response .Status .OK );
1308+ public static final API_V2 ABORT_ASYNC_IMPORT_BY_ID = new API_V2 (ASYNC_IMPORT_URI + "/ %s" , HttpMethod .DELETE , Response .Status .NO_CONTENT );
13031309
13041310 // Glossary APIs
13051311 public static final API_V2 GET_ALL_GLOSSARIES = new API_V2 (GLOSSARY_URI , HttpMethod .GET , Response .Status .OK );
0 commit comments