-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maxwell Brown <[email protected]>
- Loading branch information
1 parent
a8e41ae
commit 0977a07
Showing
13 changed files
with
119 additions
and
82 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
25 changes: 25 additions & 0 deletions
25
...src/main/java/org/opensearch/dataprepper/plugins/source/loghttp/ConvertConfiguration.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,25 @@ | ||
package org.opensearch.dataprepper.plugins.source.loghttp; | ||
|
||
import org.opensearch.dataprepper.http.HttpServerConfig; | ||
import org.opensearch.dataprepper.plugins.server.ServerConfiguration; | ||
|
||
public class ConvertConfiguration { | ||
|
||
public static ServerConfiguration convertConfiguration(final HttpServerConfig sourceConfig) { | ||
ServerConfiguration serverConfiguration = new ServerConfiguration(); | ||
serverConfiguration.setPath(sourceConfig.getPath()); | ||
serverConfiguration.setHealthCheck(sourceConfig.hasHealthCheckService()); | ||
serverConfiguration.setRequestTimeoutInMillis(sourceConfig.getRequestTimeoutInMillis()); | ||
serverConfiguration.setCompression(sourceConfig.getCompression()); | ||
serverConfiguration.setAuthentication(sourceConfig.getAuthentication()); | ||
serverConfiguration.setSsl(sourceConfig.isSsl()); | ||
serverConfiguration.setUnauthenticatedHealthCheck(sourceConfig.isUnauthenticatedHealthCheck()); | ||
serverConfiguration.setMaxRequestLength(sourceConfig.getMaxRequestLength()); | ||
serverConfiguration.setPort(sourceConfig.getPort()); | ||
serverConfiguration.setThreadCount(sourceConfig.getThreadCount()); | ||
serverConfiguration.setMaxPendingRequests(sourceConfig.getMaxPendingRequests()); | ||
serverConfiguration.setMaxConnectionCount(sourceConfig.getMaxConnectionCount()); | ||
serverConfiguration.setBufferTimeoutInMillis(sourceConfig.getBufferTimeoutInMillis()); | ||
return serverConfiguration; | ||
} | ||
} |
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