Package org.nebulaframework.core.job.deploy

Examples of org.nebulaframework.core.job.deploy.GridJobInfo


    }

    if (idle) {
      // Request for Job
      try {
        GridJobInfo jobInfo = node.getServicesFacade().requestJob(jobId, node.getProfile());

        jobNames.put(jobId, jobInfo.getJobName());
       
        // Start it
        if (jobInfo.isArchived()) {  // Archived Job
          startNewArchivedJob(jobId, jobInfo.getArchive());
        } else {          // Normal Job
          startNewJob(jobId);
        }
       
       
View Full Code Here


      return;
    }
   
    if (idle) {
      // Request for Job
      GridJobInfo jobInfo = node.getServicesFacade().requestNextJob(node.getProfile());
     
      // If no job, do nothing
      if (jobInfo == null) {
        log.info("[JobExecution] Idle as no active GridJobs");
        return;
      }
     
      jobNames.put(jobInfo.getJobId(), jobInfo.getJobName());
     
      // Start it
      if (jobInfo.isArchived()) {  // Archived Job
        startNewArchivedJob(jobInfo.getJobId(), jobInfo.getArchive());
      } else {          // Normal Job
        startNewJob(jobInfo.getJobId());
      }
    }
  }
View Full Code Here

  protected GridJobInfo createInfo(GridJobProfile profile) {

    // Check for Nulls
    Assert.notNull(profile);

    GridJobInfo info = new GridJobInfo(profile.getJobId(), profile.getJob()
        .getClass().getSimpleName());

    if (profile.isArchived()) {
      // If Archived Job, include Archive
      info.setArchive(profile.getArchive());
    }
    return info;
  }
View Full Code Here

TOP

Related Classes of org.nebulaframework.core.job.deploy.GridJobInfo

Copyright © 2018 www.massapicom. 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.