Examples of JobState


Examples of org.apache.uima.ducc.transport.event.common.IDuccState.JobState

  }
 
  public boolean stateChange(IDuccWorkJob job, JobState state) {
    String methodName = "stateChange";
    boolean retVal = false;
    JobState prev = job.getJobState();
    JobState next = state;
    switch(prev) {
    case Completing:
      retVal = stateChangeFromCompleting(prev, next);
      break;
    case Completed:
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccState.JobState

    try {
      jobid = job.getDuccId();
      String userName = job.getStandardInfo().getUser();
      String userLogDir = job.getUserLogsDir()+job.getDuccId().getFriendly()+File.separator;
      UserLogging userLogging = new UserLogging(userName, userLogDir);
      JobState jobState = job.getJobState();
      if(jobState != null) {
        text = jobState.toString();
        userLogging.toUserDuccLog(text);
        logger.debug(methodName, job.getDuccId(), text);
      }
    }
    catch(Exception e) {
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccState.JobState

        // first loop synchronized 'friendly_ids' with live jobs comining in
        for ( DuccId id : work.keySet() ) {

            long fid = id.getFriendly();
            if ( friendly_ids.containsKey(fid) ) {
                JobState js = work.get(id);
                implementors.put(id, js);
                newmap.put(fid, id);
            }
        }
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccState.JobState

      sb.append("Lost: ");
      sb.append(lost);
    }
    // extended info live jobs
    sb.append("&nbsp");
    JobState jobState = JobState.Undefined;
    try {
      jobState = job.getJobState();
    }
    catch(Exception e) {
    }
View Full Code Here

Examples of org.openpnp.spi.JobProcessor.JobState

  /**
   * Updates the Job controls based on the Job state and the Machine's
   * readiness.
   */
  private void updateJobActions() {
    JobState state = jobProcessor.getState();
    if (state == JobState.Stopped) {
      startPauseResumeJobAction.setEnabled(true);
      startPauseResumeJobAction.putValue(AbstractAction.NAME, "Start");
      startPauseResumeJobAction.putValue(
          AbstractAction.SMALL_ICON,
View Full Code Here

Examples of org.pentaho.platform.api.scheduler2.Job.JobState

      @ResponseCode ( code = 200, condition = "Successfully paused the job." ),
      @ResponseCode ( code = 500, condition = "Invalid jobId." )
  } )
  public Response pauseJob( JobRequest jobRequest ) {
    try {
      JobState state = schedulerService.pauseJob( jobRequest.getJobId() );
      return buildPlainTextOkResponse( state.name() );
    } catch ( SchedulerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

Examples of org.platformlayer.jobs.model.JobState

    }

    Ansi ansi = new Ansi(writer);

    for (JobExecutionData job : jobs) {
      JobState state = job.state;
      if (state != null) {
        switch (job.state) {
        case FAILED:
          ansi.setColorRed();
          break;
View Full Code Here

Examples of org.platformlayer.jobs.model.JobState

      if (foundExecution == null) {
        throw new IllegalStateException("Execution not found in execution list");
      }

      JobState state = foundExecution.getState();
      switch (state) {
      case FAILED:
      case SUCCESS:
        System.out.println("Job completed; state=" + state);
        return found;
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.