Examples of SystemJob


Examples of com.google.code.vimsztool.util.SystemJob

      String cmdShell = params.get(SzjdeConstants.PARAM_RUN_IN_SHELL);
      String bufname = params.get(SzjdeConstants.PARAM_BUF_NAME);
      String workDir = params.get(SzjdeConstants.PARAM_WORK_DIR);
      String origCmdLine = params.get("origCmdLine");
      String uuid=UUID.randomUUID().toString();
      SystemJob job = new SystemJob(cmd,vimServerName,cmdShell,uuid,bufname,workDir,origCmdLine);
      job.start();
      return "";
    } else {
      String jobId = params.get(SzjdeConstants.PARAM_JOB_ID);
      SystemJob job = SystemJob.getJob(jobId);
      String result = job.fetchResult();
      return result;
    }
  }
View Full Code Here

Examples of com.google.code.vimsztool.util.SystemJob

    cmd.append(className);
    String uuid=UUID.randomUUID().toString();
    String vimServerName = params.get(SzjdeConstants.PARAM_VIM_SERVER);
    String bufname = params.get(SzjdeConstants.PARAM_BUF_NAME);
    String origCmdLine = "Run " + className;
    SystemJob job = new SystemJob(cmd.toString(),
        vimServerName,"false",uuid,bufname,cc.getProjectRoot(),origCmdLine);
    job.start();
    return "";
   
  }
View Full Code Here

Examples of org.graylog2.system.jobs.SystemJob

    @ApiResponses(value = {
            @ApiResponse(code = 202, message = "Rebuild/sync systemjob triggered.")
    })
    @Produces(MediaType.APPLICATION_JSON)
    public Response rebuild() {
        SystemJob rebuildJob = rebuildIndexRangesJobFactory.create(this.deflector);
        try {
            this.systemJobManager.submit(rebuildJob);
        } catch (SystemJobConcurrencyException e) {
            LOG.error("Concurrency level of this job reached: " + e.getMessage());
            throw new WebApplicationException(403);
View Full Code Here

Examples of org.graylog2.system.jobs.SystemJob

        }

        indices.reopenIndex(index);

        // Trigger index ranges rebuild job.
        final SystemJob rebuildJob = rebuildIndexRangesJobFactory.create(deflector);
        try {
            systemJobManager.submit(rebuildJob);
        } catch (SystemJobConcurrencyException e) {
            LOG.error("Concurrency level of this job reached: " + e.getMessage());
            throw new WebApplicationException(Response.Status.FORBIDDEN);
View Full Code Here

Examples of org.graylog2.system.jobs.SystemJob

        // Close index.
        indices.close(index);

        // Trigger index ranges rebuild job.
        final SystemJob rebuildJob = rebuildIndexRangesJobFactory.create(deflector);
        try {
            systemJobManager.submit(rebuildJob);
        } catch (SystemJobConcurrencyException e) {
            LOG.error("Concurrency level of this job reached: " + e.getMessage());
            throw new WebApplicationException(Response.Status.FORBIDDEN);
View Full Code Here

Examples of org.graylog2.system.jobs.SystemJob

        // Delete index.
        indices.delete(index);

        // Trigger index ranges rebuild job.
        final SystemJob rebuildJob = rebuildIndexRangesJobFactory.create(deflector);
        try {
            systemJobManager.submit(rebuildJob);
        } catch (SystemJobConcurrencyException e) {
            LOG.error("Concurrency level of this job reached: " + e.getMessage());
            throw new WebApplicationException(Response.Status.FORBIDDEN);
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.