Examples of JobMetadata


Examples of org.lab41.dendrite.metagraph.models.JobMetadata

            response.put("msg", "missing project metadata for graph '" + graphId + "'");
            tx.rollback();
            return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
        }

        JobMetadata jobMetadata = tx.createJob(projectMetadata);

        response.put("status", "ok");
        response.put("msg", "job submitted");
        response.put("jobId", jobMetadata.getId().toString());

        tx.commit();

        // We can't pass the values directly because they'll live in a separate thread.
        eigenvectorCentralityService.run(graph, jobMetadata.getId());

        return new ResponseEntity<>(response, HttpStatus.OK);
    }
View Full Code Here

Examples of org.lab41.dendrite.metagraph.models.JobMetadata

            response.put("msg", "missing project metadata for graph '" + graphId + "'");
            tx.rollback();
            return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
        }

        JobMetadata jobMetadata = tx.createJob(projectMetadata);

        response.put("status", "ok");
        response.put("msg", "job submitted");
        response.put("jobId", jobMetadata.getId().toString());

        tx.commit();

        // We can't pass the values directly because they'll live in a separate thread.
        pageRankService.run(graph, jobMetadata.getId(), item.getAlpha());

        return new ResponseEntity<>(response, HttpStatus.OK);
    }
View Full Code Here

Examples of org.lab41.dendrite.metagraph.models.JobMetadata

            this.projectId = null;
        } else {
            this.projectId = projectMetadata.getId().toString();
        }

        JobMetadata parentJobMetadata = jobMetadata.getParentJob();
        if (parentJobMetadata == null) {
            this.parentJobId = null;
        } else {
            this.parentJobId = parentJobMetadata.getId().toString();
        }

        this.name = jobMetadata.getName();
        this.state = jobMetadata.getState();
        this.progress = jobMetadata.getProgress();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.