/** * Adds partition unload event. * * @param part Partition. */ public void addUnloadEvent(int part) { if (!cctx.events().isRecordable(EVT_CACHE_PRELOAD_PART_UNLOADED)) LT.warn(log, null, "Added event without checking if event is recordable: " + U.gridEventName(EVT_CACHE_PRELOAD_PART_UNLOADED)); cctx.gridEvents().record(new GridCachePreloadingEvent(cctx.name(), cctx.localNode(), "Cache unloading event.", EVT_CACHE_PRELOAD_PART_UNLOADED, part, null, 0, 0)); }
/** * Adds preloading event. * * @param part Partition. * @param type Event type. * @param discoNode Discovery node. * @param discoType Discovery event type. * @param discoTs Discovery event timestamp. */ public void addPreloadEvent(int part, int type, GridNode discoNode, int discoType, long discoTs) { assert discoNode != null; assert type > 0; assert discoType > 0; assert discoTs > 0; if (!cctx.events().isRecordable(type)) LT.warn(log, null, "Added event without checking if event is recordable: " + U.gridEventName(type)); cctx.gridEvents().record(new GridCachePreloadingEvent(cctx.name(), cctx.localNode(), "Cache preloading event.", type, part, discoNode, discoType, discoTs)); }