pub struct SchedulerConfigurationBuilder { /* private fields */ }
Expand description
Builder for SchedulerConfiguration
.
Implementations§
Source§impl SchedulerConfigurationBuilder
impl SchedulerConfigurationBuilder
Sourcepub fn memory_oversubscription_enabled(&mut self, value: bool) -> &mut Self
pub fn memory_oversubscription_enabled(&mut self, value: bool) -> &mut Self
MemoryOversubscriptionEnabled specifies whether memory oversubscription is enabled
Sourcepub fn reject_job_registration(&mut self, value: bool) -> &mut Self
pub fn reject_job_registration(&mut self, value: bool) -> &mut Self
RejectJobRegistration disables new job registrations except with a management ACL token
Sourcepub fn pause_eval_broker(&mut self, value: bool) -> &mut Self
pub fn pause_eval_broker(&mut self, value: bool) -> &mut Self
PauseEvalBroker stops the leader evaluation broker process from running until the configuration is updated and written to the Nomad servers.
Sourcepub fn create_index(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
CreateIndex/ModifyIndex store the create/modify indexes of this configuration.
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn scheduler_algorithm(&mut self, value: SchedulerAlgorithm) -> &mut Self
pub fn scheduler_algorithm(&mut self, value: SchedulerAlgorithm) -> &mut Self
SchedulerAlgorithm lets you select between available scheduling algorithms.
Sourcepub fn preemption_config(&mut self, value: PreemptionConfig) -> &mut Self
pub fn preemption_config(&mut self, value: PreemptionConfig) -> &mut Self
PreemptionConfig specifies whether to enable eviction of lower priority jobs to place higher priority jobs.
Sourcepub fn build(
&self,
) -> Result<SchedulerConfiguration, SchedulerConfigurationBuilderError>
pub fn build( &self, ) -> Result<SchedulerConfiguration, SchedulerConfigurationBuilderError>
Trait Implementations§
Source§impl Clone for SchedulerConfigurationBuilder
impl Clone for SchedulerConfigurationBuilder
Source§fn clone(&self) -> SchedulerConfigurationBuilder
fn clone(&self) -> SchedulerConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SchedulerConfigurationBuilder
impl RefUnwindSafe for SchedulerConfigurationBuilder
impl Send for SchedulerConfigurationBuilder
impl Sync for SchedulerConfigurationBuilder
impl Unpin for SchedulerConfigurationBuilder
impl UnwindSafe for SchedulerConfigurationBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more