
alluxio.grpc.BlockMasterWorkerServiceGrpc Maven / Gradle / Ivy
package alluxio.grpc;
import static alluxio.shaded.client.io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
@alluxio.shaded.client.javax.annotation.Generated(
value = "by gRPC proto alluxio.shaded.client.com.iler (version 1.54.1)",
alluxio.shaded.client.com.ents = "Source: grpc/block_master.proto")
@alluxio.shaded.client.io.grpc.stub.annotations.GrpcGenerated
public final class BlockMasterWorkerServiceGrpc {
private BlockMasterWorkerServiceGrpc() {}
public static final String SERVICE_NAME = "alluxio.grpc.block.BlockMasterWorkerService";
// Static method descriptors that strictly reflect the proto.
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getBlockHeartbeatMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BlockHeartbeat",
requestType = alluxio.grpc.BlockHeartbeatPRequest.class,
responseType = alluxio.grpc.BlockHeartbeatPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getBlockHeartbeatMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getBlockHeartbeatMethod;
if ((getBlockHeartbeatMethod = BlockMasterWorkerServiceGrpc.getBlockHeartbeatMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getBlockHeartbeatMethod = BlockMasterWorkerServiceGrpc.getBlockHeartbeatMethod) == null) {
BlockMasterWorkerServiceGrpc.getBlockHeartbeatMethod = getBlockHeartbeatMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BlockHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.BlockHeartbeatPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.BlockHeartbeatPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("BlockHeartbeat"))
.build();
}
}
}
return getBlockHeartbeatMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getCommitBlockMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CommitBlock",
requestType = alluxio.grpc.CommitBlockPRequest.class,
responseType = alluxio.grpc.CommitBlockPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getCommitBlockMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getCommitBlockMethod;
if ((getCommitBlockMethod = BlockMasterWorkerServiceGrpc.getCommitBlockMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getCommitBlockMethod = BlockMasterWorkerServiceGrpc.getCommitBlockMethod) == null) {
BlockMasterWorkerServiceGrpc.getCommitBlockMethod = getCommitBlockMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitBlock"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.CommitBlockPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.CommitBlockPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("CommitBlock"))
.build();
}
}
}
return getCommitBlockMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getGetWorkerIdMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetWorkerId",
requestType = alluxio.grpc.GetWorkerIdPRequest.class,
responseType = alluxio.grpc.GetWorkerIdPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getGetWorkerIdMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getGetWorkerIdMethod;
if ((getGetWorkerIdMethod = BlockMasterWorkerServiceGrpc.getGetWorkerIdMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getGetWorkerIdMethod = BlockMasterWorkerServiceGrpc.getGetWorkerIdMethod) == null) {
BlockMasterWorkerServiceGrpc.getGetWorkerIdMethod = getGetWorkerIdMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkerId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetWorkerIdPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetWorkerIdPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("GetWorkerId"))
.build();
}
}
}
return getGetWorkerIdMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getNotifyWorkerIdMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "NotifyWorkerId",
requestType = alluxio.grpc.NotifyWorkerIdPRequest.class,
responseType = alluxio.grpc.NotifyWorkerIdPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getNotifyWorkerIdMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getNotifyWorkerIdMethod;
if ((getNotifyWorkerIdMethod = BlockMasterWorkerServiceGrpc.getNotifyWorkerIdMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getNotifyWorkerIdMethod = BlockMasterWorkerServiceGrpc.getNotifyWorkerIdMethod) == null) {
BlockMasterWorkerServiceGrpc.getNotifyWorkerIdMethod = getNotifyWorkerIdMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "NotifyWorkerId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.NotifyWorkerIdPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.NotifyWorkerIdPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("NotifyWorkerId"))
.build();
}
}
}
return getNotifyWorkerIdMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterWorker",
requestType = alluxio.grpc.RegisterWorkerPRequest.class,
responseType = alluxio.grpc.RegisterWorkerPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerMethod;
if ((getRegisterWorkerMethod = BlockMasterWorkerServiceGrpc.getRegisterWorkerMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getRegisterWorkerMethod = BlockMasterWorkerServiceGrpc.getRegisterWorkerMethod) == null) {
BlockMasterWorkerServiceGrpc.getRegisterWorkerMethod = getRegisterWorkerMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterWorker"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RegisterWorkerPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RegisterWorkerPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("RegisterWorker"))
.build();
}
}
}
return getRegisterWorkerMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerStreamMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterWorkerStream",
requestType = alluxio.grpc.RegisterWorkerPRequest.class,
responseType = alluxio.grpc.RegisterWorkerPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerStreamMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getRegisterWorkerStreamMethod;
if ((getRegisterWorkerStreamMethod = BlockMasterWorkerServiceGrpc.getRegisterWorkerStreamMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getRegisterWorkerStreamMethod = BlockMasterWorkerServiceGrpc.getRegisterWorkerStreamMethod) == null) {
BlockMasterWorkerServiceGrpc.getRegisterWorkerStreamMethod = getRegisterWorkerStreamMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterWorkerStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RegisterWorkerPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RegisterWorkerPResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("RegisterWorkerStream"))
.build();
}
}
}
return getRegisterWorkerStreamMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getRequestRegisterLeaseMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RequestRegisterLease",
requestType = alluxio.grpc.GetRegisterLeasePRequest.class,
responseType = alluxio.grpc.GetRegisterLeasePResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getRequestRegisterLeaseMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getRequestRegisterLeaseMethod;
if ((getRequestRegisterLeaseMethod = BlockMasterWorkerServiceGrpc.getRequestRegisterLeaseMethod) == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
if ((getRequestRegisterLeaseMethod = BlockMasterWorkerServiceGrpc.getRequestRegisterLeaseMethod) == null) {
BlockMasterWorkerServiceGrpc.getRequestRegisterLeaseMethod = getRequestRegisterLeaseMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RequestRegisterLease"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetRegisterLeasePRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetRegisterLeasePResponse.getDefaultInstance()))
.setSchemaDescriptor(new BlockMasterWorkerServiceMethodDescriptorSupplier("RequestRegisterLease"))
.build();
}
}
}
return getRequestRegisterLeaseMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static BlockMasterWorkerServiceStub newStub(alluxio.shaded.client.io.grpc.Channel channel) {
alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory factory =
new alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BlockMasterWorkerServiceStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceStub(channel, callOptions);
}
};
return BlockMasterWorkerServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static BlockMasterWorkerServiceBlockingStub newBlockingStub(
alluxio.shaded.client.io.grpc.Channel channel) {
alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory factory =
new alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BlockMasterWorkerServiceBlockingStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceBlockingStub(channel, callOptions);
}
};
return BlockMasterWorkerServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static BlockMasterWorkerServiceFutureStub newFutureStub(
alluxio.shaded.client.io.grpc.Channel channel) {
alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory factory =
new alluxio.shaded.client.io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BlockMasterWorkerServiceFutureStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceFutureStub(channel, callOptions);
}
};
return BlockMasterWorkerServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
public interface AsyncService {
/**
*
**
* Periodic block worker heartbeat returns an optional alluxio.shaded.client.com.and for the block worker to execute.
*
*/
default void blockHeartbeat(alluxio.grpc.BlockHeartbeatPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockHeartbeatMethod(), responseObserver);
}
/**
*
**
* Marks the given block as alluxio.shaded.client.com.itted.
*
*/
default void alluxio.shaded.client.com.itBlock(alluxio.grpc.CommitBlockPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitBlockMethod(), responseObserver);
}
/**
*
**
* Returns a worker id for the given network address.
*
*/
default void getWorkerId(alluxio.grpc.GetWorkerIdPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkerIdMethod(), responseObserver);
}
/**
*
**
* Notify all masters about the worker ID.
*
*/
default void notifyWorkerId(alluxio.grpc.NotifyWorkerIdPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNotifyWorkerIdMethod(), responseObserver);
}
/**
*
**
* Registers a worker.
*
*/
default void registerWorker(alluxio.grpc.RegisterWorkerPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterWorkerMethod(), responseObserver);
}
/**
*
**
* Registers a worker in a streaming way
*
*/
default alluxio.shaded.client.io.grpc.stub.StreamObserver registerWorkerStream(
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
return alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getRegisterWorkerStreamMethod(), responseObserver);
}
/**
*
**
* Requests a lease for registration
*
*/
default void requestRegisterLease(alluxio.grpc.GetRegisterLeasePRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRequestRegisterLeaseMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service BlockMasterWorkerService.
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
public static abstract class BlockMasterWorkerServiceImplBase
implements alluxio.shaded.client.io.grpc.BindableService, AsyncService {
@java.lang.Override public final alluxio.shaded.client.io.grpc.ServerServiceDefinition bindService() {
return BlockMasterWorkerServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service BlockMasterWorkerService.
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
public static final class BlockMasterWorkerServiceStub
extends alluxio.shaded.client.io.grpc.stub.AbstractAsyncStub {
private BlockMasterWorkerServiceStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BlockMasterWorkerServiceStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceStub(channel, callOptions);
}
/**
*
**
* Periodic block worker heartbeat returns an optional alluxio.shaded.client.com.and for the block worker to execute.
*
*/
public void blockHeartbeat(alluxio.grpc.BlockHeartbeatPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBlockHeartbeatMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Marks the given block as alluxio.shaded.client.com.itted.
*
*/
public void alluxio.shaded.client.com.itBlock(alluxio.grpc.CommitBlockPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCommitBlockMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Returns a worker id for the given network address.
*
*/
public void getWorkerId(alluxio.grpc.GetWorkerIdPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetWorkerIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Notify all masters about the worker ID.
*
*/
public void notifyWorkerId(alluxio.grpc.NotifyWorkerIdPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getNotifyWorkerIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Registers a worker.
*
*/
public void registerWorker(alluxio.grpc.RegisterWorkerPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRegisterWorkerMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Registers a worker in a streaming way
*
*/
public alluxio.shaded.client.io.grpc.stub.StreamObserver registerWorkerStream(
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getRegisterWorkerStreamMethod(), getCallOptions()), responseObserver);
}
/**
*
**
* Requests a lease for registration
*
*/
public void requestRegisterLease(alluxio.grpc.GetRegisterLeasePRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRequestRegisterLeaseMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service BlockMasterWorkerService.
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
public static final class BlockMasterWorkerServiceBlockingStub
extends alluxio.shaded.client.io.grpc.stub.AbstractBlockingStub {
private BlockMasterWorkerServiceBlockingStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BlockMasterWorkerServiceBlockingStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceBlockingStub(channel, callOptions);
}
/**
*
**
* Periodic block worker heartbeat returns an optional alluxio.shaded.client.com.and for the block worker to execute.
*
*/
public alluxio.grpc.BlockHeartbeatPResponse blockHeartbeat(alluxio.grpc.BlockHeartbeatPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBlockHeartbeatMethod(), getCallOptions(), request);
}
/**
*
**
* Marks the given block as alluxio.shaded.client.com.itted.
*
*/
public alluxio.grpc.CommitBlockPResponse alluxio.shaded.client.com.itBlock(alluxio.grpc.CommitBlockPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCommitBlockMethod(), getCallOptions(), request);
}
/**
*
**
* Returns a worker id for the given network address.
*
*/
public alluxio.grpc.GetWorkerIdPResponse getWorkerId(alluxio.grpc.GetWorkerIdPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetWorkerIdMethod(), getCallOptions(), request);
}
/**
*
**
* Notify all masters about the worker ID.
*
*/
public alluxio.grpc.NotifyWorkerIdPResponse notifyWorkerId(alluxio.grpc.NotifyWorkerIdPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getNotifyWorkerIdMethod(), getCallOptions(), request);
}
/**
*
**
* Registers a worker.
*
*/
public alluxio.grpc.RegisterWorkerPResponse registerWorker(alluxio.grpc.RegisterWorkerPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRegisterWorkerMethod(), getCallOptions(), request);
}
/**
*
**
* Requests a lease for registration
*
*/
public alluxio.grpc.GetRegisterLeasePResponse requestRegisterLease(alluxio.grpc.GetRegisterLeasePRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRequestRegisterLeaseMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service BlockMasterWorkerService.
*
**
* This interface contains block master service endpoints for Alluxio workers.
*
*/
public static final class BlockMasterWorkerServiceFutureStub
extends alluxio.shaded.client.io.grpc.stub.AbstractFutureStub {
private BlockMasterWorkerServiceFutureStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BlockMasterWorkerServiceFutureStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new BlockMasterWorkerServiceFutureStub(channel, callOptions);
}
/**
*
**
* Periodic block worker heartbeat returns an optional alluxio.shaded.client.com.and for the block worker to execute.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture blockHeartbeat(
alluxio.grpc.BlockHeartbeatPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBlockHeartbeatMethod(), getCallOptions()), request);
}
/**
*
**
* Marks the given block as alluxio.shaded.client.com.itted.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture alluxio.shaded.client.com.itBlock(
alluxio.grpc.CommitBlockPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCommitBlockMethod(), getCallOptions()), request);
}
/**
*
**
* Returns a worker id for the given network address.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture getWorkerId(
alluxio.grpc.GetWorkerIdPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetWorkerIdMethod(), getCallOptions()), request);
}
/**
*
**
* Notify all masters about the worker ID.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture notifyWorkerId(
alluxio.grpc.NotifyWorkerIdPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getNotifyWorkerIdMethod(), getCallOptions()), request);
}
/**
*
**
* Registers a worker.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture registerWorker(
alluxio.grpc.RegisterWorkerPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRegisterWorkerMethod(), getCallOptions()), request);
}
/**
*
**
* Requests a lease for registration
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture requestRegisterLease(
alluxio.grpc.GetRegisterLeasePRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRequestRegisterLeaseMethod(), getCallOptions()), request);
}
}
private static final int METHODID_BLOCK_HEARTBEAT = 0;
private static final int METHODID_COMMIT_BLOCK = 1;
private static final int METHODID_GET_WORKER_ID = 2;
private static final int METHODID_NOTIFY_WORKER_ID = 3;
private static final int METHODID_REGISTER_WORKER = 4;
private static final int METHODID_REQUEST_REGISTER_LEASE = 5;
private static final int METHODID_REGISTER_WORKER_STREAM = 6;
private static final class MethodHandlers implements
alluxio.shaded.client.io.grpc.stub.ServerCalls.UnaryMethod,
alluxio.shaded.client.io.grpc.stub.ServerCalls.ServerStreamingMethod,
alluxio.shaded.client.io.grpc.stub.ServerCalls.ClientStreamingMethod,
alluxio.shaded.client.io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_BLOCK_HEARTBEAT:
serviceImpl.blockHeartbeat((alluxio.grpc.BlockHeartbeatPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_COMMIT_BLOCK:
serviceImpl.alluxio.shaded.client.com.itBlock((alluxio.grpc.CommitBlockPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_WORKER_ID:
serviceImpl.getWorkerId((alluxio.grpc.GetWorkerIdPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_NOTIFY_WORKER_ID:
serviceImpl.notifyWorkerId((alluxio.grpc.NotifyWorkerIdPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REGISTER_WORKER:
serviceImpl.registerWorker((alluxio.grpc.RegisterWorkerPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REQUEST_REGISTER_LEASE:
serviceImpl.requestRegisterLease((alluxio.grpc.GetRegisterLeasePRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public alluxio.shaded.client.io.grpc.stub.StreamObserver invoke(
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_REGISTER_WORKER_STREAM:
return (alluxio.shaded.client.io.grpc.stub.StreamObserver) serviceImpl.registerWorkerStream(
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
public static final alluxio.shaded.client.io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return alluxio.shaded.client.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getBlockHeartbeatMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.BlockHeartbeatPRequest,
alluxio.grpc.BlockHeartbeatPResponse>(
service, METHODID_BLOCK_HEARTBEAT)))
.addMethod(
getCommitBlockMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.CommitBlockPRequest,
alluxio.grpc.CommitBlockPResponse>(
service, METHODID_COMMIT_BLOCK)))
.addMethod(
getGetWorkerIdMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.GetWorkerIdPRequest,
alluxio.grpc.GetWorkerIdPResponse>(
service, METHODID_GET_WORKER_ID)))
.addMethod(
getNotifyWorkerIdMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.NotifyWorkerIdPRequest,
alluxio.grpc.NotifyWorkerIdPResponse>(
service, METHODID_NOTIFY_WORKER_ID)))
.addMethod(
getRegisterWorkerMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.RegisterWorkerPRequest,
alluxio.grpc.RegisterWorkerPResponse>(
service, METHODID_REGISTER_WORKER)))
.addMethod(
getRegisterWorkerStreamMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
alluxio.grpc.RegisterWorkerPRequest,
alluxio.grpc.RegisterWorkerPResponse>(
service, METHODID_REGISTER_WORKER_STREAM)))
.addMethod(
getRequestRegisterLeaseMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.GetRegisterLeasePRequest,
alluxio.grpc.GetRegisterLeasePResponse>(
service, METHODID_REQUEST_REGISTER_LEASE)))
.build();
}
private static abstract class BlockMasterWorkerServiceBaseDescriptorSupplier
implements alluxio.shaded.client.io.grpc.protobuf.ProtoFileDescriptorSupplier, alluxio.shaded.client.io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BlockMasterWorkerServiceBaseDescriptorSupplier() {}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return alluxio.grpc.BlockMasterProto.getDescriptor();
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("BlockMasterWorkerService");
}
}
private static final class BlockMasterWorkerServiceFileDescriptorSupplier
extends BlockMasterWorkerServiceBaseDescriptorSupplier {
BlockMasterWorkerServiceFileDescriptorSupplier() {}
}
private static final class BlockMasterWorkerServiceMethodDescriptorSupplier
extends BlockMasterWorkerServiceBaseDescriptorSupplier
implements alluxio.shaded.client.io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
BlockMasterWorkerServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile alluxio.shaded.client.io.grpc.ServiceDescriptor serviceDescriptor;
public static alluxio.shaded.client.io.grpc.ServiceDescriptor getServiceDescriptor() {
alluxio.shaded.client.io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (BlockMasterWorkerServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = alluxio.shaded.client.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new BlockMasterWorkerServiceFileDescriptorSupplier())
.addMethod(getBlockHeartbeatMethod())
.addMethod(getCommitBlockMethod())
.addMethod(getGetWorkerIdMethod())
.addMethod(getNotifyWorkerIdMethod())
.addMethod(getRegisterWorkerMethod())
.addMethod(getRegisterWorkerStreamMethod())
.addMethod(getRequestRegisterLeaseMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy