Class RpcClient

java.lang.Object
ai.djl.engine.rpc.RpcClient

public final class RpcClient extends Object
A client used to connect to remote model server.
  • Method Details

    • getClient

      public static RpcClient getClient(Map<String,?> arguments) throws MalformedURLException
      Returns a new Client instance from criteria arguments.
      Parameters:
      arguments - the criteria arguments.
      Returns:
      a new Client instance
      Throws:
      MalformedURLException - if url is invalid
    • send

      public Output send(Input input) throws IOException
      Sends request to remote server.
      Parameters:
      input - the input
      Returns:
      the output
      Throws:
      IOException - if connection failed