Skip to content

Commit

Permalink
Add SBK Banner.
Browse files Browse the repository at this point in the history
Signed-off-by: Keshava Munegowda <[email protected]>
  • Loading branch information
kmgowda committed May 2, 2020
1 parent 10bba67 commit c0a05b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sbk-api/src/main/java/io/sbk/main/SbkMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.composite.CompositeMeterRegistry;
import io.micrometer.core.instrument.util.IOUtils;
import io.micrometer.jmx.JmxConfig;
import io.micrometer.jmx.JmxMeterRegistry;
import io.sbk.api.Benchmark;
Expand Down Expand Up @@ -49,6 +50,7 @@
*/
public class SbkMain {
final static String CONFIGFILE = "sbk.properties";
final static String BANNERFILE = "banner.txt";

public static void main(final String[] args) {
long startTime = System.currentTimeMillis();
Expand All @@ -64,6 +66,9 @@ public static void main(final String[] args) {
Config config = null;
CompletableFuture<Void> ret = null;

SbkLogger.log.info(IOUtils.toString(SbkMain.class.getClassLoader().getResourceAsStream(BANNERFILE)));
SbkLogger.log.info(Config.NAME.toUpperCase() +" version: "+version);

final ObjectMapper mapper = new ObjectMapper(new JavaPropsFactory())
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

Expand All @@ -75,7 +80,6 @@ public static void main(final String[] args) {
System.exit(0);
}

SbkLogger.log.info(config.NAME.toUpperCase() +" version: "+version);
try {
commandline = new DefaultParser().parse(new Options()
.addOption("class", true, "Benchmark Class"),
Expand Down
7 changes: 7 additions & 0 deletions sbk-api/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

_____ ____ _ __
/ ____| | _ \ | | / /
| (___ | |_) | | |/ /
\___ \ | _ < | <
____) | | |_) | | |\ \
|_____/ |____/ |_| \_\

0 comments on commit c0a05b0

Please sign in to comment.