Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* deliver first requires an Envelope of type DELIVER_SEEK_INFO with Payload data as a mashaled SeekInfo message, then a stream of block replies is received.
*
*/
public io.grpc.stub.StreamObserver deliver(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getDeliverMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getBroadcastMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.hyperledger.fabric.protos.common.Common.Envelope,
org.hyperledger.fabric.protos.orderer.Ab.BroadcastResponse>(
this, METHODID_BROADCAST)))
.addMethod(
getDeliverMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.hyperledger.fabric.protos.common.Common.Envelope,
org.hyperledger.fabric.protos.orderer.Ab.DeliverResponse>(
this, METHODID_DELIVER)))
.build();
}
}
/**
*/
public static final class AtomicBroadcastStub extends io.grpc.stub.AbstractStub {
private AtomicBroadcastStub(io.grpc.Channel channel) {
super(channel);
}
private AtomicBroadcastStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AtomicBroadcastStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AtomicBroadcastStub(channel, callOptions);
}
/**
*
* broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure
*
* deliver first requires an Envelope of type DELIVER_SEEK_INFO with Payload data as a mashaled SeekInfo message, then a stream of block replies is received.
*
*/
public io.grpc.stub.StreamObserver deliver(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getDeliverMethod(), getCallOptions()), responseObserver);
}
}
/**
*/
public static final class AtomicBroadcastBlockingStub extends io.grpc.stub.AbstractStub {
private AtomicBroadcastBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private AtomicBroadcastBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AtomicBroadcastBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AtomicBroadcastBlockingStub(channel, callOptions);
}
}
/**
*/
public static final class AtomicBroadcastFutureStub extends io.grpc.stub.AbstractStub {
private AtomicBroadcastFutureStub(io.grpc.Channel channel) {
super(channel);
}
private AtomicBroadcastFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AtomicBroadcastFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AtomicBroadcastFutureStub(channel, callOptions);
}
}
private static final int METHODID_BROADCAST = 0;
private static final int METHODID_DELIVER = 1;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AtomicBroadcastImplBase serviceImpl;
private final int methodId;
MethodHandlers(AtomicBroadcastImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_BROADCAST:
return (io.grpc.stub.StreamObserver) serviceImpl.broadcast(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_DELIVER:
return (io.grpc.stub.StreamObserver) serviceImpl.deliver(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class AtomicBroadcastBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AtomicBroadcastBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.hyperledger.fabric.protos.orderer.Ab.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AtomicBroadcast");
}
}
private static final class AtomicBroadcastFileDescriptorSupplier
extends AtomicBroadcastBaseDescriptorSupplier {
AtomicBroadcastFileDescriptorSupplier() {}
}
private static final class AtomicBroadcastMethodDescriptorSupplier
extends AtomicBroadcastBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AtomicBroadcastMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AtomicBroadcastGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AtomicBroadcastFileDescriptorSupplier())
.addMethod(getBroadcastMethod())
.addMethod(getDeliverMethod())
.build();
}
}
}
return result;
}
}