grpc4bmi.bmi_grpc_legacy_server module
- class grpc4bmi.bmi_grpc_legacy_server.BmiLegacyServer02(model, debug=False)[source]
Bases:
BmiServiceServicer
BMI Server class, wrapping an existing python implementation and exposing it via GRPC across the memory space (to listening client processes). The class takes a package, module and class name and instantiates the BMI implementation by assuming a default constructor with no arguments.
For models implementing the bmi interface defined https://pypi.org/project/basic-modeling-interface/0.2/
- Parameters:
model – Bmi model object which must be wrapped by grpc
debug – If true then returns stacktrace in an error response. The stacktrace is returned in the trailing metadata as a DebugInfo (https://github.com/googleapis/googleapis/blob/07244bb797ddd6e0c1c15b02b4467a9a5729299f/google/rpc/error_details.proto#L46-L52) message.
- getComponentName(request, context)[source]
Missing associated documentation comment in .proto file.
- getInputVarNames(request, context)[source]
Missing associated documentation comment in .proto file.
- getOutputVarNames(request, context)[source]
Missing associated documentation comment in .proto file.
- getValueAtIndices(request, context)[source]
Missing associated documentation comment in .proto file.