
alluxio.grpc.MetaMasterConfigurationServiceGrpc Maven / Gradle / Ivy
package alluxio.grpc;
import static alluxio.shaded.client.io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
@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/meta_master.proto")
@alluxio.shaded.client.io.grpc.stub.annotations.GrpcGenerated
public final class MetaMasterConfigurationServiceGrpc {
private MetaMasterConfigurationServiceGrpc() {}
public static final String SERVICE_NAME = "alluxio.grpc.meta.MetaMasterConfigurationService";
// Static method descriptors that strictly reflect the proto.
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigurationMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfiguration",
requestType = alluxio.grpc.GetConfigurationPOptions.class,
responseType = alluxio.grpc.GetConfigurationPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigurationMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigurationMethod;
if ((getGetConfigurationMethod = MetaMasterConfigurationServiceGrpc.getGetConfigurationMethod) == null) {
synchronized (MetaMasterConfigurationServiceGrpc.class) {
if ((getGetConfigurationMethod = MetaMasterConfigurationServiceGrpc.getGetConfigurationMethod) == null) {
MetaMasterConfigurationServiceGrpc.getGetConfigurationMethod = getGetConfigurationMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfiguration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetConfigurationPOptions.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetConfigurationPResponse.getDefaultInstance()))
.setSchemaDescriptor(new MetaMasterConfigurationServiceMethodDescriptorSupplier("GetConfiguration"))
.build();
}
}
}
return getGetConfigurationMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getSetPathConfigurationMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetPathConfiguration",
requestType = alluxio.grpc.SetPathConfigurationPRequest.class,
responseType = alluxio.grpc.SetPathConfigurationPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getSetPathConfigurationMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getSetPathConfigurationMethod;
if ((getSetPathConfigurationMethod = MetaMasterConfigurationServiceGrpc.getSetPathConfigurationMethod) == null) {
synchronized (MetaMasterConfigurationServiceGrpc.class) {
if ((getSetPathConfigurationMethod = MetaMasterConfigurationServiceGrpc.getSetPathConfigurationMethod) == null) {
MetaMasterConfigurationServiceGrpc.getSetPathConfigurationMethod = getSetPathConfigurationMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetPathConfiguration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.SetPathConfigurationPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.SetPathConfigurationPResponse.getDefaultInstance()))
.setSchemaDescriptor(new MetaMasterConfigurationServiceMethodDescriptorSupplier("SetPathConfiguration"))
.build();
}
}
}
return getSetPathConfigurationMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getRemovePathConfigurationMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemovePathConfiguration",
requestType = alluxio.grpc.RemovePathConfigurationPRequest.class,
responseType = alluxio.grpc.RemovePathConfigurationPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getRemovePathConfigurationMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getRemovePathConfigurationMethod;
if ((getRemovePathConfigurationMethod = MetaMasterConfigurationServiceGrpc.getRemovePathConfigurationMethod) == null) {
synchronized (MetaMasterConfigurationServiceGrpc.class) {
if ((getRemovePathConfigurationMethod = MetaMasterConfigurationServiceGrpc.getRemovePathConfigurationMethod) == null) {
MetaMasterConfigurationServiceGrpc.getRemovePathConfigurationMethod = getRemovePathConfigurationMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemovePathConfiguration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RemovePathConfigurationPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.RemovePathConfigurationPResponse.getDefaultInstance()))
.setSchemaDescriptor(new MetaMasterConfigurationServiceMethodDescriptorSupplier("RemovePathConfiguration"))
.build();
}
}
}
return getRemovePathConfigurationMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigHashMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfigHash",
requestType = alluxio.grpc.GetConfigHashPOptions.class,
responseType = alluxio.grpc.GetConfigHashPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigHashMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getGetConfigHashMethod;
if ((getGetConfigHashMethod = MetaMasterConfigurationServiceGrpc.getGetConfigHashMethod) == null) {
synchronized (MetaMasterConfigurationServiceGrpc.class) {
if ((getGetConfigHashMethod = MetaMasterConfigurationServiceGrpc.getGetConfigHashMethod) == null) {
MetaMasterConfigurationServiceGrpc.getGetConfigHashMethod = getGetConfigHashMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfigHash"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetConfigHashPOptions.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.GetConfigHashPResponse.getDefaultInstance()))
.setSchemaDescriptor(new MetaMasterConfigurationServiceMethodDescriptorSupplier("GetConfigHash"))
.build();
}
}
}
return getGetConfigHashMethod;
}
private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getUpdateConfigurationMethod;
@alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateConfiguration",
requestType = alluxio.grpc.UpdateConfigurationPRequest.class,
responseType = alluxio.grpc.UpdateConfigurationPResponse.class,
methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
public static alluxio.shaded.client.io.grpc.MethodDescriptor getUpdateConfigurationMethod() {
alluxio.shaded.client.io.grpc.MethodDescriptor getUpdateConfigurationMethod;
if ((getUpdateConfigurationMethod = MetaMasterConfigurationServiceGrpc.getUpdateConfigurationMethod) == null) {
synchronized (MetaMasterConfigurationServiceGrpc.class) {
if ((getUpdateConfigurationMethod = MetaMasterConfigurationServiceGrpc.getUpdateConfigurationMethod) == null) {
MetaMasterConfigurationServiceGrpc.getUpdateConfigurationMethod = getUpdateConfigurationMethod =
alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder()
.setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfiguration"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.UpdateConfigurationPRequest.getDefaultInstance()))
.setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller(
alluxio.grpc.UpdateConfigurationPResponse.getDefaultInstance()))
.setSchemaDescriptor(new MetaMasterConfigurationServiceMethodDescriptorSupplier("UpdateConfiguration"))
.build();
}
}
}
return getUpdateConfigurationMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static MetaMasterConfigurationServiceStub 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 MetaMasterConfigurationServiceStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceStub(channel, callOptions);
}
};
return MetaMasterConfigurationServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static MetaMasterConfigurationServiceBlockingStub 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 MetaMasterConfigurationServiceBlockingStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceBlockingStub(channel, callOptions);
}
};
return MetaMasterConfigurationServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static MetaMasterConfigurationServiceFutureStub 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 MetaMasterConfigurationServiceFutureStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceFutureStub(channel, callOptions);
}
};
return MetaMasterConfigurationServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
public interface AsyncService {
/**
*
**
* Returns a list of Alluxio runtime configuration information.
*
*/
default void getConfiguration(alluxio.grpc.GetConfigurationPOptions request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigurationMethod(), responseObserver);
}
/**
*
**
* Sets a property for a path.
*
*/
default void setPathConfiguration(alluxio.grpc.SetPathConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetPathConfigurationMethod(), responseObserver);
}
/**
*
**
* Removes properties for a path, if the keys are empty, it means remove all properties.
*
*/
default void removePathConfiguration(alluxio.grpc.RemovePathConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemovePathConfigurationMethod(), responseObserver);
}
/**
*
**
* Returns the hashes of cluster and path level configurations.
*
*/
default void getConfigHash(alluxio.grpc.GetConfigHashPOptions request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigHashMethod(), responseObserver);
}
/**
*/
default void updateConfiguration(alluxio.grpc.UpdateConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigurationMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service MetaMasterConfigurationService.
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
public static abstract class MetaMasterConfigurationServiceImplBase
implements alluxio.shaded.client.io.grpc.BindableService, AsyncService {
@java.lang.Override public final alluxio.shaded.client.io.grpc.ServerServiceDefinition bindService() {
return MetaMasterConfigurationServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service MetaMasterConfigurationService.
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
public static final class MetaMasterConfigurationServiceStub
extends alluxio.shaded.client.io.grpc.stub.AbstractAsyncStub {
private MetaMasterConfigurationServiceStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetaMasterConfigurationServiceStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceStub(channel, callOptions);
}
/**
*
**
* Returns a list of Alluxio runtime configuration information.
*
*/
public void getConfiguration(alluxio.grpc.GetConfigurationPOptions request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigurationMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Sets a property for a path.
*
*/
public void setPathConfiguration(alluxio.grpc.SetPathConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetPathConfigurationMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Removes properties for a path, if the keys are empty, it means remove all properties.
*
*/
public void removePathConfiguration(alluxio.grpc.RemovePathConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemovePathConfigurationMethod(), getCallOptions()), request, responseObserver);
}
/**
*
**
* Returns the hashes of cluster and path level configurations.
*
*/
public void getConfigHash(alluxio.grpc.GetConfigHashPOptions request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigHashMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateConfiguration(alluxio.grpc.UpdateConfigurationPRequest request,
alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) {
alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateConfigurationMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service MetaMasterConfigurationService.
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
public static final class MetaMasterConfigurationServiceBlockingStub
extends alluxio.shaded.client.io.grpc.stub.AbstractBlockingStub {
private MetaMasterConfigurationServiceBlockingStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetaMasterConfigurationServiceBlockingStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceBlockingStub(channel, callOptions);
}
/**
*
**
* Returns a list of Alluxio runtime configuration information.
*
*/
public alluxio.grpc.GetConfigurationPResponse getConfiguration(alluxio.grpc.GetConfigurationPOptions request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigurationMethod(), getCallOptions(), request);
}
/**
*
**
* Sets a property for a path.
*
*/
public alluxio.grpc.SetPathConfigurationPResponse setPathConfiguration(alluxio.grpc.SetPathConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetPathConfigurationMethod(), getCallOptions(), request);
}
/**
*
**
* Removes properties for a path, if the keys are empty, it means remove all properties.
*
*/
public alluxio.grpc.RemovePathConfigurationPResponse removePathConfiguration(alluxio.grpc.RemovePathConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemovePathConfigurationMethod(), getCallOptions(), request);
}
/**
*
**
* Returns the hashes of cluster and path level configurations.
*
*/
public alluxio.grpc.GetConfigHashPResponse getConfigHash(alluxio.grpc.GetConfigHashPOptions request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigHashMethod(), getCallOptions(), request);
}
/**
*/
public alluxio.grpc.UpdateConfigurationPResponse updateConfiguration(alluxio.grpc.UpdateConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateConfigurationMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service MetaMasterConfigurationService.
*
**
* This interface contains meta master service endpoints for Alluxio clients
* to query cluster configuration.
*
*/
public static final class MetaMasterConfigurationServiceFutureStub
extends alluxio.shaded.client.io.grpc.stub.AbstractFutureStub {
private MetaMasterConfigurationServiceFutureStub(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetaMasterConfigurationServiceFutureStub build(
alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) {
return new MetaMasterConfigurationServiceFutureStub(channel, callOptions);
}
/**
*
**
* Returns a list of Alluxio runtime configuration information.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture getConfiguration(
alluxio.grpc.GetConfigurationPOptions request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigurationMethod(), getCallOptions()), request);
}
/**
*
**
* Sets a property for a path.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture setPathConfiguration(
alluxio.grpc.SetPathConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetPathConfigurationMethod(), getCallOptions()), request);
}
/**
*
**
* Removes properties for a path, if the keys are empty, it means remove all properties.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture removePathConfiguration(
alluxio.grpc.RemovePathConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemovePathConfigurationMethod(), getCallOptions()), request);
}
/**
*
**
* Returns the hashes of cluster and path level configurations.
*
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture getConfigHash(
alluxio.grpc.GetConfigHashPOptions request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigHashMethod(), getCallOptions()), request);
}
/**
*/
public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture updateConfiguration(
alluxio.grpc.UpdateConfigurationPRequest request) {
return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateConfigurationMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_CONFIGURATION = 0;
private static final int METHODID_SET_PATH_CONFIGURATION = 1;
private static final int METHODID_REMOVE_PATH_CONFIGURATION = 2;
private static final int METHODID_GET_CONFIG_HASH = 3;
private static final int METHODID_UPDATE_CONFIGURATION = 4;
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_GET_CONFIGURATION:
serviceImpl.getConfiguration((alluxio.grpc.GetConfigurationPOptions) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_PATH_CONFIGURATION:
serviceImpl.setPathConfiguration((alluxio.grpc.SetPathConfigurationPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_PATH_CONFIGURATION:
serviceImpl.removePathConfiguration((alluxio.grpc.RemovePathConfigurationPRequest) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONFIG_HASH:
serviceImpl.getConfigHash((alluxio.grpc.GetConfigHashPOptions) request,
(alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CONFIGURATION:
serviceImpl.updateConfiguration((alluxio.grpc.UpdateConfigurationPRequest) 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) {
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(
getGetConfigurationMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.GetConfigurationPOptions,
alluxio.grpc.GetConfigurationPResponse>(
service, METHODID_GET_CONFIGURATION)))
.addMethod(
getSetPathConfigurationMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.SetPathConfigurationPRequest,
alluxio.grpc.SetPathConfigurationPResponse>(
service, METHODID_SET_PATH_CONFIGURATION)))
.addMethod(
getRemovePathConfigurationMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.RemovePathConfigurationPRequest,
alluxio.grpc.RemovePathConfigurationPResponse>(
service, METHODID_REMOVE_PATH_CONFIGURATION)))
.addMethod(
getGetConfigHashMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.GetConfigHashPOptions,
alluxio.grpc.GetConfigHashPResponse>(
service, METHODID_GET_CONFIG_HASH)))
.addMethod(
getUpdateConfigurationMethod(),
alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
alluxio.grpc.UpdateConfigurationPRequest,
alluxio.grpc.UpdateConfigurationPResponse>(
service, METHODID_UPDATE_CONFIGURATION)))
.build();
}
private static abstract class MetaMasterConfigurationServiceBaseDescriptorSupplier
implements alluxio.shaded.client.io.grpc.protobuf.ProtoFileDescriptorSupplier, alluxio.shaded.client.io.grpc.protobuf.ProtoServiceDescriptorSupplier {
MetaMasterConfigurationServiceBaseDescriptorSupplier() {}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return alluxio.grpc.MetaMasterProto.getDescriptor();
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("MetaMasterConfigurationService");
}
}
private static final class MetaMasterConfigurationServiceFileDescriptorSupplier
extends MetaMasterConfigurationServiceBaseDescriptorSupplier {
MetaMasterConfigurationServiceFileDescriptorSupplier() {}
}
private static final class MetaMasterConfigurationServiceMethodDescriptorSupplier
extends MetaMasterConfigurationServiceBaseDescriptorSupplier
implements alluxio.shaded.client.io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
MetaMasterConfigurationServiceMethodDescriptorSupplier(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 (MetaMasterConfigurationServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = alluxio.shaded.client.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new MetaMasterConfigurationServiceFileDescriptorSupplier())
.addMethod(getGetConfigurationMethod())
.addMethod(getSetPathConfigurationMethod())
.addMethod(getRemovePathConfigurationMethod())
.addMethod(getGetConfigHashMethod())
.addMethod(getUpdateConfigurationMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy