This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scheduler plugin functionality (#5421)
- Loading branch information
1 parent
df8ef75
commit 3e61a17
Showing
4 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
plugin-interface/src/main/scala/mesosphere/marathon/plugin/scheduler/SchedulerPlugin.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mesosphere.marathon | ||
package plugin.scheduler | ||
|
||
import mesosphere.marathon.plugin.RunSpec | ||
import mesosphere.marathon.plugin.plugin.Plugin | ||
import org.apache.mesos.Protos.Offer | ||
|
||
/** | ||
* Allows to use external logic to decline offers. | ||
*/ | ||
trait SchedulerPlugin extends Plugin { | ||
|
||
/** | ||
* @return true if offer matches | ||
*/ | ||
def isMatch(offer: Offer, runSpec: RunSpec): Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters