Class StreamInputNode

    • Constructor Detail

      • StreamInputNode

        public StreamInputNode()
    • Method Detail

      • getWorkerClassName

        public String getWorkerClassName()
        Description copied from class: Node
        Return the node's associated com.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.
        The package name of the worker class is the name of the Node's package with an appended ".worker".

        This behavior can be overridden in concrete subclasses.

        Overrides:
        getWorkerClassName in class Node
        Returns:
        the full qualified class name of the worker of this node.
      • addStream

        public void addStream​(Stream stream)
                       throws IOException
        Transmit a Stream to the server.

        Must not be called before the underlying job was successfully submitted.

        Parameters:
        stream - A Stream
        Throws:
        IOException - If the stream can't be sent.
        IllegalStateException - If you attempt to use this method before the according job has been accepted by a server instance.
        Since:
        jadice server 4.3.1.17
      • createOutputStream

        public OutputStream createOutputStream​(StreamDescriptor sd)
                                        throws IOException
        Creates an OutputStream. Data written herein will be directly transfered to the server. As each call on thewrite methods of OutputStream will result in at least one message between client and server, it's preferable to write in larger chunks.

        Must not be called before the underlying job was successfully submitted.

        Parameters:
        sd - The OutputStream's meta data
        Returns:
        an OutputStream that can be written to
        Throws:
        IOException - If the stream can't be sent.
      • createOutputStream

        public OutputStream createOutputStream()
                                        throws IOException
        Creates an OutputStream. Data written herein will be directly transfered to the server. As each call on thewrite methods of OutputStream will result in at least one message between client and server, it's preferable to write in larger chunks.

        Must not be called before the underlying job was successfully submitted.

        Returns:
        an OutputStream that can be written to
        Throws:
        IOException - If the stream can't be sent.
        See Also:
        createOutputStream(StreamDescriptor)
      • getStreamBundle

        public StreamBundle getStreamBundle()
        Get the Streams that the client has sent. To be used on the server side only...!
        Returns:
        the Streams sent by the client
      • getInputCardinality

        public Node.Cardinality getInputCardinality()
        Description copied from class: Node
        Return the input cardinality of this node, i.e. how many bundles (not streams!) it expects to process. By default, nodes are "pipe-style", i.e. one input, one output.
        Overrides:
        getInputCardinality in class Node
        Returns:
        input cardinality