public CloseableIterable<?> getJobResults() { // --------------------------------------------------------- final GetJobResults getJobResults = new GetJobResults.Builder() .jobId(jobId) .build(); // --------------------------------------------------------- return runExample(getJobResults); } }
public JobDetail getJobDetails() { // --------------------------------------------------------- final GetJobDetails getJobDetails = new GetJobDetails.Builder() .jobId(jobId) .build(); // --------------------------------------------------------- return runExample(getJobDetails); }
public CloseableIterable<JobDetail> getAllJobDetails() { // --------------------------------------------------------- final GetAllJobDetails getAllJobDetails = new GetAllJobDetails(); // --------------------------------------------------------- return runExample(getAllJobDetails); } }
new GetJobDetails.Builder() .jobId(jobId) .build(), user); final CloseableIterable<JobDetail> jobDetails = graph.execute(new GetAllJobDetails(), user); final CloseableIterable<?> jobResults = graph.execute(new GetJobResults.Builder() .jobId(jobId) .build(), user);
public JobDetail getJobDetailsInOperationChain() { // --------------------------------------------------------- final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- final JobDetail jobDetail = runExample(opChain); jobId = jobDetail.getJobId(); return jobDetail; } }
new GetJobDetails.Builder() .jobId(jobId) .build(), user); final CloseableIterable<JobDetail> jobDetails = graph.execute(new GetAllJobDetails(), user); final CloseableIterable<?> jobResults = graph.execute(new GetJobResults.Builder() .jobId(jobId) .build(), user);
public JobDetail getJobDetails() { // --------------------------------------------------------- final GetJobDetails operation = new GetJobDetails.Builder() .jobId(jobId) .build(); // --------------------------------------------------------- return runExample(operation, null); }
public CloseableIterable<?> getJobResults() { // --------------------------------------------------------- final GetJobResults operation = new GetJobResults.Builder() .jobId(jobId) .build(); // --------------------------------------------------------- return runExample(operation, null); } }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain); return jobDetail; }
public CloseableIterable<JobDetail> getAllJobDetails() { // --------------------------------------------------------- final GetAllJobDetails operation = new GetAllJobDetails(); // --------------------------------------------------------- return runExample(operation, null); } }
private void waitUntilJobHashFinished(final User user, final Graph graph, final JobDetail initialJobDetail) throws OperationException { JobDetail jobDetail = initialJobDetail; while (JobStatus.RUNNING.equals(jobDetail.getStatus())) { jobDetail = graph.execute(new GetJobDetails.Builder() .jobId(jobDetail.getJobId()) .build(), user); try { Thread.sleep(100); } catch (final InterruptedException e) { throw new RuntimeException(e); } } }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain); return jobDetail; }
private void waitUntilJobHashFinished(final User user, final Graph graph, final JobDetail initialJobDetail) throws OperationException { JobDetail jobDetail = initialJobDetail; while (JobStatus.RUNNING.equals(jobDetail.getStatus())) { jobDetail = graph.execute(new GetJobDetails.Builder() .jobId(jobDetail.getJobId()) .build(), user); try { Thread.sleep(100); } catch (InterruptedException e) { throw new RuntimeException(e); } } } }
public JobDetail getJobDetailsInOperationChain() { // --------------------------------------------------------- final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- final JobDetail jobDetail = runExample(opChain, null); jobId = jobDetail.getJobId(); return jobDetail; } }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // ---------------------------------------------- ----------- jobDetail = runExample(opChain, null); return jobDetail; }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain, null); return jobDetail; }
@Override public void runExamples() { try { final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); final JobDetail jobDetails = getGraph().execute(opChain, new User("user01")); jobId = jobDetails.getJobId(); } catch (final OperationException e) { throw new RuntimeException(e); } getJobResults(); }
@Override public void runExamples() { try { final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); final JobDetail jobDetails = getGraph().execute(opChain, new User("user01")); jobId = jobDetails.getJobId(); } catch (final OperationException e) { throw new RuntimeException(e); } getJobResults(); }