Skip to content

Commit

Permalink
[MINOR] Metrics: reinstated get/setWhitelist with Deprecated warning (h…
Browse files Browse the repository at this point in the history
…yperledger#1142)

* reinstated get/setWhitelist with Deprecated warning

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
  • Loading branch information
macfarla authored Jun 25, 2020
1 parent f5dd1db commit df647a7
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ public String getPrometheusJob() {
return prometheusJob;
}

// use getHostsAllowlist instead
@Deprecated
Collection<String> getHostsWhitelist() {
return Collections.unmodifiableCollection(this.hostsAllowlist);
}

Collection<String> getHostsAllowlist() {
return Collections.unmodifiableCollection(this.hostsAllowlist);
}
Expand Down Expand Up @@ -241,6 +247,13 @@ public Builder prometheusJob(final String prometheusJob) {
return this;
}

// use hostsAllowlist instead
@Deprecated
public Builder hostsWhitelist(final List<String> hostsAllowlist) {
this.hostsAllowlist = hostsAllowlist;
return this;
}

public Builder hostsAllowlist(final List<String> hostsAllowlist) {
this.hostsAllowlist = hostsAllowlist;
return this;
Expand Down

0 comments on commit df647a7

Please sign in to comment.