Package org.apache.drill.exec.rpc.user
Class UserRpcUtils
java.lang.Object
org.apache.drill.exec.rpc.user.UserRpcUtils
Utility class for User RPC
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserProtos.RpcEndpointInfosgetRpcEndpointInfos(String name) Returns aRpcEndpointInfosinstance The instance is populated based on Drill version informations from the classpath and runtime information for the application name.static VersionGet the version from aRpcEndpointInfosinstance
-
Method Details
-
getRpcEndpointInfos
Returns aRpcEndpointInfosinstance 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
RpcEndpointInfosinstance - Throws:
NullPointerException- if name is null
-
getVersion
Get the version from aRpcEndpointInfosinstance
-