This project contains base classes for creating new services for the Monto Broker.
- Take a look at existing language services to see how to setup a new Gradle project and reference this repository.
- Create a new class that extends the class MontoService for a new service.
- Override
void onRequest(Request request)
which should handle source and product messages sent from the broker and send a ProductMessage to the broker usingvoid sendProductMessage(…)
. - Optionally, override
void onConfigurationMessage(Configuration message)
which should handle configuration messages and set the proper configurations in the service.
You will need to create a MainClass to register your services at the broker. Examples for MainClasses and services can be found in the existing services, namely: