public static Collection<VisorGridEvent> collectEvents(Ignite ignite,String evtOrderKey,String evtThrottleCntrKey,boolean all,IgniteClosure<Event,VisorGridEvent> evtMapper){
  int[] evtTypes=all ? VISOR_ALL_EVTS : VISOR_NON_TASK_EVTS;
  if (evtOrderKey.startsWith("CONSOLE_"))   evtTypes=concat(evtTypes,EVTS_DISCOVERY);
  return collectEvents(ignite,evtOrderKey,evtThrottleCntrKey,evtTypes,evtMapper);
}

public static Collection < VisorGridEvent > collectEvents ( Ignite ignite , String evtOrderKey , String evtThrottleCntrKey , boolean all , IgniteClosure < Event , VisorGridEvent > evtMapper ) { int [ ] evtTypes = all ? VISOR_ALL_EVTS : VISOR_NON_TASK_EVTS ; if ( evtOrderKey . startsWith ( "CONSOLE_" ) ) evtTypes = concat ( evtTypes , EVTS_DISCOVERY ) ; return collectEvents ( ignite , evtOrderKey , evtThrottleCntrKey , evtTypes , evtMapper ) ; }
grabs local events and detects if events was lost since last poll .
