- get(ConstraintEvaluator) - Static method in class com.netflix.fenzo.AsSoftConstraint
-
- getAllCurrentlyAssignedTasks() - Method in interface com.netflix.fenzo.TaskTrackerState
-
Get a map of all tasks currently assigned during a scheduling trial, but not running yet.
- getAllCurrentOffers() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Get all offers for the VM that represent the available resources.
- getAllRunningTasks() - Method in interface com.netflix.fenzo.TaskTrackerState
-
Get a map of all running tasks.
- getAllTasks() - Method in interface com.netflix.fenzo.queues.InternalTaskQueue
-
Get all of the tasks in the queue.
- getAllTasks() - Method in class com.netflix.fenzo.queues.tiered.TieredQueue
-
- getAllTasks() - Method in interface com.netflix.fenzo.queues.UsageTrackedQueue
-
Get list of all tasks grouped by their state.
- getAsking() - Method in class com.netflix.fenzo.AssignmentFailure
-
Returns the quantity of this target resource the task was requesting.
- getAssignedPorts() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Returns a list of port numbers corresponding to the ports the task was assigned on the host.
- getAssignedResources() - Method in interface com.netflix.fenzo.TaskRequest
-
- getAssignmentFailure() - Method in class com.netflix.fenzo.queues.Assignable
-
- getAttributeMap() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getAttributeMap() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the map of Mesos attributes associated with this lease (offer).
- getAttrName() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.ConsumeResult
-
- getAutoScaleRules() - Method in class com.netflix.fenzo.TaskScheduler
-
Get the autoscale rules currently registered with the scheduler.
- getAvailable() - Method in class com.netflix.fenzo.AssignmentFailure
-
Returns the quantity of this resource that the target has free to be assigned to a new task or tasks.
- getBeg() - Method in class com.netflix.fenzo.VirtualMachineLease.Range
-
Get the beginning value of the range.
- getBucketName() - Method in interface com.netflix.fenzo.queues.QAttributes
-
Get the queue's bucket name.
- getBucketName() - Method in class com.netflix.fenzo.queues.QAttributes.QAttributesAdaptor
-
- getConstraintFailure() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Get the
ConstraintFailure
corresponding to the task constraint that the host failed to meet.
- getConsumedNamedResources() - Method in class com.netflix.fenzo.TaskRequest.AssignedResources
-
- getCoolDownSecs() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the amount of time to wait from the beginning of a scale up or scale down operation before
initiating another autoscale operation (a.k.a the "cool down" time).
- getCores() - Method in interface com.netflix.fenzo.sla.ResAllocs
-
Limits the number of cores the task group can use to the number returned from this method.
- getCpus() - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getCPUs() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the number of CPUs requested by the task.
- getCurrAvailableResources() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Returns a VM lease object representing totals of resources from all available leases on this host for the
current scheduling run.
- getCustomNamedResources() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the list of custom named resource sets requested by the task.
- getDisabledUntil() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Returns the time until which the given host remains disabled.
- getDisk() - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getDisk() - Method in interface com.netflix.fenzo.sla.ResAllocs
-
Limits the amount of disk space the task group can use to the number of MB returned from this method.
- getDisk() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the disk space in MBs requested by the task.
- getDominantResUsageFrom(ResAllocs) - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getDominantUsageShare() - Method in interface com.netflix.fenzo.queues.UsageTrackedQueue
-
Get the usage of the dominant resource, expressed as a share of the total known available resources.
- getEnd() - Method in class com.netflix.fenzo.VirtualMachineLease.Range
-
Get the end value of the range.
- getExceptions() - Method in exception com.netflix.fenzo.queues.TaskQueueMultiException
-
- getExceptions() - Method in class com.netflix.fenzo.SchedulingResult
-
- getFailureReason() - Method in class com.netflix.fenzo.ConstraintEvaluator.Result
-
Returns the reason why the target did not satisfy the constraint.
- getFailures() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the unsuccessful task assignment result map.
- getFailures() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Get a list of
AssignmentFailure
s corresponding to the reasons why the assignment of this task to
the host did not succeed because of insufficient resources.
- getFitness() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.ConsumeResult
-
- getFitness() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Get the result of the fitness calculation applied to this host for this task.
- getHardConstraints() - Method in interface com.netflix.fenzo.TaskRequest
-
Get a list of the hard constraints the task requires.
- getHostname() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Returns the name of the host machine to which this task was attempted to be assigned.
- getHostname() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Get the name of the host on which the virtual machine is running.
- getHostname() - Method in class com.netflix.fenzo.VMAssignmentResult
-
Get the name of the host whose assignment results are available.
- getHosts() - Method in class com.netflix.fenzo.ScaleDownAction
-
Get the hostnames to unqueueTask from the cluster during the scale down action.
- getId() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getId() - Method in class com.netflix.fenzo.queues.QAttributes.TaskIdAttributesTuple
-
- getId() - Method in interface com.netflix.fenzo.TaskRequest
-
Get an identifier for this task request.
- getId() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the ID of the lease (offer ID).
- getIdleVMsCount() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the number of hosts (virtual machines) that are idle at the end of this scheduling trial.
- getIndex() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.ConsumeResult
-
- getIndex() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.PreferentialNamedConsumableResource
-
- getLeasesAdded() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the number of leases (resource offers) added during this scheduling trial.
- getLeasesRejected() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the number of leases (resource offers) rejected during this scheduling trial.
- getLeasesUsed() - Method in class com.netflix.fenzo.VMAssignmentResult
-
Get the list of leases (resource offers) used in creating the resource assignments for tasks.
- getLimit() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.PreferentialNamedConsumableResource
-
- getMaxIdleHostsToKeep() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the maximum number of hosts, in the autoscale group this rule applies to, that Fenzo is to keep
in idle readiness.
- getMaxSize() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the maximum number of hosts to expect in the autoscale group for this rule.
- getMemory() - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getMemory() - Method in interface com.netflix.fenzo.sla.ResAllocs
-
Limits the amount of memory the task group can use to the number of MB returned from this method
- getMemory() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the amount of memory in MBs requested by the task.
- getMessage() - Method in class com.netflix.fenzo.AssignmentFailure
-
Returns text message associated with this assignment failure.
- getMinIdleHostsToKeep() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the minimum number of hosts, in the autoscale group this rule applies to, that Fenzo is to keep
in idle readiness.
- getMinSize() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the minimum number of hosts to expect in the autoscale group for this rule.
- getName() - Method in interface com.netflix.fenzo.ConstraintEvaluator
-
Returns the name of the constraint evaluator.
- getName() - Method in class com.netflix.fenzo.ConstraintFailure
-
Returns the name of the constraint that was violated by the target.
- getName() - Method in class com.netflix.fenzo.DefaultFitnessCalculator
-
Returns the name of this fitness calculator (the class name).
- getName() - Method in class com.netflix.fenzo.plugins.BalancedHostAttrConstraint
-
Returns the name of the balanced host attribute constraint, which takes the form of the name of the
class (or subclass) followed by a dash followed by the value of hostAttributeName
as it was set
when the constraint object was created.
- getName() - Method in class com.netflix.fenzo.plugins.ExclusiveHostConstraint
-
Returns the name of this class as a String.
- getName() - Method in class com.netflix.fenzo.plugins.HostAttrValueConstraint
-
Returns the name of this constraint as a String, in the form of the class name followed by a dash
followed by the value of hostAttributeName
as it was set when this object was constructed.
- getName() - Method in class com.netflix.fenzo.plugins.UniqueHostAttrConstraint
-
Returns the name of this constraint evaluator as a String in the form of the name of this class followed
by a dash followed by the host attribute name that this evaluator uses to uniquely identify the host.
- getName() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet
-
- getName() - Method in interface com.netflix.fenzo.VMTaskFitnessCalculator
-
Get the name of this fitness calculator.
- getNetworkMbps() - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getNetworkMbps() - Method in interface com.netflix.fenzo.sla.ResAllocs
-
Limits the amount of bandwidth the task group can use to the number of megabits per second returned from
this method.
- getNetworkMbps() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the network bandwidth in Mbps requested by the task.
- getNumAllocations() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the number of resource allocations performed during this scheduling trial.
- getNumSets() - Method in class com.netflix.fenzo.TaskRequest.NamedResourceSetRequest
-
- getNumSubResources() - Method in class com.netflix.fenzo.TaskRequest.NamedResourceSetRequest
-
- getOffer() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getOffer() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the Mesos resource offer associated with this lease.
- getOfferedTime() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getOfferedTime() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the time that this lease (offer) was obtained.
- getPorts() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the number of ports requested by the task.
- getqAttributes() - Method in class com.netflix.fenzo.queues.QAttributes.TaskIdAttributesTuple
-
- getQAttributes() - Method in interface com.netflix.fenzo.queues.QueuableTask
-
Get the attributes for the queue that the task belongs to.
- getReason() - Method in class com.netflix.fenzo.ConstraintFailure
-
Returns a description of how the constraint was violated by the target.
- getRequest() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Returns the
TaskRequest
corresponding to the task whose assignment result this is.
- getResAllocs() - Method in class com.netflix.fenzo.TaskScheduler
-
Get the current mapping of resource allocations registered with the scheduler.
- getResAllocsWrapper() - Method in class com.netflix.fenzo.queues.UsageTrackedQueue.ResUsage
-
- getResName() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.ConsumeResult
-
- getResName() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.PreferentialNamedConsumableResource
-
- getResName() - Method in class com.netflix.fenzo.TaskRequest.NamedResourceSetRequest
-
- getResource() - Method in class com.netflix.fenzo.AssignmentFailure
-
Returns which target resource this assignment failure is referring to.
- getResourceSets() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Get a map of resource sets of the virtual machine.
- getResourceStatus() - Method in class com.netflix.fenzo.TaskScheduler
-
Returns the state of resources on all known hosts.
- getResultMap() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the successful task assignment result map.
- getResValue() - Method in class com.netflix.fenzo.TaskRequest.NamedResourceSetRequest
-
- getrSets() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
- getRuleName() - Method in interface com.netflix.fenzo.AutoScaleAction
-
Get the name of the auto scale rule that is triggering the autoscale action.
- getRuleName() - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns the value, for the group of hosts that this rule applies to, of the host attribute that you have
designated to differentiate autoscale groups.
- getRuleName() - Method in class com.netflix.fenzo.ScaleDownAction
-
Get the name of the autoscale rule that triggered the scale down action.
- getRuleName() - Method in class com.netflix.fenzo.ScaleUpAction
-
Returns the name of the autoscale rule that triggered the scale up action.
- getRunningTasks() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Get a list of those tasks that had already been assigned to this host before the current scheduling run
started.
- getRuntime() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the time elapsed, in milliseconds, during this scheduling trial.
- getScalarRequests() - Method in interface com.netflix.fenzo.TaskRequest
-
Get the scalar resources being requested by the task.
- getScalarValue(String) - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getScalarValue(String) - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the value of the scalar resource for the given name
.
- getScalarValues() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getScalarValues() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get a map of all of the scalar resources with resource names as the key and resource value as the value.
- getScaleUpCount() - Method in class com.netflix.fenzo.ScaleUpAction
-
Returns the number of hosts to add to the cluster during this scale up action.
- getShortfallAdjustedAgents(int) - Method in interface com.netflix.fenzo.AutoScaleRule
-
Returns adjusted number of agents.
- getSoftConstraints() - Method in interface com.netflix.fenzo.TaskRequest
-
Get a list of the soft constraints the task requests.
- getTask() - Method in class com.netflix.fenzo.queues.Assignable
-
- getTaskAssigner() - Method in class com.netflix.fenzo.TaskScheduler
-
Get the task assigner action.
- getTaskGroupName() - Method in interface com.netflix.fenzo.sla.ResAllocs
-
- getTaskId() - Method in class com.netflix.fenzo.TaskAssignmentResult
-
Returns the string identifier of the task request for the task whose assignment result this is.
- getTaskRequest() - Method in class com.netflix.fenzo.TaskTracker.ActiveTask
-
Get the task request object associated with the active task.
- getTasksAssigned() - Method in class com.netflix.fenzo.VMAssignmentResult
-
Get the set of tasks that are assigned resources from this host.
- getTasksCurrentlyAssigned() - Method in interface com.netflix.fenzo.VirtualMachineCurrentState
-
Get list of task assignment results for this host so far in the current scheduling run.
- getTaskTracker() - Method in class com.netflix.fenzo.TaskScheduler
-
- getTaskUnAssigner() - Method in class com.netflix.fenzo.TaskScheduler
-
Get the task unassigner action.
- getTierNumber() - Method in interface com.netflix.fenzo.queues.QAttributes
-
Get the tier number for the queue.
- getTierNumber() - Method in class com.netflix.fenzo.queues.QAttributes.QAttributesAdaptor
-
- getTotalLease() - Method in class com.netflix.fenzo.TaskTracker.ActiveTask
-
Get the totals resource offers associated with the host on which the task is active.
- getTotalVMsCount() - Method in class com.netflix.fenzo.SchedulingResult
-
Get the total number of hosts (virtual machines) known during this scheduling trial.
- getType() - Method in interface com.netflix.fenzo.AutoScaleAction
-
Returns an indication of whether the autoscale action is to scale up or to scale down.
- getType() - Method in class com.netflix.fenzo.ScaleDownAction
-
Returns an indication of whether the autoscale action is to scale up or to scale down - in this case,
down.
- getType() - Method in class com.netflix.fenzo.ScaleUpAction
-
Returns an indication of whether the autoscale action is to scale up or to scale down - in this case, up.
- getUsageBy() - Method in class com.netflix.fenzo.PreferentialNamedConsumableResourceSet.PreferentialNamedConsumableResource
-
- getUsageTracker() - Method in interface com.netflix.fenzo.queues.InternalTaskQueue
-
Get the usage tracker, if any.
- getUsageTracker() - Method in class com.netflix.fenzo.queues.tiered.TieredQueue
-
This method provides a bridge to the usage tracked queues contained within the tiered queues implementation.
- getUsed() - Method in class com.netflix.fenzo.AssignmentFailure
-
Returns the quantity of this resource that is already assigned on the target.
- getVmCurrentStates() - Method in class com.netflix.fenzo.TaskScheduler
-
Returns the current state of all known hosts.
- getVMID() - Method in class com.netflix.fenzo.plugins.VMLeaseObject
-
- getVMID() - Method in interface com.netflix.fenzo.VirtualMachineLease
-
Get the ID of the host (mesos slave ID).
- withAutoScaleByAttributeName(String) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to indicate which host attribute you want your task scheduler to use in order to
distinguish which hosts are in which autoscaling groups.
- withAutoScaleDownBalancedByAttributeName(String) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to tell the autoscaler to try to maintain a balance of host varieties when it scales
down a cluster.
- withAutoScalerCallback(Action1<AutoScaleAction>) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
- withAutoScalerMapHostnameAttributeName(String) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Use the given host attribute name to determine the alternate hostname of virtual machine to use as an
argument for an autoscaling action.
- withAutoScaleRule(AutoScaleRule) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Adds an autoscaling rule that governs the behavior by which this scheduler will autoscale hosts of a
certain type.
- withCores(double) - Method in class com.netflix.fenzo.sla.ResAllocsBuilder
-
Limits the number of cores the task group can use to the number you pass in to this method.
- withDelayAutoscaleDownBySecs(long) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Delay the autoscale down actions to reduce unnecessary actions due to short periods of breach of scale down
policy rules.
- withDelayAutoscaleUpBySecs(long) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Delay the autoscale up actions to reduce unnecessary actions due to short periods of breach of scale up
policy rules.
- withDisk(double) - Method in class com.netflix.fenzo.sla.ResAllocsBuilder
-
Limits the amount of disk space the task group can use to the number of MB you pass in to this method.
- withFitnessCalculator(VMTaskFitnessCalculator) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to add a fitness calculator that your scheduler will use to compute the suitability
of a particular host for a particular task.
- withFitnessGoodEnoughFunction(Func1<Double, Boolean>) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Use the given function to determine if the fitness of a host for a task is good enough that the task
scheduler should stop looking for a more fit host.
- withInitialResAllocs(Map<String, ResAllocs>) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to set the initial limitations on how many resources will be available to each task
group.
- withLeaseOfferExpirySecs(long) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to set the expiration time for resource offers.
- withLeaseRejectAction(Action1<VirtualMachineLease>) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
(Required) Call this method to establish a method that your task scheduler will call to notify you
that it has rejected a resource offer.
- withLoopIntervalMillis(long) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given milli seconds as minimum delay between two consecutive scheduling iterations.
- withMaxDelayMillis(long) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given milli seconds as the maximum delay between two consecutive scheduling iterations.
- withMaxOffersToReject(int) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Call this method to set the maximum number of offers to reject within a time period equal to lease expiry
seconds, set with leaseOfferExpirySecs()
.
- withMemory(double) - Method in class com.netflix.fenzo.sla.ResAllocsBuilder
-
Limits the amount of memory the task group can use to the number of MB you pass in to this method.
- withNetworkMbps(double) - Method in class com.netflix.fenzo.sla.ResAllocsBuilder
-
Limits the amount of bandwidth the task group can use to the number of megabits per second you pass in to
this method.
- withPreSchedulingLoopHook(Action0) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given action to call before starting a new scheduling iteration.
- withRejectAllExpiredOffers() - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Indicate that all offers older than the set expiry time must be rejected.
- withSchedulingResultCallback(Action1<SchedulingResult>) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given callback to give scheduling results to at the end of each scheduling iteration.
- withSingleOfferPerVM(boolean) - Method in class com.netflix.fenzo.TaskScheduler.Builder
-
Indicate that the cluster receives resource offers only once per VM (host).
- withTaskQuue(TaskQueue) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given instance of
TaskQueue
from which to get tasks to assign
resource to.
- withTaskScheduler(TaskScheduler) - Method in class com.netflix.fenzo.TaskSchedulingService.Builder
-
Use the given instance of
TaskScheduler
for scheduling resources.