Tabnine Logo
InProcessServerBuilder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
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.build (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.inprocessInProcessServerBuilderbuild

Popular methods of InProcessServerBuilder

  • addService
  • forName
  • directExecutor

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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