Class DummyNode


  • public class DummyNode
    extends Node
    A node which does nothing, except forwarding all streams and, optionally, taking a configurable nap after each stream. This node is useful for the simulation of some kind of time-consuming work, without actually doing any work.
    • Constructor Detail

      • DummyNode

        public DummyNode()
    • 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.
      • getDelayPerStream

        public long getDelayPerStream()
        Returns:
        The delay per stream (in ms)
      • setDelayPerStream

        public void setDelayPerStream​(long delayPerStream)
        Set the delay per stream (in milliseconds). Default: 0
        Parameters:
        delayPerStream - the delay in ms.
        See Also:
        Thread.sleep(long)