@Test(enabled = true) public void testListAsyncJobs() throws Exception { Set<AsyncJob<?>> response = client.getAsyncJobClient().listAsyncJobs(); assert null != response; long asyncJobCount = response.size(); assertTrue(asyncJobCount >= 0); for (AsyncJob<?> asyncJob : response) { assert asyncJob.getCmd() != null : asyncJob; assert asyncJob.getUserId() != null : asyncJob; checkJob(asyncJob); AsyncJob<?> query = client.getAsyncJobClient().getAsyncJob(asyncJob.getId()); assertEquals(query.getId(), asyncJob.getId()); assert query.getResultType() != null : query; checkJob(query); } }
@Test(enabled = true) public void testListAsyncJobs() throws Exception { Set<AsyncJob<?>> response = client.getAsyncJobApi().listAsyncJobs(); assert null != response; long asyncJobCount = response.size(); assertTrue(asyncJobCount >= 0); for (AsyncJob<?> asyncJob : response) { assert asyncJob.getCmd() != null : asyncJob; assert asyncJob.getUserId() != null : asyncJob; checkJob(asyncJob); AsyncJob<?> query = client.getAsyncJobApi().getAsyncJob(asyncJob.getId()); assertEquals(query.getId(), asyncJob.getId()); assert query.getResultType() != null : query; checkJob(query); } }
public T fromAsyncJob(AsyncJob<S> in) { return this .accountId(in.getAccountId()) .cmd(in.getCmd()) .created(in.getCreated()) .id(in.getId()) .instanceId(in.getInstanceId()) .instanceType(in.getInstanceType()) .progress(in.getProgress()) .result(in.getResult()) .resultCode(in.getResultCode()) .resultType(in.getResultType()) .status(in.getStatus()) .userId(in.getUserId()) .error(in.getError()); }
public T fromAsyncJob(AsyncJob<S> in) { return this .accountId(in.getAccountId()) .cmd(in.getCmd()) .created(in.getCreated()) .id(in.getId()) .instanceId(in.getInstanceId()) .instanceType(in.getInstanceType()) .progress(in.getProgress()) .result(in.getResult()) .resultCode(in.getResultCode()) .resultType(in.getResultType()) .status(in.getStatus()) .userId(in.getUserId()) .error(in.getError()); }
public T fromAsyncJob(AsyncJob<S> in) { return this .accountId(in.getAccountId()) .cmd(in.getCmd()) .created(in.getCreated()) .id(in.getId()) .instanceId(in.getInstanceId()) .instanceType(in.getInstanceType()) .progress(in.getProgress()) .result(in.getResult()) .resultCode(in.getResultCode()) .resultType(in.getResultType()) .status(in.getStatus()) .userId(in.getUserId()) .error(in.getError()); }