@Override public void call(MasterObserver observer) throws IOException { observer.postDeleteSnapshot(this, snapshot); } });
@Override public void call(MasterObserver oserver, ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException { oserver.postDeleteSnapshot(ctx, snapshot); } });
@Override public void postDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot) throws IOException { if(LOG.isDebugEnabled()) { LOG.debug("==> HBaseAtlasCoprocessor.postDeleteSnapshot()"); } try { activatePluginClassLoader(); implMasterObserver.postDeleteSnapshot(ctx, snapshot); } finally { deactivatePluginClassLoader(); } if(LOG.isDebugEnabled()) { LOG.debug("<== HBaseAtlasCoprocessor.postDeleteSnapshot()"); } }
public void postDeleteSnapshot(final SnapshotDescription snapshot) throws IOException { ObserverContext<MasterCoprocessorEnvironment> ctx = null; for (MasterEnvironment env: coprocessors) { if (env.getInstance() instanceof MasterObserver) { ctx = ObserverContext.createAndPrepare(env, ctx); try { ((MasterObserver)env.getInstance()).postDeleteSnapshot(ctx, snapshot); } catch (Throwable e) { handleCoprocessorThrowable(env, e); } if (ctx.shouldComplete()) { break; } } } } }