[ https://issues.apache.org/jira/browse/BEAM-3326?focusedWorklogId=104901&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-104901 ]
ASF GitHub Bot logged work on BEAM-3326: ---------------------------------------- Author: ASF GitHub Bot Created on: 23/May/18 00:31 Start Date: 23/May/18 00:31 Worklog Time Spent: 10m Work Description: tgroh commented on a change in pull request #5349: [BEAM-3326] Remote stage evaluator URL: https://github.com/apache/beam/pull/5349#discussion_r190093623 ########## File path: runners/direct-java/src/main/java/org/apache/beam/runners/direct/portable/InProcessEnvironmentFactory.java ########## @@ -0,0 +1,97 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.beam.runners.direct.portable; + +import static com.google.common.base.Preconditions.checkArgument; + +import java.time.Duration; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import org.apache.beam.fn.harness.FnHarness; +import org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor; +import org.apache.beam.model.pipeline.v1.RunnerApi.Environment; +import org.apache.beam.runners.fnexecution.GrpcFnServer; +import org.apache.beam.runners.fnexecution.control.ControlClientPool; +import org.apache.beam.runners.fnexecution.control.FnApiControlClientPoolService; +import org.apache.beam.runners.fnexecution.control.InstructionRequestHandler; +import org.apache.beam.runners.fnexecution.environment.EnvironmentFactory; +import org.apache.beam.runners.fnexecution.environment.RemoteEnvironment; +import org.apache.beam.runners.fnexecution.logging.GrpcLoggingService; +import org.apache.beam.sdk.fn.stream.StreamObserverFactory; +import org.apache.beam.sdk.fn.test.InProcessManagedChannelFactory; +import org.apache.beam.sdk.options.PipelineOptionsFactory; + +/** + * An {@link EnvironmentFactory} that communicates to a {@link FnHarness} via the in-process gRPC + * channel. + * + * <p>TODO: Move this class to the runners/java-fn-execution module, with the Java SDK Harness as a + * provided dependency. + */ +class InProcessEnvironmentFactory implements EnvironmentFactory { + + private final GrpcFnServer<GrpcLoggingService> loggingServer; + private final GrpcFnServer<FnApiControlClientPoolService> controlServer; + + private final ControlClientPool.Source clientSource; + + InProcessEnvironmentFactory( Review comment: It's fine, but also gets us very little. Done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 104901) Time Spent: 13.5h (was: 13h 20m) > Execute a Stage via the portability framework in the ReferenceRunner > -------------------------------------------------------------------- > > Key: BEAM-3326 > URL: https://issues.apache.org/jira/browse/BEAM-3326 > Project: Beam > Issue Type: New Feature > Components: runner-core > Reporter: Thomas Groh > Assignee: Thomas Groh > Priority: Major > Labels: portability > Time Spent: 13.5h > Remaining Estimate: 0h > > This is the supertask for remote execution in the Universal Local Runner > (BEAM-2899). > This executes a stage remotely via portability framework APIs -- This message was sent by Atlassian JIRA (v7.6.3#76005)