Package p4.v1
Interface P4RuntimeGrpc.AsyncService
- All Known Implementing Classes:
P4RuntimeGrpc.P4RuntimeImplBase
- Enclosing class:
P4RuntimeGrpc
public static interface P4RuntimeGrpc.AsyncService
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcapabilities(P4RuntimeOuterClass.CapabilitiesRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.CapabilitiesResponse> responseObserver) default voidgetForwardingPipelineConfig(P4RuntimeOuterClass.GetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.GetForwardingPipelineConfigResponse> responseObserver) Gets the current P4 forwarding-pipeline config.default voidread(P4RuntimeOuterClass.ReadRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.ReadResponse> responseObserver) Read one or more P4 entities from the target.default voidsetForwardingPipelineConfig(P4RuntimeOuterClass.SetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.SetForwardingPipelineConfigResponse> responseObserver) Sets the P4 forwarding-pipeline config.default io.grpc.stub.StreamObserver<P4RuntimeOuterClass.StreamMessageRequest> streamChannel(io.grpc.stub.StreamObserver<P4RuntimeOuterClass.StreamMessageResponse> responseObserver) 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 switchdefault voidwrite(P4RuntimeOuterClass.WriteRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.WriteResponse> responseObserver) Update one or more P4 entities on the target.
-
Method Details
-
write
default void write(P4RuntimeOuterClass.WriteRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.WriteResponse> responseObserver) Update one or more P4 entities on the target.
-
read
default void read(P4RuntimeOuterClass.ReadRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.ReadResponse> responseObserver) Read one or more P4 entities from the target.
-
setForwardingPipelineConfig
default void setForwardingPipelineConfig(P4RuntimeOuterClass.SetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.SetForwardingPipelineConfigResponse> responseObserver) Sets the P4 forwarding-pipeline config.
-
getForwardingPipelineConfig
default void getForwardingPipelineConfig(P4RuntimeOuterClass.GetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.GetForwardingPipelineConfigResponse> responseObserver) Gets the current P4 forwarding-pipeline config.
-
streamChannel
default io.grpc.stub.StreamObserver<P4RuntimeOuterClass.StreamMessageRequest> streamChannel(io.grpc.stub.StreamObserver<P4RuntimeOuterClass.StreamMessageResponse> responseObserver) 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
default void capabilities(P4RuntimeOuterClass.CapabilitiesRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.CapabilitiesResponse> responseObserver)
-