Package p4.v1
Class P4RuntimeGrpc.P4RuntimeBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<P4RuntimeGrpc.P4RuntimeBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<P4RuntimeGrpc.P4RuntimeBlockingV2Stub>
p4.v1.P4RuntimeGrpc.P4RuntimeBlockingV2Stub
- Enclosing class:
P4RuntimeGrpc
public static final class P4RuntimeGrpc.P4RuntimeBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<P4RuntimeGrpc.P4RuntimeBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service P4Runtime.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected P4RuntimeGrpc.P4RuntimeBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Gets the current P4 forwarding-pipeline config.io.grpc.stub.BlockingClientCall<?, P4RuntimeOuterClass.ReadResponse> read(P4RuntimeOuterClass.ReadRequest request) Read one or more P4 entities from the target.Sets the P4 forwarding-pipeline config.io.grpc.stub.BlockingClientCall<P4RuntimeOuterClass.StreamMessageRequest, P4RuntimeOuterClass.StreamMessageResponse> Represents the bidirectional stream between the controller and the switch (initiated by the controller), and is managed for the following purposes: - connection initiation through client arbitration - indicating switch session liveness: the session is live when switch sends a positive client arbitration update to the controller, and is considered dead when either the stream breaks or the switch sends a negative update for client arbitration - the controller sending/receiving packets to/from the switch - streaming of notifications from the switchwrite(P4RuntimeOuterClass.WriteRequest request) Update one or more P4 entities on the target.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected P4RuntimeGrpc.P4RuntimeBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<P4RuntimeGrpc.P4RuntimeBlockingV2Stub>
-
write
public P4RuntimeOuterClass.WriteResponse write(P4RuntimeOuterClass.WriteRequest request) throws io.grpc.StatusException Update one or more P4 entities on the target.
- Throws:
io.grpc.StatusException
-
read
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,P4RuntimeOuterClass.ReadResponse> read(P4RuntimeOuterClass.ReadRequest request) Read one or more P4 entities from the target.
-
setForwardingPipelineConfig
public P4RuntimeOuterClass.SetForwardingPipelineConfigResponse setForwardingPipelineConfig(P4RuntimeOuterClass.SetForwardingPipelineConfigRequest request) throws io.grpc.StatusException Sets the P4 forwarding-pipeline config.
- Throws:
io.grpc.StatusException
-
getForwardingPipelineConfig
public P4RuntimeOuterClass.GetForwardingPipelineConfigResponse getForwardingPipelineConfig(P4RuntimeOuterClass.GetForwardingPipelineConfigRequest request) throws io.grpc.StatusException Gets the current P4 forwarding-pipeline config.
- Throws:
io.grpc.StatusException
-
streamChannel
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<P4RuntimeOuterClass.StreamMessageRequest,P4RuntimeOuterClass.StreamMessageResponse> streamChannel()Represents the bidirectional stream between the controller and the switch (initiated by the controller), and is managed for the following purposes: - connection initiation through client arbitration - indicating switch session liveness: the session is live when switch sends a positive client arbitration update to the controller, and is considered dead when either the stream breaks or the switch sends a negative update for client arbitration - the controller sending/receiving packets to/from the switch - streaming of notifications from the switch
-
capabilities
public P4RuntimeOuterClass.CapabilitiesResponse capabilities(P4RuntimeOuterClass.CapabilitiesRequest request) throws io.grpc.StatusException - Throws:
io.grpc.StatusException
-