Class PreemptiveServer

  • All Implemented Interfaces:
    java.io.Serializable , jline.lang.Copyable

    
    public class PreemptiveServer
    extends ServiceSection implements Serializable
                        

    A preemptive service section that can interrupt lower priority jobs to serve higher priority jobs.

    This server implements preemptive scheduling where an arriving high-priority job can interrupt the service of a lower-priority job currently being served. The interrupted job may resume service later depending on the preemption policy.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PreemptiveServer(List<JobClass> customerClasses) Creates a new preemptive server section for the specified customer classes.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class jline.lang.sections.Section

        getClassName
      • Methods inherited from class jline.lang.sections.ServiceSection

        containsJobClass, getServiceDistribution, getServiceProcess, removeServiceProcess, setServiceProcesses
      • Methods inherited from class jline.lang.Element

        getName, setName
      • Methods inherited from class jline.lang.Copyable

        copy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreemptiveServer

        PreemptiveServer(List<JobClass> customerClasses)
        Creates a new preemptive server section for the specified customer classes.
        Parameters:
        customerClasses - the list of customer classes with different priorities
    • Method Detail