Class StreamAnalysisNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.documentplatform.StreamAnalysisNode
-
public class StreamAnalysisNode extends Node
ThisNode
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 keyPROPERTY_NAME
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Field Summary
Fields Modifier and Type Field Description static URI
DEFAULT_DATABASE
The location of the default databasestatic String
PROPERTY_NAME
The key under which the analysis result is stored in theStreamDescriptor
's properties
-
Constructor Summary
Constructors Constructor Description StreamAnalysisNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getTypeDatabase()
String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.void
setTypeDatabase(URI location)
Set the file type database location.protected void
validateConfiguration()
-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove
-
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
The key under which the analysis result is stored in theStreamDescriptor
's properties
-
DEFAULT_DATABASE
public static final URI DEFAULT_DATABASE
The location of the default database
-
-
Method Detail
-
getWorkerClassName
public String getWorkerClassName()
Description copied from class:Node
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name. By default, the worker class name is- The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
- The node class name with an appended "Worker" otherwise.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in classNode
- Returns:
- the full qualified class name of the worker of this node.
-
getTypeDatabase
public URI getTypeDatabase()
- Returns:
- the file type database location
-
setTypeDatabase
public void setTypeDatabase(URI location)
Set the file type database location.- Parameters:
location
- the database location
-
validateConfiguration
protected void validateConfiguration() throws ConfigurationException
- Overrides:
validateConfiguration
in classNode
- Throws:
ConfigurationException
-
-