Package jline.lang.sections
Class PreemptiveServer
java.lang.Object
jline.lang.Element
jline.lang.NetworkElement
jline.lang.sections.Section
jline.lang.sections.ServiceSection
jline.lang.sections.PreemptiveServer
- All Implemented Interfaces:
Serializable,Copyable
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.
- See Also:
-
Field Summary
Fields inherited from class jline.lang.sections.ServiceSection
numberOfServers, serviceProcesses -
Constructor Summary
ConstructorsConstructorDescriptionPreemptiveServer(List<JobClass> customerClasses) Creates a new preemptive server section for the specified customer classes. -
Method Summary
Methods inherited from class jline.lang.sections.ServiceSection
containsJobClass, getServiceDistribution, getServiceProcess, removeServiceProcess, setServiceProcessesMethods inherited from class jline.lang.sections.Section
getClassName
-
Constructor Details
-
PreemptiveServer
Creates a new preemptive server section for the specified customer classes. Initializes with a single server that can preempt lower priority jobs.- Parameters:
customerClasses- the list of customer classes with different priorities
-