python.th2_grpc_read_db.read_db_service.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-read-db Show documentation
Show all versions of grpc-read-db Show documentation
gRPC API for executing requests in read-db application
from . import read_db_pb2_grpc as importStub
class ReadDbService(object):
def __init__(self, router):
self.connector = router.get_connection(ReadDbService, importStub.ReadDbStub)
def Execute(self, request, timeout=None, properties=None):
return self.connector.create_request('Execute', request, timeout, properties)
def StartPulling(self, request, timeout=None, properties=None):
return self.connector.create_request('StartPulling', request, timeout, properties)
def StopPulling(self, request, timeout=None, properties=None):
return self.connector.create_request('StopPulling', request, timeout, properties)