Class CsiGrpcClient
java.lang.Object
org.apache.hadoop.yarn.csi.client.CsiGrpcClient
- All Implemented Interfaces:
AutoCloseable
A CSI gRPC client, it connects a CSI driver via a given unix domain socket.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Grpc Client builder. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Shutdown the communication channel gracefully, wait for 5 seconds before it is enforced.csi.v0.ControllerGrpc.ControllerBlockingStubCreates a blocking stub for CSI controller plugin on the given channel.csi.v0.IdentityGrpc.IdentityBlockingStubCreates a blocking stub for CSI identity plugin on the given channel.csi.v0.NodeGrpc.NodeBlockingStubCreates a blocking stub for CSI node plugin on the given channel.
-
Method Details
-
newBuilder
-
close
public void close()Shutdown the communication channel gracefully, wait for 5 seconds before it is enforced.- Specified by:
closein interfaceAutoCloseable
-
createIdentityBlockingStub
public csi.v0.IdentityGrpc.IdentityBlockingStub createIdentityBlockingStub()Creates a blocking stub for CSI identity plugin on the given channel.- Returns:
- the blocking stub
-
createControllerBlockingStub
public csi.v0.ControllerGrpc.ControllerBlockingStub createControllerBlockingStub()Creates a blocking stub for CSI controller plugin on the given channel.- Returns:
- the blocking stub
-
createNodeBlockingStub
public csi.v0.NodeGrpc.NodeBlockingStub createNodeBlockingStub()Creates a blocking stub for CSI node plugin on the given channel.- Returns:
- the blocking stub
-