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

  • Making http requests using okhttp
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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