Class GrpcChannel
java.lang.Object
com.aizuda.snailjob.client.common.rpc.client.grpc.GrpcChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String获取指定的客户IPstatic Integer获取客户端端口static String获取服务端hoststatic int获取服务端端口static com.google.common.util.concurrent.ListenableFuture<GrpcResult>static voidsetChannel(io.grpc.ManagedChannel channel)
-
Constructor Details
-
GrpcChannel
public GrpcChannel()
-
-
Method Details
-
setChannel
public static void setChannel(io.grpc.ManagedChannel channel) -
getServerPort
public static int getServerPort()获取服务端端口- Returns:
- port
-
getServerHost
获取服务端host- Returns:
- host
-
getClientHost
获取指定的客户IP- Returns:
- 客户端IP
-
getClientPort
获取客户端端口- Returns:
- port 端口
-
sendOfUnary
-