Public Member Functions | |
def | invoke_stream_stream (self, method_descriptor, invocation_metadata, timeout) |
def | invoke_stream_unary (self, method_descriptor, invocation_metadata, timeout) |
def | invoke_unary_stream (self, method_descriptor, invocation_metadata, request, timeout) |
def | invoke_unary_unary (self, method_descriptor, invocation_metadata, request, timeout) |
A server with which to test a system that services RPCs.
Definition at line 493 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.Server.invoke_stream_stream | ( | self, | |
method_descriptor, | |||
invocation_metadata, | |||
timeout | |||
) |
Invokes an RPC to be serviced by the system under test. Args: method_descriptor: A descriptor.MethodDescriptor describing a stream-stream RPC method. invocation_metadata: The RPC's invocation metadata. timeout: A duration of time in seconds for the RPC or None to indicate that the RPC has no time limit. Returns: A StreamStreamServerRpc with which to "play client" for the RPC.
Reimplemented in grpc_testing._server._server._Server.
Definition at line 550 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.Server.invoke_stream_unary | ( | self, | |
method_descriptor, | |||
invocation_metadata, | |||
timeout | |||
) |
Invokes an RPC to be serviced by the system under test. Args: method_descriptor: A descriptor.MethodDescriptor describing a stream-unary RPC method. invocation_metadata: The RPC's invocation metadata. timeout: A duration of time in seconds for the RPC or None to indicate that the RPC has no time limit. Returns: A StreamUnaryServerRpc with which to "play client" for the RPC.
Reimplemented in grpc_testing._server._server._Server.
Definition at line 533 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.Server.invoke_unary_stream | ( | self, | |
method_descriptor, | |||
invocation_metadata, | |||
request, | |||
timeout | |||
) |
Invokes an RPC to be serviced by the system under test. Args: method_descriptor: A descriptor.MethodDescriptor describing a unary-stream RPC method. invocation_metadata: The RPC's invocation metadata. request: The RPC's request. timeout: A duration of time in seconds for the RPC or None to indicate that the RPC has no time limit. Returns: A UnaryStreamServerRpc with which to "play client" for the RPC.
Reimplemented in grpc_testing._server._server._Server.
Definition at line 515 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.Server.invoke_unary_unary | ( | self, | |
method_descriptor, | |||
invocation_metadata, | |||
request, | |||
timeout | |||
) |
Invokes an RPC to be serviced by the system under test. Args: method_descriptor: A descriptor.MethodDescriptor describing a unary-unary RPC method. invocation_metadata: The RPC's invocation metadata. request: The RPC's request. timeout: A duration of time in seconds for the RPC or None to indicate that the RPC has no time limit. Returns: A UnaryUnaryServerRpc with which to "play client" for the RPC.
Reimplemented in grpc_testing._server._server._Server.
Definition at line 497 of file src/python/grpcio_testing/grpc_testing/__init__.py.