Tabnine Logo
Server.start
Code IndexAdd Tabnine to your IDE (free)

How to use
start
method
in
org.apache.beam.vendor.grpc.v1_13_1.io.grpc.Server

Best Java code snippets using org.apache.beam.vendor.grpc.v1_13_1.io.grpc.Server.start (Showing top 3 results out of 315)

origin: org.apache.beam/beam-runners-reference-java

private static CloseableResource<Server> createJobServer(JobState.Enum jobState)
  throws IOException {
 CloseableResource<Server> server =
   CloseableResource.of(
     InProcessServerBuilder.forName(ENDPOINT_URL)
       .addService(new TestJobService(ENDPOINT_DESCRIPTOR, "prepId", "jobId", jobState))
       .addService(new InMemoryArtifactStagerService())
       .build(),
     Server::shutdown);
 server.get().start();
 return server;
}
origin: org.apache.beam/beam-runners-core-construction-java

@Before
public void setup() throws IOException {
 stager =
   ArtifactServiceStager.overChannel(
     InProcessChannelBuilder.forName("service_stager").build(), 6);
 service = new InMemoryArtifactStagerService();
 server =
   InProcessServerBuilder.forName("service_stager")
     .directExecutor()
     .addService(service)
     .build()
     .start();
}
origin: org.apache.beam/beam-runners-direct-java

@Before
public void setup() throws Exception {
 stager = LocalFileSystemArtifactStagerService.forRootDirectory(temporaryFolder.newFolder());
 server =
   InProcessServerBuilder.forName("fs_stager")
     .directExecutor()
     .addService(stager)
     .build()
     .start();
 stub =
   ArtifactStagingServiceGrpc.newStub(
     InProcessChannelBuilder.forName("fs_stager").usePlaintext().build());
}
org.apache.beam.vendor.grpc.v1_13_1.io.grpcServerstart

Popular methods of Server

  • awaitTermination
  • shutdownNow

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JComboBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now