Exemplo n.º 1
0
 def logging_api_service_descriptor(self):
     # type: () -> endpoints_pb2.ApiServiceDescriptor
     return endpoints_pb2.ApiServiceDescriptor(
         url=self.port_from_worker(self._grpc_server.logging_port))
Exemplo n.º 2
0
 def artifact_api_service_descriptor(self):
     # type: () -> endpoints_pb2.ApiServiceDescriptor
     return endpoints_pb2.ApiServiceDescriptor(
         url=self.port_from_worker(self._grpc_server.control_port))
Exemplo n.º 3
0
 def data_api_service_descriptor(self):
   # type: () -> endpoints_pb2.ApiServiceDescriptor
   # A fake endpoint is needed for properly constructing timer info map in
   # bundle_processor for fnapi_runner.
   return endpoints_pb2.ApiServiceDescriptor(url='fake')
Exemplo n.º 4
0
 def to_runner_api_parameter(self, context):
     # type: (PipelineContext) -> Tuple[str, beam_runner_api_pb2.ExternalPayload]
     return (common_urns.environments.EXTERNAL.urn,
             beam_runner_api_pb2.ExternalPayload(
                 endpoint=endpoints_pb2.ApiServiceDescriptor(url=self.url),
                 params=self.params))
Exemplo n.º 5
0
 def state_api_service_descriptor(self):
   return endpoints_pb2.ApiServiceDescriptor(
       url='localhost:%s' % self.state_port)