public class GrpcMessagingTransport extends Object
Constructor and Description |
---|
GrpcMessagingTransport(AlluxioConfiguration clientConf,
AlluxioConfiguration serverConf,
UserState clientUser,
UserState serverUser,
String clientType)
Creates
GrpcMessagingTransport based on Alluxio gRPC messaging. |
GrpcMessagingTransport(AlluxioConfiguration conf,
UserState user,
String clientType)
Creates
GrpcMessagingTransport based on Alluxio gRPC messaging. |
Modifier and Type | Method and Description |
---|---|
GrpcMessagingClient |
client()
Creates a new Grpc messaging client.
|
void |
close()
Closes the opened clients and servers.
|
GrpcMessagingServer |
server()
Creates a new Grpc messaging server.
|
GrpcMessagingTransport |
withServerProxy(GrpcMessagingProxy proxy)
Sets external proxy configuration for servers.
|
public GrpcMessagingTransport(AlluxioConfiguration conf, UserState user, String clientType)
GrpcMessagingTransport
based on Alluxio gRPC messaging.conf
- Alluxio configurationuser
- Alluxio userclientType
- Transport client typepublic GrpcMessagingTransport(AlluxioConfiguration clientConf, AlluxioConfiguration serverConf, UserState clientUser, UserState serverUser, String clientType)
GrpcMessagingTransport
based on Alluxio gRPC messaging.clientConf
- Alluxio configuration for clientsserverConf
- Alluxio configuration for serversclientUser
- User for clientsserverUser
- User for serversclientType
- Transport client typepublic GrpcMessagingTransport withServerProxy(GrpcMessagingProxy proxy)
proxy
- external proxy configurationpublic GrpcMessagingClient client()
public GrpcMessagingServer server()
public void close()
Copyright © 2023. All Rights Reserved.