org.hibernate.stat.Statistics.getCollectionRecreateCount()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.hibernate.stat.Statistics.getCollectionRecreateCount()方法的一些代码示例,展示了Statistics.getCollectionRecreateCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Statistics.getCollectionRecreateCount()方法的具体详情如下:
包路径:org.hibernate.stat.Statistics
类名称:Statistics
方法名:getCollectionRecreateCount

Statistics.getCollectionRecreateCount介绍

[英]Global number of collections recreated
[中]重新创建的集合的全局数量

代码示例

代码示例来源:origin: hibernate/hibernate-orm

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) );
    return Long.valueOf( statistics != null ? statistics.getCollectionRecreateCount() : 0 );
  }
};

代码示例来源:origin: wildfly/wildfly

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: wildfly/wildfly

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: wildfly/wildfly

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: wildfly/wildfly

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: gocd/gocd

json.put("CollectionUpdateCount", statistics.getCollectionUpdateCount());
json.put("CollectionRemoveCount", statistics.getCollectionRemoveCount());
json.put("CollectionRecreateCount", statistics.getCollectionRecreateCount());
json.put("StartTime", statistics.getStartTime());
json.put("SecondLevelCacheRegionNames", statistics.getSecondLevelCacheRegionNames());

代码示例来源:origin: prometheus/client_java

@Override
 public double getValue(Statistics statistics) {
  return statistics.getCollectionRecreateCount();
 }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

/**
 * @see StatisticsServiceMBean#getCollectionRecreateCount()
 */
public long getCollectionRecreateCount() {
  return stats.getCollectionRecreateCount();
}
/**

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * @see StatisticsServiceMBean#getCollectionRecreateCount()
 */
public long getCollectionRecreateCount() {
  return stats.getCollectionRecreateCount();
}
/**

代码示例来源:origin: hibernate/hibernate

/**
 * @see StatisticsServiceMBean#getCollectionRecreateCount()
 */
public long getCollectionRecreateCount() {
  return stats.getCollectionRecreateCount();
}
/**

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * @see StatisticsServiceMBean#getCollectionRecreateCount()
 */
public long getCollectionRecreateCount() {
  return stats.getCollectionRecreateCount();
}
/**

代码示例来源:origin: org.jboss.as/jboss-as-jpa-hibernate4

@Override
  void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) {
    response.set(stats.getStatistics().getCollectionRecreateCount());
  }
});

代码示例来源:origin: org.jboss.eap/jipijapa-hibernate4-3

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: org.jboss.eap/jipijapa-hibernate5

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: org.jboss.eap/jipijapa-hibernate5-3

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: org.jipijapa/jipijapa-hibernate4-3

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: org.jipijapa/jipijapa-hibernate4-1

@Override
  public Object invoke(Object... args) {
    org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
    return Long.valueOf(statistics != null ? statistics.getCollectionRecreateCount() : 0);
  }
};

代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2

public StatisticData[] retrieveStatisticData() {
  final List<StatisticData> resultList = new ArrayList<StatisticData>();
  for (Map.Entry<String, Statistics> entry : statistics.entrySet()) {
   final String element = entry.getKey();
   final Statistics stats = entry.getValue();

   resultList.add(new StatisticData(NAME_FETCH, element, stats.getCollectionFetchCount()));
   resultList.add(new StatisticData(NAME_LOAD, element, stats.getCollectionLoadCount()));
   resultList.add(new StatisticData(NAME_RECREATE, element, stats.getCollectionRecreateCount()));
   resultList.add(new StatisticData(NAME_REMOVE, element, stats.getCollectionRemoveCount()));
   resultList.add(new StatisticData(NAME_UPDATE, element, stats.getCollectionUpdateCount()));
  }

  if (0 == resultList.size()) { return StatisticData.EMPTY_ARRAY; }

  final StatisticData[] result = new StatisticData[resultList.size()];
  resultList.toArray(result);
  return result;
 }
}

代码示例来源:origin: com.springsource.insight/insight-repo

private void addCollectionStats(List<ApplicationStat> res, Statistics stats) {
  addStat(res, "collection/total/fetches", stats.getCollectionFetchCount());
  addStat(res, "collection/total/loads", stats.getCollectionLoadCount());
  addStat(res, "collection/total/recreates", stats.getCollectionRecreateCount());
  addStat(res, "collection/total/removes", stats.getCollectionRemoveCount());
  addStat(res, "collection/total/updates", stats.getCollectionUpdateCount());        
  for (String collectionRole : stats.getCollectionRoleNames()) {
    CollectionStatistics collStats = stats.getCollectionStatistics(collectionRole);
    addStat(res, "collection/" + collectionRole + "/fetches", collStats.getFetchCount());
    addStat(res, "collection/" + collectionRole + "/loads", collStats.getLoadCount());
    addStat(res, "collection/" + collectionRole + "/recreates", collStats.getRecreateCount());
    addStat(res, "collection/" + collectionRole + "/removes", collStats.getRemoveCount());
    addStat(res, "collection/" + collectionRole + "/update", collStats.getUpdateCount());
  }
}

代码示例来源:origin: stackoverflow.com

return stats.getCollectionRecreateCount();

相关文章

Statistics类方法