diff --git a/src/main/java/com/github/vspiewak/loggenerator/InputParameters.java b/src/main/java/com/github/vspiewak/loggenerator/InputParameters.java index eab49cb..e075780 100644 --- a/src/main/java/com/github/vspiewak/loggenerator/InputParameters.java +++ b/src/main/java/com/github/vspiewak/loggenerator/InputParameters.java @@ -4,10 +4,10 @@ import com.beust.jcommander.Parameter; public class InputParameters { - @Parameter(names = { "-log", "-n" }, description = "Number of logs to generate") + @Parameter(names = {"-logs", "-n"}, description = "Number of logs to generate") public Long logs = 10L; - @Parameter(names = { "-threads", "-t" }, description = "Number of threads to use") + @Parameter(names = {"-threads", "-t"}, description = "Number of threads to use") public Integer threads = 2; @Parameter(names = "--help", help = true) diff --git a/src/main/java/com/github/vspiewak/loggenerator/LogExecutor.java b/src/main/java/com/github/vspiewak/loggenerator/LogExecutor.java index 8e51f4f..2e74e41 100644 --- a/src/main/java/com/github/vspiewak/loggenerator/LogExecutor.java +++ b/src/main/java/com/github/vspiewak/loggenerator/LogExecutor.java @@ -20,7 +20,7 @@ public class LogExecutor { } public LogExecutor addAll(Iterable> tasks) { - for(Callable task : tasks) { + for (Callable task : tasks) { executor.submit(task); } return this; diff --git a/src/main/java/com/github/vspiewak/loggenerator/SearchTask.java b/src/main/java/com/github/vspiewak/loggenerator/SearchTask.java index d21b226..fd7008c 100644 --- a/src/main/java/com/github/vspiewak/loggenerator/SearchTask.java +++ b/src/main/java/com/github/vspiewak/loggenerator/SearchTask.java @@ -10,14 +10,14 @@ public class SearchTask implements Callable { private static final Logger log = LoggerFactory.getLogger(SearchTask.class); private final long id; - public SearchTask(final long id) { - this.id = id; - } + public SearchTask(final long id) { + this.id = id; + } - @Override - public Long call() throws Exception { - log.info("{} - {}", id, Utils.getRandomIP()); - return id; - } + @Override + public Long call() throws Exception { + log.info("{} - {}", id, Utils.getRandomIP()); + return id; + } } diff --git a/src/main/java/com/github/vspiewak/loggenerator/SellTask.java b/src/main/java/com/github/vspiewak/loggenerator/SellTask.java index ab6c66d..0129e9d 100644 --- a/src/main/java/com/github/vspiewak/loggenerator/SellTask.java +++ b/src/main/java/com/github/vspiewak/loggenerator/SellTask.java @@ -10,14 +10,14 @@ public class SellTask implements Callable { private static final Logger log = LoggerFactory.getLogger(SellTask.class); private final long id; - public SellTask(final long id) { - this.id = id; - } + public SellTask(final long id) { + this.id = id; + } - @Override - public Long call() throws Exception { - log.info("{} - {}", id, Utils.getRandomIP()); - return id; - } + @Override + public Long call() throws Exception { + log.info("{} - {}", id, Utils.getRandomIP()); + return id; + } }