grpc_running_server_data
drunc.grpc_testing_tools.grpc_running_server_data
Classes
RunningGrpcServer(process_id, target_func, args, kwargs)
Abstract representation of a Running gRPC Server Process The server could have been started via any supported method (multiprocessing, SSH, etc.)
Initialise process handle with execution parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
process_id
|
str
|
Unique identifier for this process |
required |
target_func
|
Any
|
Function to execute as the process |
required |
args
|
tuple
|
Positional arguments for the target function |
required |
kwargs
|
dict
|
Keyword arguments for the target function |
required |
Source code in drunc/grpc_testing_tools/grpc_running_server_data.py
Attributes
process
property
Get the underlying process object (implementation-specific).
started
property
Check if process has been started.
Functions
is_valid()
Check if the process handle is valid
Source code in drunc/grpc_testing_tools/grpc_running_server_data.py
mark_started()
set_process(process)
set_server_info(server_id, host, port, server_type)
Set the server information for this process.