Class Cli

java.lang.Object
org.acemq.workloads.cli.Cli

public final class Cli extends Object
java -jar acemq-workload.jar -f workload.yaml

Exit codes are the interface

More important than the report format, because a pipeline reads the exit code and a person reads the report. The three failure modes are genuinely different and a build that treats them alike will retry the one that can never succeed:

Exit codes
0every workload passed
1a run was sound and missed an objective — the broker's answer is "no"
2a run was invalid; nothing was measured, retrying as-is will produce the same non-answer
3the workload file is wrong — including when it is the broker that says so, by refusing a topology that contradicts what it already has
4the broker could not be reached, or the run failed outright

A broker that answers and refuses is deliberately not 4. See BrokerFailure.

Everything this class prints goes out through Redaction, so no message can leak a password by taking a route nobody remembered to redact.

  • Method Details

    • main

      public static void main(String[] args)