public abstract class CoprocessorHost.ObserverOperationWithoutResult<O> extends CoprocessorHost.ObserverOperation<O>
observerGetter
Constructor and Description |
---|
ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter) |
ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter,
User user) |
ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter,
User user,
boolean bypassable) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
call(O observer) |
(package private) void |
callObserver()
In case of coprocessors which have many kinds of observers (for eg,
RegionCoprocessor
has BulkLoadObserver, RegionObserver, etc), some implementations may not need all
observers, in which case they will return null for that observer's getter. |
postEnvCall
bypass, createAndPrepare, getCaller, getEnvironment, isBypassable, prepare, shouldBypass
public ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter)
public ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter, User user)
public ObserverOperationWithoutResult(CoprocessorHost.ObserverGetter<C,O> observerGetter, User user, boolean bypassable)
protected abstract void call(O observer) throws IOException
IOException
void callObserver() throws IOException
RegionCoprocessor
has BulkLoadObserver, RegionObserver, etc), some implementations may not need all
observers, in which case they will return null for that observer's getter.
We simply ignore such cases.callObserver
in class CoprocessorHost.ObserverOperation<O>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.