mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
make BundledApps implement primitive interface
This commit is contained in:
@@ -30,11 +30,11 @@ import java.util.List;
|
||||
public class BundledMarkdownExporter implements BundledApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
new BundledMarkdownExporter().appMain(args);
|
||||
new BundledMarkdownExporter().applyAsInt(args);
|
||||
|
||||
}
|
||||
@Override
|
||||
public int appMain(String[] args) {
|
||||
public int applyAsInt(String[] args) {
|
||||
final OptionParser parser = new OptionParser();
|
||||
|
||||
OptionSpec<String> zipfileSpec = parser.accepts("zipfile", "zip file to write to")
|
||||
|
||||
@@ -37,7 +37,7 @@ public class MarkdownExporter implements BundledApp, Runnable {
|
||||
private Set<DocScope> scopeSet;
|
||||
|
||||
public static void main(String[] args) {
|
||||
new MarkdownExporter().appMain(args);
|
||||
new MarkdownExporter().applyAsInt(args);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -48,7 +48,7 @@ public class MarkdownExporter implements BundledApp, Runnable {
|
||||
|
||||
|
||||
@Override
|
||||
public int appMain(String[] args) {
|
||||
public int applyAsInt(String[] args) {
|
||||
final OptionParser parser = new OptionParser();
|
||||
|
||||
OptionSpec<String> basedir = parser.accepts("basedir", "base directory to write to")
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package io.nosqlbench.api.spi;
|
||||
|
||||
public interface BundledApp {
|
||||
int appMain(String[] args);
|
||||
import java.util.function.ToIntFunction;
|
||||
|
||||
public interface BundledApp extends ToIntFunction<String[]> {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user