Class WaitingRequest

java.lang.Object
QueueNet.JobInfo
QueueNet.WaitingRequest

public class WaitingRequest extends JobInfo
This class implements a waiting request of a job to be processed by a section: it contains information about the job and the node/the section which sent the job. This class should be used to build a list of jobs sent by other nodes/sections which could not be processed immediately: a section can use this class to retrieve node/section to be acked when job could be processed.
  • Constructor Details

    • WaitingRequest

      public WaitingRequest(Job job, byte sourceSection, NetNode source)
      Creates a new instance of WaitingRequest object.
      Parameters:
      job - Job referenced by this WaitingRequest.
      sourceSection - Source section of the job.
      source - Source node of the job.
  • Method Details

    • getSourceSection

      public byte getSourceSection()
      Gets the source section of the job.
      Returns:
      Source section of the job.
    • getSource

      public NetNode getSource()
      Gets the source node of the job.
      Returns:
      Source node of the job.