Code example for UUID

Methods: toString

0
        final FaunusEvaluationJob job = new FaunusEvaluationJob(script, jobId, context.getRexsterApplicationGraph(),
                convertToMap(config));
 
        logger.info(String.format("Faunus script [%s] assigned job id: %s", script, jobId));
 
        jobs.put(jobId.toString(), job);
 
        new Thread(new Runnable() {
            @Override 
            public void run() { 
                job.performJob();
            } 
        }).start();
 
        return ExtensionResponse.ok(new HashMap<String,Object>() {{ put(FIELD_JOB, jobId.toString()); }});
    } 
 
    @ExtensionDefinition(extensionPoint = ExtensionPoint.GRAPH, method = HttpMethod.GET) 
    @ExtensionDescriptor(description = "Get Faunus job status") 
    public ExtensionResponse evaluateGet(@RexsterContext final RexsterResourceContext context) {
        final String job = context.getRequestObject().optString("job");