in src/main/java/com/googlesource/gerrit/plugins/kinesis/InitConfig.java [68:115]
public void run() throws Exception {
ui.header(String.format("%s plugin", pluginName));
pluginSection.string("AWS region (leave blank for default provider chain)", REGION_FIELD, null);
pluginSection.string("AWS endpoint (dev or testing, not for production)", ENDPOINT_FIELD, null);
boolean sendStreamEvents = ui.yesno(DEFAULT_SEND_STREAM_EVENTS, "Should send stream events?");
pluginSection.set(SEND_STREAM_EVENTS_FIELD, Boolean.toString(sendStreamEvents));
if (sendStreamEvents) {
pluginSection.string(
"Stream events topic", STREAM_EVENTS_TOPIC_FIELD, DEFAULT_STREAM_EVENTS_TOPIC);
}
pluginSection.string(
"Number of subscribers", NUMBER_OF_SUBSCRIBERS_FIELD, DEFAULT_NUMBER_OF_SUBSCRIBERS);
pluginSection.string("Application name", APPLICATION_NAME_FIELD, pluginName);
pluginSection.string("Initial position", INITIAL_POSITION_FIELD, DEFAULT_INITIAL_POSITION);
pluginSection.string(
"Polling Interval (ms)",
POLLING_INTERVAL_MS_FIELD,
Long.toString(DEFAULT_POLLING_INTERVAL_MS));
pluginSection.string(
"Maximum number of record to fetch",
MAX_RECORDS_FIELD,
Integer.toString(DEFAULT_MAX_RECORDS));
pluginSection.string(
"Maximum total time waiting for a publish result (ms)",
PUBLISH_SINGLE_REQUEST_TIMEOUT_MS_FIELD,
Long.toString(DEFAULT_PUBLISH_SINGLE_REQUEST_TIMEOUT_MS));
pluginSection.string(
"Maximum total time waiting for publishing, including retries",
PUBLISH_TIMEOUT_MS_FIELD,
Long.toString(DEFAULT_PUBLISH_TIMEOUT_MS));
pluginSection.string(
"Maximum total time waiting when shutting down (ms)",
SHUTDOWN_MS_FIELD,
Long.toString(DEFAULT_SHUTDOWN_TIMEOUT_MS));
pluginSection.string(
"Which level AWS libraries should log at",
AWS_LIB_LOG_LEVEL_FIELD,
DEFAULT_AWS_LIB_LOG_LEVEL.toString());
boolean sendAsync = ui.yesno(DEFAULT_SEND_ASYNC, "Should send messages asynchronously?");
pluginSection.set(SEND_ASYNC_FIELD, Boolean.toString(sendAsync));
}