Package eu.stratosphere.nephele.event.job

Examples of eu.stratosphere.nephele.event.job.AbstractEvent


      }

      final Iterator<AbstractEvent> it = jobProgressResult.getEvents();
      while (it.hasNext()) {

        final AbstractEvent event = it.next();

        // Did we already process that event?
        if (this.lastProcessedEventSequenceNumber >= event.getSequenceNumber()) {
          continue;
        }

        LOG.info(event.toString());
        if (this.console != null) {
          this.console.println(event.toString());
        }

        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();
View Full Code Here


      if (eventsForJob != null) {

        final Iterator<AbstractEvent> it = eventsForJob.iterator();
        while (it.hasNext()) {

          final AbstractEvent event = it.next();
          final boolean isManagementEvent = (event instanceof ManagementEvent);
          if (!isManagementEvent || includeManagementEvents) {
            eventList.add(event);
          }
        }
View Full Code Here

        }

        final Iterator<AbstractEvent> it2 = eventList.iterator();
        while (it2.hasNext()) {

          final AbstractEvent event = it2.next();
          // If the event is older than TIMERTASKINTERVAL, remove it
          if ((event.getTimestamp() + this.timerTaskInterval) < currentTime) {
            archiveEvent(jobID, event);
            it2.remove();
          }
        }
View Full Code Here

        boolean exitLoop = false;

        final Iterator<AbstractEvent> it = jobProgressResult.getEvents();
        while (it.hasNext()) {

          final AbstractEvent event = it.next();

          // Did we already process that event?
          if (lastProcessedEventSequenceNumber >= event.getSequenceNumber()) {
            continue;
          }

          lastProcessedEventSequenceNumber = event.getSequenceNumber();

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

TOP

Related Classes of eu.stratosphere.nephele.event.job.AbstractEvent

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.