Skip to content

Commit f897a00

Browse files
committed
Rename diagnostics parameter to telemetry for better clarity
1 parent 46f3749 commit f897a00

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/ConnectorArguments.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class ConnectorArguments extends DefaultArguments {
8282
+ "\n";
8383

8484
public static final String OPT_CONNECTOR = "connector";
85-
public static final String OPT_DIAGNOSTICS = "diagnostics";
85+
public static final String OPT_TELEMETRY = "telemetry";
8686
public static final String OPT_DRIVER = "driver";
8787
public static final String OPT_CLASS = "jdbcDriverClass";
8888
public static final String OPT_URI = "url";
@@ -472,9 +472,9 @@ public class ConnectorArguments extends DefaultArguments {
472472
.ofType(Integer.class)
473473
.defaultsTo(OPT_THREAD_POOL_SIZE_DEFAULT);
474474

475-
private final OptionSpec<Boolean> optionDiagnostics =
475+
private final OptionSpec<Boolean> optionTelemetry =
476476
parser
477-
.accepts(OPT_DIAGNOSTICS, "Allows dumper diagnostics to be turned on/off")
477+
.accepts(OPT_TELEMETRY, "Allows dumper telemetry to be turned on/off")
478478
.withOptionalArg()
479479
.ofType(Boolean.class)
480480
.defaultsTo(true);
@@ -1056,8 +1056,8 @@ public List<String> getQueryLogAlternates() {
10561056
return getOptions().valuesOf(optionQueryLogAlternates);
10571057
}
10581058

1059-
public boolean isDiagnosticsOn() {
1060-
return getOptions().valueOf(optionDiagnostics);
1059+
public boolean isTelemetryOn() {
1060+
return getOptions().valueOf(optionTelemetry);
10611061
}
10621062

10631063
public boolean isTestFlag(char c) {
@@ -1227,7 +1227,7 @@ public String toString() {
12271227
.add(OPT_QUERY_LOG_END, getQueryLogEnd())
12281228
.add(OPT_QUERY_LOG_ALTERNATES, getQueryLogAlternates())
12291229
.add(OPT_ASSESSMENT, isAssessment())
1230-
.add(OPT_DIAGNOSTICS, isDiagnosticsOn());
1230+
.add(OPT_TELEMETRY, isTelemetryOn());
12311231
getConnectorProperties().getDefinitionMap().forEach(toStringHelper::add);
12321232
return toStringHelper.toString();
12331233
}

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/MetadataDumper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public MetadataDumper(String... args) throws Exception {
6868
this.connectorArguments = new ConnectorArguments(JsonResponseFile.addResponseFiles(args));
6969
telemetryProcessor =
7070
new TelemetryProcessor(
71-
TelemetryStrategyFactory.createStrategy(connectorArguments.isDiagnosticsOn()));
71+
TelemetryStrategyFactory.createStrategy(connectorArguments.isTelemetryOn()));
7272
if (connectorArguments.saveResponseFile()) {
7373
JsonResponseFile.save(connectorArguments);
7474
}

0 commit comments

Comments
 (0)