Mesomatic provides facilities to interact with Apache Mesos from clojure. It provides a simple and idiomatic facade around the Mesos JAVA API and facilities to help when writing mesos frameworks.
Mesomatic versions match the API version they target, a trailing minor indicates
the patch release number, for instance version 1.0.1-r0
will target mesos 1.0.1
.
Add this to your leiningen profile.
:dependencies [[org.spootnik/mesomatic "1.0.1-r0"]]
If you want to use the core.async facade, you will need to pull it in as well:
:dependencies [[org.spootnik/mesomatic "1.0.1-r0"]
[org.spootnik/mesomatic-async "1.0.1-r0"]]
See example frameworks built with mesomatic at https://github.com/clojusc/mesomatic-examples
mesomatic.types
: contains a facade to and from all protobuf types.mesomatic.scheduler
: facades for schedulers and scheduler-driversmesomatic.executor
: facades for executors and executor-driversmesomatic.async.executor
: produce executor callbacks on a channelmesomatic.async.scheduler
: produce scheduler callbacks on a channelmesomatic.helpers
: utility helpers for cluster decisionsTo go to and from protobuf types, mesomatic uses two simple functions:
pb->data
: yields a data structure from a mesos type, usually in the form of
a record.data->pb
: converts a data structure to a mesos type.->pb
: convert a plain map to a mesos type hinted at by a keywordBy yielding records, mesomatic provides elements which are homomorphic to maps and can easily be converted back to protobuf.
A few cases do not yield records:
Protos.Value.Scalar
) yield doubles.Protos.Value.Set
) yield sets.Protos.Value.Ranges
.This release was built with help from:
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close