Examples of BusListenerInfo


Examples of org.olat.core.util.event.businfo.BusListenerInfo

      return all;
    }
  }
 
  protected BusListenerInfo createBusListenerInfo() {
    BusListenerInfo bii = new BusListenerInfo();
    synchronized(infocenter) { // o_clusterOK by:fj: extract quickly so that we can later serialize and send across the wire. data affects only one vm.
      // for all types: the name of the type + "::"+ the id (integer) is used as key
      for (Entry<String, EventAgency> entry: infocenter.entrySet()) {
        String derivedOres = entry.getKey();
        int cnt = entry.getValue().getListenerCount();
        // only add those with at least one current listener. Telling that a resource has no listeners is unneeded since we update
        // the whole table on each clusterInfoEvent (cluster:: could be improved by only sending the delta of listeners)
        if (cnt > 0) bii.addEntry(derivedOres, cnt);
      }
      // for all types: the name of the type is used as key
      for (Entry<String, EventAgency> entry: typeInfocenter.entrySet()) {
        String derivedOres = entry.getKey();
        int cnt = entry.getValue().getListenerCount();
        if (cnt > 0) bii.addEntry(derivedOres, cnt);
      }
    }
    return bii;
  }
View Full Code Here

Examples of org.olat.core.util.event.businfo.BusListenerInfo

    if ((now - cie.getCreated()) > jmsMsgDelayLimit) {
      log.warn("JMS-Performance problem: JMS-Message delay is too big, send-receive take:" + (now - cie.getCreated()) + "ms. event="+event);
    }
   
    // update the eventBusInfo from the node
    BusListenerInfo busInfo = cie.getBusListenerInfo();
    busInfos.updateInfoFor(nodeId, busInfo);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.