Package com.levigo.jadice.server.nodes
Class ScriptNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.nodes.ScriptNode
-
public class ScriptNode extends Node
The ScriptNode allows a server-side script to be used to control stream processing. For an easier but less flexible way of dynamicStream
handling, theDynamicPipelineNode
can be used.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description ScriptNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Serializable>
getParameters()
URI
getScript()
String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.void
setParameters(Map<String,Serializable> parameters)
void
setScript(URI location)
Set the location of the script that will be executed.-
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, validateConfiguration
-
-
-
-
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.
-
getScript
public URI getScript()
- Returns:
- the location of the script to be executed
-
setScript
public void setScript(URI location)
Set the location of the script that will be executed.- Parameters:
location
- the script to execute- Since:
- jadice server 4.2.0.0
-
getParameters
public Map<String,Serializable> getParameters()
- Returns:
- the parameters
-
setParameters
public void setParameters(Map<String,Serializable> parameters)
-
-