Package jline.lang.sections
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected doublenumberOfServersprotected Map<JobClass, ServiceBinding>serviceProcessespublic StringclassNameprotected Stringname
-
Constructor Summary
Constructors Constructor Description PreemptiveServer(List<JobClass> customerClasses)Creates a new preemptive server section for the specified customer classes.
-
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
-
-