Class TestCommandableGrpcClient

All Implemented Interfaces:
org.pipservices4.components.config.IConfigurable, org.pipservices4.components.refer.IReferenceable, org.pipservices4.components.run.IClosable, org.pipservices4.components.run.IOpenable

public class TestCommandableGrpcClient extends CommandableGrpcClient
  • Constructor Details

    • TestCommandableGrpcClient

      public TestCommandableGrpcClient(String name)
      Creates a new instance of the client.
      Parameters:
      name - a service name.
  • Method Details

    • callCommand

      protected <T> T callCommand(Class<T> returnType, String name, org.pipservices4.components.context.IContext context, Object params)
      Calls a remote method via GRPC commadable protocol. The call is made via Invoke method and all parameters are sent in args object. The complete route to remote method is defined as serviceName + "." + name.
      Overrides:
      callCommand in class CommandableGrpcClient
      Parameters:
      returnType - generic type of the return object
      name - a name of the command to call.
      context - (optional) a context to trace execution through call chain.
      params - command parameters.
      Returns:
      the received result.