org.mmbase.streams.createcaches
Class Result

java.lang.Object
  extended by org.mmbase.streams.createcaches.Result
Direct Known Subclasses:
RecognizerResult, SkippedResult, TranscoderResult

public abstract class Result
extends Object

When executing an actual JobDefinition the result is contained in an object like this.

Version:
$Id: Result.java 41615 2010-03-25 15:14:19Z andre $
Author:
Michiel Meeuwissen

Field Summary
(package private)  JobDefinition definition
           
(package private)  URI in
           
(package private)  boolean ready
           
 
Constructor Summary
Result(JobDefinition def, URI in)
           
 
Method Summary
abstract  Node getDestination()
          The Node receiving the result or null if that is not applicable (for recognizers).
 URI getIn()
          The file containing the input for the job.
(package private)  JobDefinition getJobDefinition()
           
abstract  MimeType getMimeType()
          On what kind of inputs this result can work.
abstract  URI getOut()
          The file receiving the result, or null if that is not applicable
 Stage getStage()
          To what Stage of the transcoding process this result belongs.
 boolean isReady()
           
 void ready()
          Marks this result as ready, meaning that there is nothing left to be done and isReady() will return true from now on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definition

final JobDefinition definition

in

final URI in

ready

boolean ready
Constructor Detail

Result

Result(JobDefinition def,
       URI in)
Method Detail

getJobDefinition

JobDefinition getJobDefinition()

getDestination

public abstract Node getDestination()
The Node receiving the result or null if that is not applicable (for recognizers).


getOut

public abstract URI getOut()
The file receiving the result, or null if that is not applicable


getIn

public URI getIn()
The file containing the input for the job.


ready

public void ready()
Marks this result as ready, meaning that there is nothing left to be done and isReady() will return true from now on. Also, extensions may override this with extra functionality which can only be done if transcoding is ready.


isReady

public boolean isReady()

getMimeType

public abstract MimeType getMimeType()
On what kind of inputs this result can work.


getStage

public final Stage getStage()
To what Stage of the transcoding process this result belongs. Either Stage.RECOGNIZER or Stage.TRANSCODER.



MMBase 2.0-SNAPSHOT - null