Package com.prodeagle.java.counters

Examples of com.prodeagle.java.counters.CounterNamesManager


   
    long slot = CounterUtil.getEpochRounded();
   
    JSONObject result = initaliseDefaultResult(slot);
   
    CounterNamesManager cnm = CounterUtil.getDefaultCounterNamesManager();
   
    Boolean allDataInaccurate = wasDataLostSinceLastHarvest(CounterUtil.NAMESPACE, slot, isProductionCall);
   
    Set<String> allCounterNames = cnm.allCounterNames();
    Set<String> updateKeys = new HashSet<String>();
    Set<Object[]> updates = new HashSet<Object[]>();
   
    long lastSlot = getLastSlot(req);
    while (slot >= lastSlot) {
View Full Code Here


        Authentication.addUser(req, resp);
      } else if (Authentication.isProdEagle(req, resp) || Authentication.isAdministrator(req, resp)) { //check prodeagle first, because admin does some redirecting
        String deleteCounter = req.getParameter("delete_counter");
        if (null != deleteCounter && !deleteCounter.isEmpty()) {
          _logger.info("Deleting counter: " + deleteCounter);
          CounterNamesManager cnm = CounterUtil.getDefaultCounterNamesManager();
          cnm.delete(Collections.singleton(deleteCounter));
        } else {
          _logger.info("Creating report");
          createReport(req, resp);
        }
      }
View Full Code Here

   
    long slot = CounterUtil.getEpochRounded();
   
    JSONObject result = initaliseDefaultResult(slot);
   
    CounterNamesManager cnm = CounterUtil.getDefaultCounterNamesManager();
   
    Boolean allDataInaccurate = wasDataLostSinceLastHarvest(NAMESPACE, slot, isProductionCall);
   
    Set<String> allCounterNames = cnm.allCounterNames();
    Set<String> updateKeys = new HashSet<String>();
    Set<Object[]> updates = new HashSet<Object[]>();
   
    long lastSlot = getLastSlot(req);
    while (slot >= lastSlot) {
View Full Code Here

TOP

Related Classes of com.prodeagle.java.counters.CounterNamesManager

Copyright © 2018 www.massapicom. 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.