Package p4.v1
Class P4RuntimeGrpc.P4RuntimeStub
java.lang.Object
io.grpc.stub.AbstractStub<P4RuntimeGrpc.P4RuntimeStub>
io.grpc.stub.AbstractAsyncStub<P4RuntimeGrpc.P4RuntimeStub>
p4.v1.P4RuntimeGrpc.P4RuntimeStub
- Enclosing class:
P4RuntimeGrpc
public static final class P4RuntimeGrpc.P4RuntimeStub
extends io.grpc.stub.AbstractAsyncStub<P4RuntimeGrpc.P4RuntimeStub>
A stub to allow clients to do asynchronous 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.P4RuntimeStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcapabilities(P4RuntimeOuterClass.CapabilitiesRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.CapabilitiesResponse> responseObserver) voidgetForwardingPipelineConfig(P4RuntimeOuterClass.GetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.GetForwardingPipelineConfigResponse> responseObserver) Gets the current P4 forwarding-pipeline config.voidread(P4RuntimeOuterClass.ReadRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.ReadResponse> responseObserver) Read one or more P4 entities from the target.voidsetForwardingPipelineConfig(P4RuntimeOuterClass.SetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.SetForwardingPipelineConfigResponse> responseObserver) Sets the P4 forwarding-pipeline config.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 switchvoidwrite(P4RuntimeOuterClass.WriteRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.WriteResponse> responseObserver) Update one or more P4 entities on the target.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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.P4RuntimeStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<P4RuntimeGrpc.P4RuntimeStub>
-
write
public void write(P4RuntimeOuterClass.WriteRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.WriteResponse> responseObserver) Update one or more P4 entities on the target.
-
read
public void read(P4RuntimeOuterClass.ReadRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.ReadResponse> responseObserver) Read one or more P4 entities from the target.
-
setForwardingPipelineConfig
public void setForwardingPipelineConfig(P4RuntimeOuterClass.SetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.SetForwardingPipelineConfigResponse> responseObserver) Sets the P4 forwarding-pipeline config.
-
getForwardingPipelineConfig
public void getForwardingPipelineConfig(P4RuntimeOuterClass.GetForwardingPipelineConfigRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.GetForwardingPipelineConfigResponse> responseObserver) Gets the current P4 forwarding-pipeline config.
-
streamChannel
public 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
public void capabilities(P4RuntimeOuterClass.CapabilitiesRequest request, io.grpc.stub.StreamObserver<P4RuntimeOuterClass.CapabilitiesResponse> responseObserver)
-