org.esa.beam.framework.processor
Class ProcessorStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.esa.beam.framework.processor.ProcessorStatusEvent
All Implemented Interfaces:
Serializable

public class ProcessorStatusEvent
extends EventObject

ProcessorStatusEvents occur if the status of a processor changes.

Version:
$Revision$ $Date$
Author:
Norman Fomferra
See Also:
ProcessorStatusListener, Processor.addProcessorStatusListener(org.esa.beam.framework.processor.ProcessorStatusListener), Processor.removeProcessorStatusListener(org.esa.beam.framework.processor.ProcessorStatusListener), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProcessorStatusEvent(Processor processor, int oldStatus)
          Constructs a new ProcessorStatusEvent.
 
Method Summary
 ProcessorException getException()
          Returns the processor exception for the moment at which this event occurred.
 int getNewStatus()
          Returns the new processor status (after the status change).
 int getOldStatus()
          Returns the old processor status (before the status change).
 Processor getProcessor()
          Returns the processor which caused this event.
 Request getRequest()
          Returns the processing request which was processed for the moment at which this event occurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessorStatusEvent

public ProcessorStatusEvent(Processor processor,
                            int oldStatus)
Constructs a new ProcessorStatusEvent.

Parameters:
processor - the processor which caused the event, must not be null
oldStatus - the old processor status
Method Detail

getProcessor

public Processor getProcessor()
Returns the processor which caused this event.


getRequest

public Request getRequest()
Returns the processing request which was processed for the moment at which this event occurred.

Returns:
the request, or null if no request was processed while this event was generated

getOldStatus

public int getOldStatus()
Returns the old processor status (before the status change).


getNewStatus

public int getNewStatus()
Returns the new processor status (after the status change).


getException

public ProcessorException getException()
Returns the processor exception for the moment at which this event occurred.

Returns:
the exception, or null if this event was not caused by an error


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.