public interface TaskSchedulerBuilder
Note that the Fenzo-provided TaskScheduler.Builder
cannot be mocked, which motivates
this interface.
Modifier and Type | Method and Description |
---|---|
com.netflix.fenzo.TaskScheduler |
build()
Build a Fenzo task scheduler.
|
TaskSchedulerBuilder |
withLeaseOfferExpirySecs(long leaseOfferExpirySecs)
Specify the expiration time for unused resource offers.
|
TaskSchedulerBuilder |
withLeaseRejectAction(com.netflix.fenzo.functions.Action1<com.netflix.fenzo.VirtualMachineLease> action)
Set the callback action for rejecting a lease.
|
TaskSchedulerBuilder |
withRejectAllExpiredOffers()
Set up TaskScheduler to reject all offers on expiry.
|
TaskSchedulerBuilder withLeaseRejectAction(com.netflix.fenzo.functions.Action1<com.netflix.fenzo.VirtualMachineLease> action)
TaskSchedulerBuilder withRejectAllExpiredOffers()
TaskSchedulerBuilder withLeaseOfferExpirySecs(long leaseOfferExpirySecs)
com.netflix.fenzo.TaskScheduler build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.