Class ServiceSection

Direct Known Subclasses:
Cache, ClassSwitch, Delay, PollingServer, Server, ServiceTunnel, Timing

public abstract class ServiceSection extends PipeSection
This abstract class implements a generic service section of a NetNode.
Author:
Francesco Radaelli
  • Constructor Details

    • ServiceSection

      public ServiceSection()
      Creates a new instance of serviceSection.
    • ServiceSection

      public ServiceSection(boolean auto)
      Creates a new instance of serviceSection.
      Parameters:
      auto - Auto refresh of the jobsList attribute.
    • ServiceSection

      public ServiceSection(boolean auto, boolean nodeAuto)
      Creates a new instance of serviceSection.
      Parameters:
      auto - Auto refresh of the jobsList attribute.
      nodeAuto - Auto refresh the jobsList attribute at node level.
  • Method Details

    • sendForward

      protected RemoveToken sendForward(Job job, double delay)
      Sends a job to the output section.
      Parameters:
      job - job to be sent.
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.
    • sendForward

      protected RemoveToken sendForward(int event, Object data, double delay)
      Sends a message to the output section.
      Parameters:
      event - Message tag.
      data - the data
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.
    • sendBackward

      protected RemoveToken sendBackward(Job job, double delay)
      Sends a job to the input section.
      Parameters:
      job - job to be sent.
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.
    • sendBackward

      protected RemoveToken sendBackward(int event, Object data, double delay)
      Sends a message to the input section.
      Parameters:
      event - Message tag.
      data - the data
      delay - Scheduling delay.
      Returns:
      a token to remove sent event.