-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCmd.java
More file actions
27 lines (24 loc) · 828 Bytes
/
Cmd.java
File metadata and controls
27 lines (24 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package integration.localnet;
import bootstrap.Bootstrap;
/**
* The main runner class for orchestrating the building of the HTTP Server, Prometheus, and Grafana
* components of the TestNet. This class also utilizes the Java Docker API in order to containerize
* the three components and build up the necessary supporting infrastructure.
*/
public class Cmd {
private static final short NODE_COUNT = 5;
/**
* The main function.
*
* @param args standard java parameters.
*/
public static void main(String[] args) {
Bootstrap bootstrap = new Bootstrap(NODE_COUNT);
LocalTestNet testNet = new LocalTestNet(bootstrap.build());
try {
testNet.runLocalTestNet();
} catch (IllegalStateException e) {
throw new RuntimeException("could not initialize and run local net", e);
}
}
}