Class JobSink


public class JobSink extends InputSection
This class implements a sink: every incoming job is destroyed.
Author:
Francesco Radaelli
  • Constructor Details

    • JobSink

      public JobSink()
      Default Constructor creates the JobSink that can be used only as Input Section.
  • Method Details

    • nodeLinked

      protected void nodeLinked(NetNode node) throws NetException
      Description copied from class: NodeSection
      This method should be overridden to implement a specific behaviour of the node section when the node section itself is linked to the owner node. This method should be used to set node section properties depending on the owner node ones.
      Overrides:
      nodeLinked in class NodeSection
      Parameters:
      node - Owner node.
      Throws:
      NetException
    • process

      protected int process(NetMessage message) throws NetException
      This method implements a sink. It eats all incoming jobs.
      Specified by:
      process in class NodeSection
      Parameters:
      message - message to be processed.
      Returns:
      the resulting int
      Throws:
      NetException
    • showForkJobExitWarning

      public void showForkJobExitWarning(JobClass jobClass)
      Shows the fork job exit warning.