All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alluxio.grpc.FileSystemMasterJobServiceGrpc Maven / Gradle / Ivy

package alluxio.grpc;

import static alluxio.shaded.client.io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 **
 * This interface contains file system 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/file_system_master.proto") @alluxio.shaded.client.io.grpc.stub.annotations.GrpcGenerated public final class FileSystemMasterJobServiceGrpc { private FileSystemMasterJobServiceGrpc() {} public static final String SERVICE_NAME = "alluxio.grpc.file.FileSystemMasterJobService"; // Static method descriptors that strictly reflect the proto. private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getGetFileInfoMethod; @alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetFileInfo", requestType = alluxio.grpc.GetFileInfoPRequest.class, responseType = alluxio.grpc.GetFileInfoPResponse.class, methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY) public static alluxio.shaded.client.io.grpc.MethodDescriptor getGetFileInfoMethod() { alluxio.shaded.client.io.grpc.MethodDescriptor getGetFileInfoMethod; if ((getGetFileInfoMethod = FileSystemMasterJobServiceGrpc.getGetFileInfoMethod) == null) { synchronized (FileSystemMasterJobServiceGrpc.class) { if ((getGetFileInfoMethod = FileSystemMasterJobServiceGrpc.getGetFileInfoMethod) == null) { FileSystemMasterJobServiceGrpc.getGetFileInfoMethod = getGetFileInfoMethod = alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder() .setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFileInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.GetFileInfoPRequest.getDefaultInstance())) .setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.GetFileInfoPResponse.getDefaultInstance())) .setSchemaDescriptor(new FileSystemMasterJobServiceMethodDescriptorSupplier("GetFileInfo")) .build(); } } } return getGetFileInfoMethod; } private static volatile alluxio.shaded.client.io.grpc.MethodDescriptor getGetUfsInfoMethod; @alluxio.shaded.client.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetUfsInfo", requestType = alluxio.grpc.GetUfsInfoPRequest.class, responseType = alluxio.grpc.GetUfsInfoPResponse.class, methodType = alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY) public static alluxio.shaded.client.io.grpc.MethodDescriptor getGetUfsInfoMethod() { alluxio.shaded.client.io.grpc.MethodDescriptor getGetUfsInfoMethod; if ((getGetUfsInfoMethod = FileSystemMasterJobServiceGrpc.getGetUfsInfoMethod) == null) { synchronized (FileSystemMasterJobServiceGrpc.class) { if ((getGetUfsInfoMethod = FileSystemMasterJobServiceGrpc.getGetUfsInfoMethod) == null) { FileSystemMasterJobServiceGrpc.getGetUfsInfoMethod = getGetUfsInfoMethod = alluxio.shaded.client.io.grpc.MethodDescriptor.newBuilder() .setType(alluxio.shaded.client.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUfsInfo")) .setSampledToLocalTracing(true) .setRequestMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.GetUfsInfoPRequest.getDefaultInstance())) .setResponseMarshaller(alluxio.shaded.client.io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.GetUfsInfoPResponse.getDefaultInstance())) .setSchemaDescriptor(new FileSystemMasterJobServiceMethodDescriptorSupplier("GetUfsInfo")) .build(); } } } return getGetUfsInfoMethod; } /** * Creates a new async stub that supports all call types for the service */ public static FileSystemMasterJobServiceStub 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 FileSystemMasterJobServiceStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceStub(channel, callOptions); } }; return FileSystemMasterJobServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static FileSystemMasterJobServiceBlockingStub 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 FileSystemMasterJobServiceBlockingStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceBlockingStub(channel, callOptions); } }; return FileSystemMasterJobServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static FileSystemMasterJobServiceFutureStub 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 FileSystemMasterJobServiceFutureStub newStub(alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceFutureStub(channel, callOptions); } }; return FileSystemMasterJobServiceFutureStub.newStub(factory, channel); } /** *
   **
   * This interface contains file system master service endpoints for Alluxio workers.
   * 
*/ public interface AsyncService { /** *
     * Returns the file information for a file or directory identified by the given file id.
     * 
*/ default void getFileInfo(alluxio.grpc.GetFileInfoPRequest request, alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) { alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFileInfoMethod(), responseObserver); } /** *
     **
     * Returns the UFS information for the given mount point identified by its id.
     * 
*/ default void getUfsInfo(alluxio.grpc.GetUfsInfoPRequest request, alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) { alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUfsInfoMethod(), responseObserver); } } /** * Base class for the server implementation of the service FileSystemMasterJobService. *
   **
   * This interface contains file system master service endpoints for Alluxio workers.
   * 
*/ public static abstract class FileSystemMasterJobServiceImplBase implements alluxio.shaded.client.io.grpc.BindableService, AsyncService { @java.lang.Override public final alluxio.shaded.client.io.grpc.ServerServiceDefinition bindService() { return FileSystemMasterJobServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service FileSystemMasterJobService. *
   **
   * This interface contains file system master service endpoints for Alluxio workers.
   * 
*/ public static final class FileSystemMasterJobServiceStub extends alluxio.shaded.client.io.grpc.stub.AbstractAsyncStub { private FileSystemMasterJobServiceStub( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FileSystemMasterJobServiceStub build( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceStub(channel, callOptions); } /** *
     * Returns the file information for a file or directory identified by the given file id.
     * 
*/ public void getFileInfo(alluxio.grpc.GetFileInfoPRequest request, alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) { alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetFileInfoMethod(), getCallOptions()), request, responseObserver); } /** *
     **
     * Returns the UFS information for the given mount point identified by its id.
     * 
*/ public void getUfsInfo(alluxio.grpc.GetUfsInfoPRequest request, alluxio.shaded.client.io.grpc.stub.StreamObserver responseObserver) { alluxio.shaded.client.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetUfsInfoMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service FileSystemMasterJobService. *
   **
   * This interface contains file system master service endpoints for Alluxio workers.
   * 
*/ public static final class FileSystemMasterJobServiceBlockingStub extends alluxio.shaded.client.io.grpc.stub.AbstractBlockingStub { private FileSystemMasterJobServiceBlockingStub( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FileSystemMasterJobServiceBlockingStub build( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceBlockingStub(channel, callOptions); } /** *
     * Returns the file information for a file or directory identified by the given file id.
     * 
*/ public alluxio.grpc.GetFileInfoPResponse getFileInfo(alluxio.grpc.GetFileInfoPRequest request) { return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetFileInfoMethod(), getCallOptions(), request); } /** *
     **
     * Returns the UFS information for the given mount point identified by its id.
     * 
*/ public alluxio.grpc.GetUfsInfoPResponse getUfsInfo(alluxio.grpc.GetUfsInfoPRequest request) { return alluxio.shaded.client.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetUfsInfoMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service FileSystemMasterJobService. *
   **
   * This interface contains file system master service endpoints for Alluxio workers.
   * 
*/ public static final class FileSystemMasterJobServiceFutureStub extends alluxio.shaded.client.io.grpc.stub.AbstractFutureStub { private FileSystemMasterJobServiceFutureStub( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FileSystemMasterJobServiceFutureStub build( alluxio.shaded.client.io.grpc.Channel channel, alluxio.shaded.client.io.grpc.CallOptions callOptions) { return new FileSystemMasterJobServiceFutureStub(channel, callOptions); } /** *
     * Returns the file information for a file or directory identified by the given file id.
     * 
*/ public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture getFileInfo( alluxio.grpc.GetFileInfoPRequest request) { return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetFileInfoMethod(), getCallOptions()), request); } /** *
     **
     * Returns the UFS information for the given mount point identified by its id.
     * 
*/ public alluxio.shaded.client.com.google.alluxio.shaded.client.com.on.util.concurrent.ListenableFuture getUfsInfo( alluxio.grpc.GetUfsInfoPRequest request) { return alluxio.shaded.client.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetUfsInfoMethod(), getCallOptions()), request); } } private static final int METHODID_GET_FILE_INFO = 0; private static final int METHODID_GET_UFS_INFO = 1; 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_FILE_INFO: serviceImpl.getFileInfo((alluxio.grpc.GetFileInfoPRequest) request, (alluxio.shaded.client.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_UFS_INFO: serviceImpl.getUfsInfo((alluxio.grpc.GetUfsInfoPRequest) 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( getGetFileInfoMethod(), alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< alluxio.grpc.GetFileInfoPRequest, alluxio.grpc.GetFileInfoPResponse>( service, METHODID_GET_FILE_INFO))) .addMethod( getGetUfsInfoMethod(), alluxio.shaded.client.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< alluxio.grpc.GetUfsInfoPRequest, alluxio.grpc.GetUfsInfoPResponse>( service, METHODID_GET_UFS_INFO))) .build(); } private static abstract class FileSystemMasterJobServiceBaseDescriptorSupplier implements alluxio.shaded.client.io.grpc.protobuf.ProtoFileDescriptorSupplier, alluxio.shaded.client.io.grpc.protobuf.ProtoServiceDescriptorSupplier { FileSystemMasterJobServiceBaseDescriptorSupplier() {} @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return alluxio.grpc.FileSystemMasterProto.getDescriptor(); } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("FileSystemMasterJobService"); } } private static final class FileSystemMasterJobServiceFileDescriptorSupplier extends FileSystemMasterJobServiceBaseDescriptorSupplier { FileSystemMasterJobServiceFileDescriptorSupplier() {} } private static final class FileSystemMasterJobServiceMethodDescriptorSupplier extends FileSystemMasterJobServiceBaseDescriptorSupplier implements alluxio.shaded.client.io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; FileSystemMasterJobServiceMethodDescriptorSupplier(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 (FileSystemMasterJobServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = alluxio.shaded.client.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new FileSystemMasterJobServiceFileDescriptorSupplier()) .addMethod(getGetFileInfoMethod()) .addMethod(getGetUfsInfoMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy