Interface | Description |
---|---|
PlacementRule |
Implements placement constraint logic on an offer, filtering out the Resources which are not
to be used according to the filter logic.
|
RuleFactory |
This interface defines the requirements for a factory which generates
PlacementRule s. |
StringMatcher |
Implements a check against a provided string, determining whether it matches some criteria.
|
TaskTypeConverter |
Given a
TaskInfo , returns a type string for that task. |
Class | Description |
---|---|
AbstractRoundRobinRule |
Base implementation of common round-robin logic.
|
AgentRule |
This rule enforces that a task be placed on a provided agent ID, or enforces that the task avoid
that agent ID, depending on the factory method used.
|
AndRule |
Wrapper for one or more another rules which returns the AND/intersection of those rules.
|
AnyMatcher |
Implements passthrough support for string comparisons by matching any string.
|
AttributeRule |
Requires that the Offer contain an attribute whose string representation matches the provided string.
|
AttributeRuleFactory |
This class generates
AttributeRule s. |
ExactMatcher |
Implements exact string matching support for string comparisons.
|
HostnameRule |
This rule enforces that a task be placed on the specified hostname, or enforces that the task
avoid that hostname.
|
HostnameRuleFactory |
This class generates
HostnameRule s. |
IsLocalRegionRule |
This rule passes if the Offer is on the local region.
|
MarathonConstraintParser |
Implements support for generating
PlacementRule s from Marathon-style constraint strings. |
MaxPerAttributeRule |
Ensures that the given Offer’s attributes each have no more than N instances of tasks of a given task type
running on them.
|
MaxPerHostnameRule |
Ensures that no more than N instances of a task type are running on a given hostname (or hostname
pattern).
|
MaxPerRegionRule |
This rules implements a placement rule for restricting the maximum number of tasks per Region.
|
MaxPerRule |
This interface defines the required methods for generic application of a PlacementRule which forces a
maximum per some key (e.g.
|
MaxPerZoneRule |
This rules implements a placement rule for restricting the maximum number of tasks per Zone.
|
NotRule |
Wrapper for another rule which returns the NOT result: Resources which the wrapped rule removed.
|
OrRule |
Wrapper for one or more another rules which returns the OR/union of those rules.
|
PassthroughRule |
A no-op rule which allows all offers.
|
PlacementUtils |
This class provides Utilities for commonly needed Placement rule scenarios.
|
RegexMatcher |
Implements fuzzy regular expression support for string comparisons.
|
RegionRule |
This rule enforces that a task be placed on the specified region, or enforces that the task
avoid that region.
|
RegionRuleFactory |
This class generates
RegionRule s. |
RoundRobinByAttributeRule |
Implements logic for Marathon's GROUP_BY operator for attribute values.
|
RoundRobinByHostnameRule |
Implements logic for Marathon's GROUP_BY operator for hostnames.
|
RoundRobinByRegionRule | |
RoundRobinByZoneRule | |
StringMatcherRule |
This interface defines the required methods for generic application of a PlacementRule which depends on the presence
of some key (e.g.
|
TaskTypeLabelConverter |
Implementation of
TaskTypeConverter which expects a Label which provides the task type. |
TaskTypeRule |
This rule ensures that the given Offer is colocated with (or never colocated with) the specified
task 'type', whose retrieval from the TaskInfo is defined by the developer's implementation of a
TaskTypeConverter . |
ZoneRule |
This rule enforces that a task be placed on the specified zone, or enforces that the task
avoid that zone.
|
ZoneRuleFactory |
This class generates
ZoneRule s. |
Enum | Description |
---|---|
PlacementField |
This enum differentiates between the different classes of placement keys.
|