Skip to content

Commit

Permalink
basic setup
Browse files Browse the repository at this point in the history
Signed-off-by: Maxwell Brown <[email protected]>
  • Loading branch information
Galactus22625 committed Jan 16, 2025
1 parent b2cbbae commit 8bb241e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
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() {

}
}
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 {
}

0 comments on commit 8bb241e

Please sign in to comment.