|
27 | 27 | import org.graylog2.plugin.Message; |
28 | 28 | import org.graylog2.plugin.configuration.Configuration; |
29 | 29 | import org.graylog2.plugin.configuration.ConfigurationRequest; |
| 30 | +import org.graylog2.plugin.configuration.fields.ConfigurationField; |
30 | 31 | import org.graylog2.plugin.configuration.fields.NumberField; |
31 | 32 | import org.graylog2.plugin.configuration.fields.TextField; |
32 | 33 | import org.graylog2.plugin.inputs.annotations.Codec; |
@@ -119,9 +120,9 @@ public void overrideDefaultValues(@Nonnull ConfigurationRequest cr) { |
119 | 120 | public ConfigurationRequest getRequestedConfiguration() { |
120 | 121 | final ConfigurationRequest configuration = super.getRequestedConfiguration(); |
121 | 122 |
|
122 | | - configuration.addField(new NumberField(CK_CACHE_SIZE, "Maximum cache size", DEFAULT_CACHE_SIZE, "Maximum number of elements in the NetFlow9 template cache")); |
123 | | - configuration.addField(new TextField(CK_CACHE_PATH, "Cache file path", DEFAULT_CACHE_PATH, "Path to the file persisting the the NetFlow9 template cache")); |
124 | | - configuration.addField(new NumberField(CK_CACHE_SAVE_INTERVAL, "Cache save interval (seconds)", DEFAULT_CACHE_SAVE_INTERVAL, "Interval in seconds for persisting the cache contents")); |
| 123 | + configuration.addField(new NumberField(CK_CACHE_SIZE, "Maximum cache size", DEFAULT_CACHE_SIZE, "Maximum number of elements in the NetFlow9 template cache", ConfigurationField.Optional.OPTIONAL)); |
| 124 | + configuration.addField(new TextField(CK_CACHE_PATH, "Cache file path", DEFAULT_CACHE_PATH, "Path to the file persisting the the NetFlow9 template cache", ConfigurationField.Optional.OPTIONAL)); |
| 125 | + configuration.addField(new NumberField(CK_CACHE_SAVE_INTERVAL, "Cache save interval (seconds)", DEFAULT_CACHE_SAVE_INTERVAL, "Interval in seconds for persisting the cache contents", ConfigurationField.Optional.OPTIONAL)); |
125 | 126 |
|
126 | 127 | return configuration; |
127 | 128 | } |
|
0 commit comments