Class RefreshHFilesEndpoint
java.lang.Object
org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService
org.apache.hadoop.hbase.coprocessor.example.RefreshHFilesEndpoint
- All Implemented Interfaces:
com.google.protobuf.Service,Coprocessor,RegionCoprocessor
@Private
public class RefreshHFilesEndpoint
extends org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService
implements RegionCoprocessor
Coprocessor endpoint to refresh HFiles on replica.
For the protocol buffer definition of the RefreshHFilesService, see the source file located under hbase-protocol/src/main/protobuf/RefreshHFiles.proto.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService
org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService.BlockingInterface, org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService.Interface, org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService.StubNested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RegionCoprocessorEnvironmentprotected static final org.slf4j.LoggerFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<com.google.protobuf.Service>Coprocessor endpoints providing protobuf services should override this method.voidrefreshHFiles(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesResponse> done) voidCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.voidCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.Methods inherited from class org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService
callMethod, getDescriptor, getDescriptorForType, getRequestPrototype, getResponsePrototype, newBlockingStub, newReflectiveBlockingService, newReflectiveService, newStubMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
getBulkLoadObserver, getEndpointObserver, getRegionObserver
-
Field Details
-
LOG
-
env
-
-
Constructor Details
-
RefreshHFilesEndpoint
public RefreshHFilesEndpoint()
-
-
Method Details
-
getServices
Description copied from interface:CoprocessorCoprocessor endpoints providing protobuf services should override this method.- Specified by:
getServicesin interfaceCoprocessor- Returns:
- Iterable of
Services or empty collection. Implementations should never return null.
-
refreshHFiles
public void refreshHFiles(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesResponse> done) - Specified by:
refreshHFilesin classorg.apache.hadoop.hbase.protobuf.generated.RefreshHFilesProtos.RefreshHFilesService
-
start
Description copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.- Specified by:
startin interfaceCoprocessor- Throws:
IOException
-
stop
Description copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.- Specified by:
stopin interfaceCoprocessor- Throws:
IOException
-