ni_measurementlink_service
releases/1.4
  • API Reference
    • ni_measurementlink_service
      • Subpackages
        • ni_measurementlink_service.discovery
        • ni_measurementlink_service.grpc
          • Submodules
            • ni_measurementlink_service.grpc.channelpool
              • Module Contents
                • Classes
                  • GrpcChannelPool
                    • GrpcChannelPool.__enter__()
                    • GrpcChannelPool.__exit__()
                    • GrpcChannelPool.get_channel()
                    • GrpcChannelPool.close()
            • ni_measurementlink_service.grpc.loggers
        • ni_measurementlink_service.measurement
        • ni_measurementlink_service.session_management
      • Package Contents
ni_measurementlink_service
  • API Reference
  • ni_measurementlink_service
  • ni_measurementlink_service.grpc
  • ni_measurementlink_service.grpc.channelpool
  • Edit on GitHub

ni_measurementlink_service.grpc.channelpool

gRPC channel pool.

Module Contents

Classes

GrpcChannelPool

Class that manages gRPC channel lifetimes.

class ni_measurementlink_service.grpc.channelpool.GrpcChannelPool[source]

Bases: object

Class that manages gRPC channel lifetimes.

__enter__()[source]

Enter the runtime context of the GrpcChannelPool.

Return type:

Self

__exit__(exc_type, exc_val, traceback)[source]

Exit the runtime context of the GrpcChannelPool.

Parameters:
  • exc_type (Optional[Type[BaseException]]) –

  • exc_val (Optional[BaseException]) –

  • traceback (Optional[types.TracebackType]) –

Return type:

Literal[False]

get_channel(target)[source]

Return a gRPC channel.

Parameters:

target (str) – The server address

Return type:

grpc.Channel

close()[source]

Close channels opened by get_channel().

Return type:

None

Previous Next

© Copyright 2024, National Instruments. Revision 2ba12c60.

Built with Sphinx using a theme provided by Read the Docs.