use of com.netflix.conductor.client.grpc.WorkflowClient in project conductor by Netflix.
the class MySQLGrpcEndToEndTest method setup.
@BeforeClass
public static void setup() throws Exception {
TestEnvironment.setup();
System.setProperty(GRPCServerConfiguration.ENABLED_PROPERTY_NAME, "true");
System.setProperty(GRPCServerConfiguration.PORT_PROPERTY_NAME, "8094");
System.setProperty(ElasticSearchConfiguration.EMBEDDED_PORT_PROPERTY_NAME, "9204");
System.setProperty(ElasticSearchConfiguration.ELASTIC_SEARCH_URL_PROPERTY_NAME, "localhost:9304");
System.setProperty(Configuration.EXECUTION_LOCK_ENABLED_PROPERTY_NAME, "false");
Injector bootInjector = Guice.createInjector(new BootstrapModule());
Injector serverInjector = Guice.createInjector(bootInjector.getInstance(ModulesProvider.class).get());
search = serverInjector.getInstance(EmbeddedElasticSearchProvider.class).get().get();
search.start();
Optional<GRPCServer> server = serverInjector.getInstance(GRPCServerProvider.class).get();
assertTrue("failed to instantiate GRPCServer", server.isPresent());
server.get().start();
taskClient = new TaskClient("localhost", SERVER_PORT);
workflowClient = new WorkflowClient("localhost", SERVER_PORT);
metadataClient = new MetadataClient("localhost", SERVER_PORT);
}
use of com.netflix.conductor.client.grpc.WorkflowClient in project conductor by Netflix.
the class GrpcEndToEndTest method setup.
@BeforeClass
public static void setup() throws Exception {
TestEnvironment.setup();
System.setProperty(GRPCServerConfiguration.ENABLED_PROPERTY_NAME, "true");
System.setProperty(GRPCServerConfiguration.PORT_PROPERTY_NAME, "8092");
System.setProperty(ElasticSearchConfiguration.EMBEDDED_PORT_PROPERTY_NAME, "9202");
System.setProperty(ElasticSearchConfiguration.ELASTIC_SEARCH_URL_PROPERTY_NAME, "localhost:9302");
System.setProperty(Configuration.EXECUTION_LOCK_ENABLED_PROPERTY_NAME, "false");
Injector bootInjector = Guice.createInjector(new BootstrapModule());
Injector serverInjector = Guice.createInjector(bootInjector.getInstance(ModulesProvider.class).get());
search = serverInjector.getInstance(EmbeddedElasticSearchProvider.class).get().get();
search.start();
Optional<GRPCServer> server = serverInjector.getInstance(GRPCServerProvider.class).get();
assertTrue("failed to instantiate GRPCServer", server.isPresent());
server.get().start();
taskClient = new TaskClient("localhost", SERVER_PORT);
workflowClient = new WorkflowClient("localhost", SERVER_PORT);
metadataClient = new MetadataClient("localhost", SERVER_PORT);
}
use of com.netflix.conductor.client.grpc.WorkflowClient in project conductor by Netflix.
the class PostgresGrpcEndToEndTest method setup.
@BeforeClass
public static void setup() throws Exception {
TestEnvironment.setup();
System.setProperty("workflow.namespace.prefix", "conductor" + System.getProperty("user.name"));
System.setProperty(DB_PROPERTY_NAME, "postgres");
System.setProperty(ENABLED_PROPERTY_NAME, "true");
System.setProperty(PORT_PROPERTY_NAME, "8098");
System.setProperty(EMBEDDED_PORT_PROPERTY_NAME, "9208");
System.setProperty(ELASTIC_SEARCH_URL_PROPERTY_NAME, "localhost:9308");
System.setProperty(JDBC_URL_PROPERTY_NAME, "jdbc:postgresql://localhost:54320/conductor");
System.setProperty(JDBC_USER_NAME_PROPERTY_NAME, "postgres");
System.setProperty(JDBC_PASSWORD_PROPERTY_NAME, "postgres");
System.setProperty(CONNECTION_POOL_MINIMUM_IDLE_PROPERTY_NAME, "8");
System.setProperty(CONNECTION_POOL_MAX_SIZE_PROPERTY_NAME, "8");
System.setProperty(CONNECTION_POOL_MINIMUM_IDLE_PROPERTY_NAME, "300000");
Injector bootInjector = Guice.createInjector(new BootstrapModule());
Injector serverInjector = Guice.createInjector(bootInjector.getInstance(ModulesProvider.class).get());
search = serverInjector.getInstance(EmbeddedElasticSearchProvider.class).get().get();
search.start();
server = serverInjector.getInstance(GRPCServerProvider.class).get();
assertTrue("failed to instantiate GRPCServer", server.isPresent());
server.get().start();
taskClient = new TaskClient("localhost", SERVER_PORT);
workflowClient = new WorkflowClient("localhost", SERVER_PORT);
metadataClient = new MetadataClient("localhost", SERVER_PORT);
}
Aggregations