public class StreamAnalysisNode extends Node
This Node
analyzes a stream's content and tries to find out the content's MIME type with
the jadice filetype analyzer.
For known streams, the analysis will yield stream meta-data including the MIME-type, description and, if available, stream meta-data from the stream itself.
The analysis result is stored in the properties of the
stream descriptor
and can be retrieved with the key PROPERTY_NAME
Node.Cardinality
Modifier and Type | Field and Description |
---|---|
static URI |
DEFAULT_DATABASE
The location of the default database
|
static String |
PROPERTY_NAME
The key under which the analysis result is stored in the
StreamDescriptor 's properties |
Constructor and Description |
---|
StreamAnalysisNode() |
Modifier and Type | Method and Description |
---|---|
URI |
getTypeDatabase() |
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
void |
setTypeDatabase(URI location)
Set the file type database location.
|
protected void |
validateConfiguration() |
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove
public static final String PROPERTY_NAME
StreamDescriptor
's propertiespublic static final URI DEFAULT_DATABASE
public String getWorkerClassName()
Node
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
getWorkerClassName
in class Node
public URI getTypeDatabase()
public void setTypeDatabase(URI location)
location
- the database locationprotected void validateConfiguration() throws ConfigurationException
validateConfiguration
in class Node
ConfigurationException
Copyright © 2017 levigo holding gmbh. All rights reserved.