de_twin.faces.temchannel_soap.TemChannelServer#
- class de_twin.faces.temchannel_soap.TemChannelServer(column, host='0.0.0.0', port=5002, *, enforce_service_ranges=True, log_requests=False, corrector_side=None)[source]#
Bases:
objectA threaded HTTP server speaking the DE-TEM-Channel SOAP API over a Column.
>>> srv = TemChannelServer(column, host="127.0.0.1", port=5002).start() >>> ... >>> srv.stop()
port=0picks a free port (read it back fromsrv.port).handle(xml)answers one request without any socket (used to replay the recorded samples).- Parameters:
- __init__(column, host='0.0.0.0', port=5002, *, enforce_service_ranges=True, log_requests=False, corrector_side=None)[source]#
Methods
__init__(column[, host, port, ...])batch_field(key)One executeBatchCommands field, formatted like the channel's stringstream.
The served
CorrectorUnit, or None.handle(xml)Answer one SOAP request.
op_status(op_id)GetPropertyOperationStatus: stage ops are Running while the column moves.
property_value(key)The getProperty string for
key("" for unknown keys, like the channel).start()stop()Attributes
CorrectorService.cpp kMaxCorrectorWaitMs
- MAX_CORRECTOR_WAIT_MS = 5000#
CorrectorService.cpp kMaxCorrectorWaitMs
- corrector_unit()[source]#
The served
CorrectorUnit, or None.