-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove spring-boot from the feast serving application (#2127)
* Remove spring-boot from the feast serving application Signed-off-by: Achal Shah <achals@gmail.com> * Remove unused spring-based classes Signed-off-by: Achal Shah <achals@gmail.com> * Fix grpc implementation Signed-off-by: Achal Shah <achals@gmail.com> * Remove verbose logging Signed-off-by: Achal Shah <achals@gmail.com> * Add back integration test and test gcs and s3 for real Signed-off-by: Achal Shah <achals@gmail.com> * Read from port Signed-off-by: Achal Shah <achals@gmail.com>
- Loading branch information
Showing
22 changed files
with
649 additions
and
575 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
38 changes: 0 additions & 38 deletions
38
java/serving/src/main/java/feast/serving/ServingApplication.java
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
java/serving/src/main/java/feast/serving/ServingGuiceApplication.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,46 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright 2018-2021 The Feast Authors | ||
* | ||
* 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 | ||
* | ||
* https://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 feast.serving; | ||
|
||
import com.google.inject.Guice; | ||
import com.google.inject.Injector; | ||
import feast.serving.config.*; | ||
import io.grpc.Server; | ||
import java.io.IOException; | ||
|
||
public class ServingGuiceApplication { | ||
|
||
public static void main(String[] args) throws InterruptedException, IOException { | ||
if (args.length == 0) { | ||
throw new RuntimeException( | ||
"Path to application configuration file needs to be specifed via CLI"); | ||
} | ||
|
||
final Injector i = | ||
Guice.createInjector( | ||
new ServingServiceConfigV2(), | ||
new RegistryConfig(), | ||
new InstrumentationConfig(), | ||
new ServerModule(), | ||
new ApplicationPropertiesModule(args)); | ||
|
||
Server server = i.getInstance(Server.class); | ||
|
||
server.start(); | ||
server.awaitTermination(); | ||
} | ||
} |
Oops, something went wrong.