JFJochBroker: More parameters tunable from configuration file, more user friendly, can select detector remotely

This commit is contained in:
2023-04-13 14:55:39 +02:00
parent b9fa8f5e0a
commit 94e6254746
14 changed files with 435 additions and 205 deletions
+25 -19
View File
File diff suppressed because one or more lines are too long
+66
View File
@@ -792,6 +792,16 @@ class gRPC_JFJochBrokerStub(object):
request_serializer=jfjoch__pb2.Empty.SerializeToString,
response_deserializer=jfjoch__pb2.Image.FromString,
)
self.GetDetectorList = channel.unary_unary(
'/JFJochProtoBuf.gRPC_JFJochBroker/GetDetectorList',
request_serializer=jfjoch__pb2.Empty.SerializeToString,
response_deserializer=jfjoch__pb2.DetectorList.FromString,
)
self.SelectDetector = channel.unary_unary(
'/JFJochProtoBuf.gRPC_JFJochBroker/SelectDetector',
request_serializer=jfjoch__pb2.DetectorSelection.SerializeToString,
response_deserializer=jfjoch__pb2.Empty.FromString,
)
class gRPC_JFJochBrokerServicer(object):
@@ -917,6 +927,18 @@ class gRPC_JFJochBrokerServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetDetectorList(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SelectDetector(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_gRPC_JFJochBrokerServicer_to_server(servicer, server):
rpc_method_handlers = {
@@ -1020,6 +1042,16 @@ def add_gRPC_JFJochBrokerServicer_to_server(servicer, server):
request_deserializer=jfjoch__pb2.Empty.FromString,
response_serializer=jfjoch__pb2.Image.SerializeToString,
),
'GetDetectorList': grpc.unary_unary_rpc_method_handler(
servicer.GetDetectorList,
request_deserializer=jfjoch__pb2.Empty.FromString,
response_serializer=jfjoch__pb2.DetectorList.SerializeToString,
),
'SelectDetector': grpc.unary_unary_rpc_method_handler(
servicer.SelectDetector,
request_deserializer=jfjoch__pb2.DetectorSelection.FromString,
response_serializer=jfjoch__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'JFJochProtoBuf.gRPC_JFJochBroker', rpc_method_handlers)
@@ -1369,3 +1401,37 @@ class gRPC_JFJochBroker(object):
jfjoch__pb2.Image.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetDetectorList(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/JFJochProtoBuf.gRPC_JFJochBroker/GetDetectorList',
jfjoch__pb2.Empty.SerializeToString,
jfjoch__pb2.DetectorList.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SelectDetector(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/JFJochProtoBuf.gRPC_JFJochBroker/SelectDetector',
jfjoch__pb2.DetectorSelection.SerializeToString,
jfjoch__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)