Class Cache


public class Cache extends ServiceSection
This class implements a class switch.
Author:
Sebatiano Spicuglia, Arif Canakoglu
  • Constructor Details

  • Method Details

    • addJobClassMapping

      public void addJobClassMapping(JobClass jobClass, JobClass hitClass, JobClass missClass)
    • getHitClass

      public JobClass getHitClass(JobClass jobClass)
    • getMissClass

      public JobClass getMissClass(JobClass jobClass)
    • nodeLinked

      public void nodeLinked(NetNode ownerNode) throws NetException
      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:
      ownerNode -
      Throws:
      NetException
    • process

      protected int process(NetMessage message) throws NetException
      Processes the given message received by this node section. This method should be used to reset node section properties depending on the owner node ones when the node section itself is unlinked to the owner node.
      Specified by:
      process in class NodeSection
      Parameters:
      message - the message to process
      Returns:
      the resulting int
      Throws:
      NetException - if the message cannot be processed modified by Yujiao Xiao