org.mmbase.streams.createcaches
Class JobDefinition

java.lang.Object
  extended by org.mmbase.streams.createcaches.JobDefinition
All Implemented Interfaces:
Serializable

public class JobDefinition
extends Object
implements Serializable

The description or definition of one 'transcoding' sub job that's doing the transcoding. This combines a Transcoder, with a mime type for which it must be valid, and a list of analyzers.

Version:
$Id: JobDefinition.java 42417 2010-06-07 14:16:36Z andre $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
(package private)  List<Analyzer> analyzers
           
(package private)  String id
           
(package private)  String inId
           
(package private)  String label
           
(package private)  MimeType mimeType
           
(package private)  Stage stage
           
(package private)  Transcoder transcoder
           
 
Constructor Summary
JobDefinition(String id, String inId, String label, Transcoder t, MimeType mt, Stage s)
          Creates a JobDefinition template as used in the configuration container or to kick-start a transcoding.
 
Method Summary
 void addAnalyzer(Analyzer a)
           
 void addAnalyzers(List<Analyzer> l)
           
 List<Analyzer> getAnalyzers()
           
 String getId()
           
 String getInId()
           
 String getLabel()
           
 MimeType getMimeType()
           
 Stage getStage()
           
 Transcoder getTranscoder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transcoder

final Transcoder transcoder

analyzers

final List<Analyzer> analyzers

mimeType

final MimeType mimeType

inId

final String inId

id

final String id

label

final String label

stage

final Stage stage
Constructor Detail

JobDefinition

public JobDefinition(String id,
                     String inId,
                     String label,
                     Transcoder t,
                     MimeType mt,
                     Stage s)
Creates a JobDefinition template as used in the configuration container or to kick-start a transcoding.

Parameters:
id - identifier of this job, normally matches the one in configuration
inId - identifier of the jobdefinition or cache that is used as input. If no inId is found the orginal source is used, otherwise it should match with a preceding jobdefinition id in config or a node number of an already existing cache.
label - description for user purposes of the result
t - transcoder to perform the job
mt - mime type for which the jobdefinition is valid
s - stage the jobdefinition applies to
Method Detail

getTranscoder

public Transcoder getTranscoder()

addAnalyzer

public void addAnalyzer(Analyzer a)

addAnalyzers

public void addAnalyzers(List<Analyzer> l)

getAnalyzers

public List<Analyzer> getAnalyzers()

getMimeType

public MimeType getMimeType()

getStage

public Stage getStage()

getId

public String getId()

getInId

public String getInId()

getLabel

public String getLabel()

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null