Package eu.stratosphere.nephele.jobgraph

Examples of eu.stratosphere.nephele.jobgraph.JobStatus


        this.lastProcessedEventSequenceNumber = event.getSequenceNumber();

        // Check if we can exit the loop
        if (event instanceof JobEvent) {
          final JobEvent jobEvent = (JobEvent) event;
          final JobStatus jobStatus = jobEvent.getCurrentJobStatus();
          if (jobStatus == JobStatus.SCHEDULED) {
            startTimestamp = jobEvent.getTimestamp();
          }
          if (jobStatus == JobStatus.FINISHED) {
            Runtime.getRuntime().removeShutdownHook(this.jobCleanUp);
View Full Code Here


        final ManagementGraph managementGraph = ManagementGraphFactory.fromExecutionGraph(executionGraph);
        this.eventCollector.addManagementGraph(jobID, managementGraph);
      }

      // Update recent job event
      final JobStatus jobStatus = InternalJobStatus.toJobStatus(newJobStatus);
      if (jobStatus != null) {
        this.eventCollector.updateRecentJobEvent(jobID, this.jobName, this.isProfilingAvailable,
          this.submissionTimestamp, jobStatus);

        this.eventCollector.addEvent(jobID,
View Full Code Here

      final Iterator<Map.Entry<JobID, RecentJobEvent>> it = this.recentJobs.entrySet().iterator();
      while (it.hasNext()) {

        final Map.Entry<JobID, RecentJobEvent> entry = it.next();
        final JobStatus jobStatus = entry.getValue().getJobStatus();

        // Only remove jobs from the list which have stopped running
        if (jobStatus != JobStatus.FINISHED && jobStatus != JobStatus.CANCELED
          && jobStatus != JobStatus.FAILED) {
          continue;
View Full Code Here

          lastProcessedEventSequenceNumber = event.getSequenceNumber();

          // Check if we can exit the loop
          if (event instanceof JobEvent) {
            final JobEvent jobEvent = (JobEvent) event;
            final JobStatus jobStatus = jobEvent.getCurrentJobStatus();

            switch (jobStatus) {
            case FINISHED:
              throw new IllegalStateException("Job finished successfully");
            case FAILED:
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.jobgraph.JobStatus

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.