mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-25 15:28:04 +01:00
Add periodic stats command
// FREEBIE
This commit is contained in:
@@ -85,15 +85,14 @@ public class WhisperServerConfiguration extends Configuration {
|
||||
@JsonProperty
|
||||
private DataSourceFactory database = new DataSourceFactory();
|
||||
|
||||
@JsonProperty
|
||||
private DataSourceFactory read_database;
|
||||
|
||||
@Valid
|
||||
@NotNull
|
||||
@JsonProperty
|
||||
private RateLimitsConfiguration limits = new RateLimitsConfiguration();
|
||||
|
||||
@Valid
|
||||
@JsonProperty
|
||||
private GraphiteConfiguration graphite = new GraphiteConfiguration();
|
||||
|
||||
@Valid
|
||||
@JsonProperty
|
||||
private WebsocketConfiguration websocket = new WebsocketConfiguration();
|
||||
@@ -143,6 +142,10 @@ public class WhisperServerConfiguration extends Configuration {
|
||||
return database;
|
||||
}
|
||||
|
||||
public DataSourceFactory getReadDataSourceFactory() {
|
||||
return read_database;
|
||||
}
|
||||
|
||||
public RateLimitsConfiguration getLimitsConfiguration() {
|
||||
return limits;
|
||||
}
|
||||
@@ -151,10 +154,6 @@ public class WhisperServerConfiguration extends Configuration {
|
||||
return federation;
|
||||
}
|
||||
|
||||
public GraphiteConfiguration getGraphiteConfiguration() {
|
||||
return graphite;
|
||||
}
|
||||
|
||||
public RedPhoneConfiguration getRedphoneConfiguration() {
|
||||
return redphone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user