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