@Override public void call(RegionObserver observer) throws IOException { observer.preClose(this, abortRequested); } });
@Override public void preClose(ObserverContext<RegionCoprocessorEnvironment> c, boolean abortRequested) throws IOException { delegate.preClose(c, abortRequested); }
@Override public void call(RegionObserver oserver, ObserverContext<RegionCoprocessorEnvironment> ctx) throws IOException { oserver.preClose(ctx, abortRequested); } });
@Override public void preClose(ObserverContext<RegionCoprocessorEnvironment> c, boolean abortRequested) throws IOException { delegate.preClose(c, abortRequested); }
@Override public void preClose(ObserverContext<RegionCoprocessorEnvironment> c, boolean abortRequested) throws IOException { delegate.preClose(c, abortRequested); }
@Override public void preClose(ObserverContext<RegionCoprocessorEnvironment> e, boolean abortRequested) throws IOException { if(LOG.isDebugEnabled()) { LOG.debug("==> HBaseAtlasCoprocessor.preClose()"); } try { activatePluginClassLoader(); implRegionObserver.preClose(e, abortRequested); } finally { deactivatePluginClassLoader(); } if(LOG.isDebugEnabled()) { LOG.debug("<== HBaseAtlasCoprocessor.preClose()"); } }
/** * Invoked before a region is closed * @param abortRequested true if the server is aborting */ public void preClose(boolean abortRequested) throws IOException { ObserverContext<RegionCoprocessorEnvironment> ctx = null; for (RegionEnvironment env: coprocessors) { if (env.getInstance() instanceof RegionObserver) { ctx = ObserverContext.createAndPrepare(env, ctx); try { ((RegionObserver)env.getInstance()).preClose(ctx, abortRequested); } catch (Throwable e) { handleCoprocessorThrowable(env, e); } } } }