/** * Performs the given operation job on the store. * If the operation does not have a view then the graph view is used. * * @param operation the operation to be executed. * @param user the user executing the job. * @return the job details * @throws OperationException thrown if the job fails to run. */ public JobDetail executeJob(final Operation operation, final User user) throws OperationException { return executeJob(new GraphRequest<>(operation, user)).getResult(); }
/** * Performs the given operation job on the store. * If the operation does not have a view then the graph view is used. * The context will be cloned and a new jobId will be created. * * @param operation the operation to be executed. * @param context the user context for the execution of the operation * @return the job details * @throws OperationException thrown if the job fails to run. */ public JobDetail executeJob(final Operation operation, final Context context) throws OperationException { return executeJob(new GraphRequest<>(operation, context)).getResult(); }
final JobDetail initialJobDetail = graph.executeJob(job, user); final String jobId = initialJobDetail.getJobId();
final JobDetail initialJobDetail = graph.executeJob(job, user); final String jobId = initialJobDetail.getJobId();