Class EndpointReadOnlyController
java.lang.Object
org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
org.apache.hadoop.hbase.security.access.EndpointReadOnlyController
- All Implemented Interfaces:
Coprocessor,EndpointObserver,RegionCoprocessor
@LimitedPrivate("Configuration")
public class EndpointReadOnlyController
extends AbstractReadOnlyController
implements EndpointObserver, RegionCoprocessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State -
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hbase.thirdparty.com.google.protobuf.MessagepreEndpointInvocation(ObserverContext<? extends RegionCoprocessorEnvironment> ctx, org.apache.hbase.thirdparty.com.google.protobuf.Service service, String methodName, org.apache.hbase.thirdparty.com.google.protobuf.Message request) Called before an Endpoint service method is invoked.Methods inherited from class org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
internalReadOnlyGuard, isWritableInReadOnlyMode, isWritableInReadOnlyMode, manageActiveClusterIdFile, start, stopMethods 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
getServices, start, stopMethods inherited from interface org.apache.hadoop.hbase.coprocessor.EndpointObserver
postEndpointInvocationMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
getBulkLoadObserver, getRegionObserver
-
Constructor Details
-
EndpointReadOnlyController
public EndpointReadOnlyController()
-
-
Method Details
-
getEndpointObserver
- Specified by:
getEndpointObserverin interfaceRegionCoprocessor
-
preEndpointInvocation
public org.apache.hbase.thirdparty.com.google.protobuf.Message preEndpointInvocation(ObserverContext<? extends RegionCoprocessorEnvironment> ctx, org.apache.hbase.thirdparty.com.google.protobuf.Service service, String methodName, org.apache.hbase.thirdparty.com.google.protobuf.Message request) throws IOException Description copied from interface:EndpointObserverCalled before an Endpoint service method is invoked. The request message can be altered by returning a new instance. Throwing an exception will abort the invocation. CallingObserverContext.bypass()has no effect in this hook.- Specified by:
preEndpointInvocationin interfaceEndpointObserver- Parameters:
ctx- the environment provided by the region serverservice- the endpoint servicemethodName- the invoked service methodrequest- Request message expected by givenService's method (by the namemethodName).- Returns:
- the possibly modified message
- Throws:
IOException
-