forked from logstash-plugins/logstash-input-http
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow splitting incoming messages with JSON array format Delete PayloadConfig and include configuration in ConversionFactory that provides the correct object instead Add secondary ctor to RegexConversion Use Collections.singletonList in DefaultPayload, RegexConversion as final class Add object equality test for RegexPayload Move tests to the correct package Move config tests from RegexPayloadTest to PayloadConfigTest and add tests for splitType Refactor split() function in Payload Refactor JsonPayload and RegexPayload to encapsulate Payload instead of String Rename Payload's take() function to message() Implement json_array splitting Refactor Payload objects and regex splitting Remove duplicate tests from RegexSplittingTest Apply spotless Move regex splitting tests to their own file, refactor the tests Change config to allow splitting with json_array Refactor regex splitting to a decorator * Fix rebase * Use try-with-resources when loading configuration file * Add object equality tests for ConversionFactory * Split object equality test into two tests in RegexPayloadTest * Added missing equals and hashCode functions, added equality tests * Add missing hashCodes to ConversionFactory and LookupConfig * Remove checking System Properties in ConversionFactory, make end-to-end tests use properties from a resource file * Use rlo_06 for asserting payload correctness, add multithreading test * Use expected message amounts instead of result list size as an expected value in assertions
- Loading branch information
Showing
48 changed files
with
2,132 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/com/teragrep/lsh_01/config/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
logstash-http-input to syslog bridge | ||
Copyright 2024 Suomen Kanuuna Oy | ||
Derivative Work of Elasticsearch | ||
Copyright 2012-2015 Elasticsearch | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
package com.teragrep.lsh_01.config; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
public interface Configuration { | ||
|
||
/** | ||
* Get configuration as an unmodifiable map so that it can't be altered anymore. | ||
* | ||
* @return configuration as an unmodifiable map | ||
* @throws IOException if configuration file is not found | ||
*/ | ||
Map<String, String> deepCopyAsUnmodifiableMap() throws IOException; | ||
} |
Oops, something went wrong.