Overview
Briareus is a library set dedicated to start JVM instances in different clustered environments. It's divided into separate artifacts for specific environments and common api module. Common api give us ability to writing code reusable across implementations agnostic to cluster details. Requires Java 8 or later.
Three main concepts are:
- Remote JVM options - describes specification for starting your application.
- Remote JVM process - similar to
java.lang.Process
gives you ability to start or stop processes. - Context - blackbox that does the dark magic.
Please refer to Api guide for more details.
And starting new JVM instance is really simple.
Why so weird declaration for context? Well, different context may expose implementations of RemoteJvmProcess with
additional functionality. Thanks to Java use site variance it's almost impossible to
build nice api exposing methods that returns CompletionStage
.
As a rule of thumb use PECS mantra or specific context interface.