Search in sources :

Example 1 with DeploymentStore

use of io.seldon.apife.deployments.DeploymentStore in project seldon-core by SeldonIO.

the class SeldonGrpcServer method main.

/**
 * Main method for basic testing.
 */
public static void main(String[] args) throws Exception {
    DeploymentStore store = new DeploymentStore(null, new InMemoryClientDetailsService());
    SeldonDeployment dep = SeldonDeployment.newBuilder().setApiVersion("v1alpha1").setKind("SeldonDeplyment").setSpec(DeploymentSpec.newBuilder().setName("0.0.0.0").setOauthKey("key").setOauthSecret("secret")).build();
    AppProperties appProperties = new AppProperties();
    appProperties.setEngineGrpcContainerPort(5000);
    store.deploymentAdded(dep);
    SeldonGrpcServer server = new SeldonGrpcServer(appProperties, store, null, null, SERVER_PORT);
    server.start();
    server.blockUntilShutdown();
}
Also used : InMemoryClientDetailsService(io.seldon.apife.api.oauth.InMemoryClientDetailsService) DeploymentStore(io.seldon.apife.deployments.DeploymentStore) SeldonDeployment(io.seldon.protos.DeploymentProtos.SeldonDeployment) AppProperties(io.seldon.apife.AppProperties)

Aggregations

AppProperties (io.seldon.apife.AppProperties)1 InMemoryClientDetailsService (io.seldon.apife.api.oauth.InMemoryClientDetailsService)1 DeploymentStore (io.seldon.apife.deployments.DeploymentStore)1 SeldonDeployment (io.seldon.protos.DeploymentProtos.SeldonDeployment)1