/** {@inheritDoc} */ @Override protected void onKernalStart0() throws GridException { if (cctx.isLocal()) // No discovery event needed for local affinity. aff.calculate(1, null); }
/** * Calculates affinity cache for given topology version. * * @param topVer Topology version to calculate affinity for. * @param discoEvt Discovery event that causes this topology change. */ public List<List<GridNode>> calculateAffinity(long topVer, GridDiscoveryEvent discoEvt) { assert !cctx.isLocal(); return aff.calculate(topVer, discoEvt); }