Class PSServerPriority


public class PSServerPriority extends Server

Name: PSServer

Description: This class implements a multi-class processor sharing server.

Date: 04/ott/2009 Time: 13.45.37

Version:
1.0
Author:
Bertoli Marco
  • Constructor Details

  • Method Details

    • getDoubleSectionProperty

      public double getDoubleSectionProperty(int id) throws NetException
      Description copied from class: NodeSection
      Gets a double type property of this node. Note that the first 256 identifiers are reserved by NodeSection class.
      Overrides:
      getDoubleSectionProperty in class Server
      Parameters:
      id - Property identifier (see properties constants).
      Returns:
      Property value.
      Throws:
      NetException - if the requested property is not available.
    • getDoubleSectionProperty

      public double getDoubleSectionProperty(int id, JobClass jobClass) throws NetException
      Description copied from class: NodeSection
      Gets a double type property of this node depending on a specified job class. Note that the first 256 identifiers are reserved by NodeSection class.
      Overrides:
      getDoubleSectionProperty in class Server
      Parameters:
      id - Property identifier (see properties constants).
      jobClass - jobClass.
      Returns:
      Property value.
      Throws:
      NetException - if the requested property is not available.
    • 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 Server
      Parameters:
      node - Owner node.
      Throws:
      NetException
    • process

      protected int process(NetMessage message) throws NetException
      Description copied from class: NodeSection
      This method should be overridden to implement a specific NetMessage processor.
      Overrides:
      process in class Server
      Parameters:
      message - message to be processed.
      Returns:
      message processing result.
      Throws:
      NetException