forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
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
b2cbbae
commit 8bb241e
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...ins/http-common/src/main/java/org/opensearch/dataprepper/plugins/server/CreateServer.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,29 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.dataprepper.plugins.server; | ||
|
||
import com.linecorp.armeria.server.Server; | ||
|
||
|
||
public class CreateServer { | ||
private final ServerConfiguration serverConfiguration; | ||
|
||
//creating common class to start server pulling from start() of http source and otel sources | ||
|
||
//configure with what is needed for each source that is shared between all | ||
public CreateServer(final ServerConfiguration serverConfiguration) { | ||
this.serverConfiguration = serverConfiguration; | ||
} | ||
|
||
//insert things specific to grpc or http | ||
public Server createGRPCServer() { | ||
|
||
} | ||
|
||
public Server createHTTPServer() { | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...p-common/src/main/java/org/opensearch/dataprepper/plugins/server/ServerConfiguration.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,10 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.dataprepper.plugins.server; | ||
|
||
//Each source that uses needs to write a class function that will put the specific source configuration info into the Server configuration | ||
public class ServerConfiguration { | ||
} |