/** * @param req State change request. */ private void onFinalActivate(final StateChangeRequest req) { ctx.dataStructures().onBeforeActivate(); checkLocalNodeInBaseline(globalState.baselineTopology()); ctx.closure().runLocalSafe(new Runnable() { @Override public void run() { boolean client = ctx.clientNode(); try { if (ctx.service() instanceof GridServiceProcessor) { GridServiceProcessor srvcProc = (GridServiceProcessor)ctx.service(); srvcProc.onUtilityCacheStarted(); srvcProc.onActivate(ctx); } ctx.dataStructures().onActivate(ctx); ctx.igfs().onActivate(ctx); ctx.task().onActivate(ctx); ctx.encryption().onActivate(ctx); ((IgniteChangeGlobalStateSupport)ctx.distributedMetastorage()).onActivate(ctx); if (log.isInfoEnabled()) log.info("Successfully performed final activation steps [nodeId=" + ctx.localNodeId() + ", client=" + client + ", topVer=" + req.topologyVersion() + "]"); } catch (Exception ex) { throw new IgniteException(ex); } } }); }
/** * @param req State change request. */ private void onFinalActivate(final StateChangeRequest req) { ctx.dataStructures().onBeforeActivate(); checkLocalNodeInBaseline(globalState.baselineTopology()); ctx.closure().runLocalSafe(new Runnable() { @Override public void run() { boolean client = ctx.clientNode(); Exception e = null; try { ctx.service().onUtilityCacheStarted(); ctx.service().onActivate(ctx); ctx.dataStructures().onActivate(ctx); ctx.igfs().onActivate(ctx); ctx.task().onActivate(ctx); ctx.encryption().onActivate(ctx); if (log.isInfoEnabled()) log.info("Successfully performed final activation steps [nodeId=" + ctx.localNodeId() + ", client=" + client + ", topVer=" + req.topologyVersion() + "]"); } catch (Exception ex) { throw new IgniteException(ex); } } }); }