Class UserRpcUtils

java.lang.Object
org.apache.drill.exec.rpc.user.UserRpcUtils

public final class UserRpcUtils extends Object
Utility class for User RPC
  • Method Details

    • getRpcEndpointInfos

      public static UserProtos.RpcEndpointInfos getRpcEndpointInfos(String name)
      Returns a RpcEndpointInfos instance The instance is populated based on Drill version informations from the classpath and runtime information for the application name.
      Parameters:
      name - the endpoint name.
      Returns:
      a RpcEndpointInfos instance
      Throws:
      NullPointerException - if name is null
    • getVersion

      public static Version getVersion(UserProtos.RpcEndpointInfos infos)
      Get the version from a RpcEndpointInfos instance