Class JobClass

java.lang.Object
QueueNet.JobClass

public class JobClass extends Object
This class implements the description of a job class.
Author:
Francesco Radaelli, Stefano Omini
  • Field Details

  • Constructor Details

    • JobClass

      public JobClass(String Name)
      Creates a new instance of JobClass
      Parameters:
      Name - Symbolic name of the job class.
    • JobClass

      public JobClass(String Name, int priority, int type, String refNode)
      Creates a new instance of JobClass
      Parameters:
      Name - Symbolic name of the job class.
      priority - Priority of this job class. Must be greater than 0.
      type - Class type. See constants.
      refNode - the reference node of this JobClass
  • Method Details

    • getId

      public int getId()
      Gets the id of this class.
      Returns:
      Value of property Id.
    • getName

      public String getName()
      Gets the name of this class.
      Returns:
      Value of property Name.
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getReferenceNodeName

      public String getReferenceNodeName()
    • setReferenceNodeName

      public void setReferenceNodeName(String referenceNodeName)
    • setCacheReferece

      public void setCacheReferece(String cachePairClassName, boolean isCacheHit)
    • isHasCachePair

      public boolean isHasCachePair()
    • isCacheHit

      public boolean isCacheHit()
    • getCachePairClassName

      public String getCachePairClassName()
    • getCachePairClass

      public JobClass getCachePairClass()
    • setCachePairClass

      public void setCachePairClass(JobClass jobClass)
    • setSoftDeadline

      public void setSoftDeadline(double softDeadline)
    • getSoftDeadline

      public double getSoftDeadline()