Skip to content

Commit

Permalink
Issue #57: Add configuration for attribute history.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk23 committed May 10, 2015
1 parent b95289a commit d23a033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/server/jmxproxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
jmxproxy:
allowed_endpoints:
- 'localhost:1123'
history_size: 20

logging:
level: INFO
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/topsy/jmxproxy/JMXProxyConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public static class JMXProxyApplicationConfiguration {
@JsonProperty
private long accessDuration = 30;

@Min(1)
@JsonProperty
private int historySize = 1;

@JsonProperty
private List<String> allowedEndpoints = new ArrayList<String>();

Expand All @@ -52,6 +56,13 @@ public void setAccessDuration(long accessDuration) {
this.accessDuration = accessDuration;
}

public int getHistorySize() {
return historySize;
}
public void setHistorySize(int historySize) {
this.historySize = historySize;
}

public List<String> getAllowedEndpoints() {
return allowedEndpoints;
}
Expand Down

0 comments on commit d23a033

Please sign in to comment.