@@ -65,14 +65,14 @@ public static enum ParserMode{
65
65
private int port ;
66
66
67
67
/**
68
- * Default bulk level .
68
+ * Default number of bulk requests .
69
69
*/
70
- public static final int DEFAULT_BULK_LEVEL = 1000 ;
70
+ public static final int DEFAULT_BULK_REQUESTS = 1000 ;
71
71
72
72
/**
73
73
* Num of bulk requests.
74
74
*/
75
- private int bulkLevel ;
75
+ private int bulkRequests ;
76
76
77
77
/**
78
78
* Default timezone.
@@ -111,7 +111,7 @@ public static void printOptions(){
111
111
System .out .println (" --mode <snapshot>: Parser mode. (default: snapshot)" );
112
112
System .out .println (" --host <hostname>: Hostname of Elasticsearch. (default: localhost)" );
113
113
System .out .println (" --port <num>: HTTP port of Elasticsearch. (default: 9200)" );
114
- System .out .println (" --bulk <num>: Number of bulk requests to Elasticsearch. (default: 10 )" );
114
+ System .out .println (" --bulk <num>: Number of bulk requests to Elasticsearch. (default: 1000 )" );
115
115
System .out .println (" --timezone <zone id>: Timezone of SnapShot. (default: System Default)" );
116
116
System .out .println (" --timeout <num>: Timeout in seconds (default: 60)" );
117
117
}
@@ -126,7 +126,7 @@ public Option(String[] args) throws IllegalArgumentException{
126
126
parserMode = DEFAULT_PARSER_MODE ;
127
127
host = DEFAULT_HOST ;
128
128
port = DEFAULT_PORT ;
129
- bulkLevel = DEFAULT_BULK_LEVEL ;
129
+ bulkRequests = DEFAULT_BULK_REQUESTS ;
130
130
zoneId = DEFAULT_TIMEZONE ;
131
131
files = new ArrayList <>();
132
132
timeout = DEFAULT_TIMEOUT ;
@@ -159,7 +159,7 @@ public Option(String[] args) throws IllegalArgumentException{
159
159
break ;
160
160
161
161
case "--bulk" :
162
- bulkLevel = Integer .parseInt (itr .next ());
162
+ bulkRequests = Integer .parseInt (itr .next ());
163
163
break ;
164
164
165
165
case "--timezone" :
@@ -207,11 +207,11 @@ public int getPort() {
207
207
}
208
208
209
209
/**
210
- * Get bulk level .
211
- * @return Bulk level .
210
+ * Get number of bulk requests .
211
+ * @return Number of bulk requests .
212
212
*/
213
- public int getBulkLevel () {
214
- return bulkLevel ;
213
+ public int getBulkRequests () {
214
+ return bulkRequests ;
215
215
}
216
216
217
217
/**
0 commit comments