A piece of code that is supposed to be run on a separate process should be put into run()
method
of any user-defined class that extends RunnableWrapper
.
To retrieve data from a process, a custom class extending ProcessData
class should be made.
Two examples of dummy "loads" are:
- a code that finds sqrt(2) in a very naive way, see ./loads/Sqrt.java
- a code that sends HTTP GET requests to an open weather server and calculates an average response delay for many requests, see ./loads/Pinger.java
File ./com/company/RunSample.java contains examples of:
a. Single process started directly.
b. Pool of new processes started on a local node.
See the comments in the code as well as [Concepts].