congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InProcessServerBuilder.addService
Code IndexAdd Tabnine to your IDE (free)

How to use
addService
method
in
org.apache.beam.vendor.grpc.v1_13_1.io.grpc.inprocess.InProcessServerBuilder

Best Java code snippets using org.apache.beam.vendor.grpc.v1_13_1.io.grpc.inprocess.InProcessServerBuilder.addService (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.grpc.inprocessInProcessServerBuilderaddService

Popular methods of InProcessServerBuilder

  • build
  • forName
  • directExecutor

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
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