Package com.taobao.tddl.common.monitor.SnapshotValuesOutputCallBack

Examples of com.taobao.tddl.common.monitor.SnapshotValuesOutputCallBack.Values


    ConcurrentHashMap<String, Values> tempMap = new ConcurrentHashMap<String, Values>();
    for (SnapshotValuesOutputCallBack callBack : snapshotValueCallBack) {
      ConcurrentHashMap<String, Values> values = callBack.getValues();
      Map<String, Values> copiedMap = new HashMap<String, Values>(values);
      for (Entry<String, Values> entry : copiedMap.entrySet()) {
        Values value = tempMap.get(entry.getKey());
        if (null == value) {
          Values newValues = new Values();
          value = tempMap.putIfAbsent(entry.getKey(), newValues);
          if (value == null) {
            value = newValues;
          }
        }
View Full Code Here


   * ���ڴ������������־��
   */
  @SuppressWarnings("unused")
  private static void writeLogMapToFile_Nagios(ConcurrentHashMap<String, Values> map) {
    for (Entry<String, Values> entry : map.entrySet()) {
      Values values = entry.getValue();
      if (values != null) {
        String key = new StringBuilder(entry.getKey()).append("||").toString();
        String value = new StringBuilder().append(values.value1).append("|").append(values.value2).append("|")
            .append(values.value2).append((double) values.value1.get() / values.value2.get()).toString();
        NagiosUtils.addNagiosLog(key, value);
View Full Code Here

   * SELECT sss #@#my065026_cm4_feel_03#@#EXECUTE_A_SQL_SUCCESS#@#1#@#1#@#1#@#1#@#10-12-27 13:58:35:224
   */
  private static void writeLogMapToFile(ConcurrentHashMap<String, Values> map) {
    String time = BufferedStatLogWriter.df.format(new Date());
    for (Entry<String, Values> entry : map.entrySet()) {
      Values values = entry.getValue();
      if (values != null) {
        String key = entry.getKey();
        LoggerInit.TDDL_Snapshot_LOG.warn(new StringBuilder().append(values.value1).append(
            BufferedStatLogWriter.logFieldSep).append(values.value2).append(
            BufferedStatLogWriter.logFieldSep).append(key).append(BufferedStatLogWriter.logFieldSep)
View Full Code Here

TOP

Related Classes of com.taobao.tddl.common.monitor.SnapshotValuesOutputCallBack.Values

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.