本文整理了Java中org.hibernate.stat.Statistics.getQueryCacheMissCount()
方法的一些代码示例,展示了Statistics.getQueryCacheMissCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Statistics.getQueryCacheMissCount()
方法的具体详情如下:
包路径:org.hibernate.stat.Statistics
类名称:Statistics
方法名:getQueryCacheMissCount
[英]Get the global number of cached queries not found in cache
[中]获取缓存中未找到的缓存查询*的全局数量
代码示例来源:origin: hibernate/hibernate-orm
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) );
return Long.valueOf( statistics != null ? statistics.getQueryCacheMissCount() : 0 );
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCacheMissCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCacheMissCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCacheMissCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCacheMissCount() : 0);
}
};
代码示例来源:origin: gocd/gocd
json.put("QueryExecutionMaxTimeQueryString", statistics.getQueryExecutionMaxTimeQueryString());
json.put("QueryCacheHitCount", statistics.getQueryCacheHitCount());
json.put("QueryCacheMissCount", statistics.getQueryCacheMissCount());
json.put("QueryCachePutCount", statistics.getQueryCachePutCount());
json.put("FlushCount", statistics.getFlushCount());
代码示例来源:origin: prometheus/client_java
@Override
public double getValue(Statistics statistics) {
return statistics.getQueryCacheMissCount();
}
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
public long getQueryCacheMissCount() {
return stats.getQueryCacheMissCount();
}
public long getQueryCachePutCount() {
代码示例来源:origin: hibernate/hibernate
public long getQueryCacheMissCount() {
return stats.getQueryCacheMissCount();
}
public long getQueryCachePutCount() {
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
public long getQueryCacheMissCount() {
return stats.getQueryCacheMissCount();
}
public long getQueryCachePutCount() {
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public long getQueryCacheMissCount() {
return stats.getQueryCacheMissCount();
}
public long getQueryCachePutCount() {
代码示例来源: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().getQueryCacheMissCount());
}
});
代码示例来源: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.getQueryCacheMissCount() : 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.getQueryCacheMissCount() : 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.getQueryCacheMissCount() : 0);
}
};
代码示例来源: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.getQueryCacheMissCount() : 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.getQueryCacheMissCount() : 0);
}
};
代码示例来源:origin: stackoverflow.com
Statistics stats = sessionFactory.getStatistics();
stats.setStatisticsEnabled(true);
... // do your work
long hitCount = stats.getQueryCacheHitCount();
long missCount = stats.getQueryCacheMissCount();
代码示例来源:origin: hibernate/hibernate-demos
public void printStats() {
System.out.println("query cache put count: " + sessionFactory.getStatistics().getQueryCachePutCount());
System.out.println("query cache hit count: " + sessionFactory.getStatistics().getQueryCacheHitCount());
System.out.println("query cache miss count: " + sessionFactory.getStatistics().getQueryCacheMissCount());
}
代码示例来源:origin: riotfamily/riot
@Override
protected void populateStats(Statistics stats) throws Exception {
org.hibernate.stat.Statistics hs = sessionFactory.getStatistics();
stats.add("Query cache hit count", hs.getQueryCacheHitCount());
stats.add("Query cache miss count", hs.getQueryCacheMissCount());
stats.add("Query cache put count", hs.getQueryCachePutCount());
stats.add("2nd level cache hit count" , hs.getSecondLevelCacheHitCount());
stats.add("2nd level cache miss count", hs.getSecondLevelCacheMissCount());
stats.add("2nd level cache put count", hs.getSecondLevelCachePutCount());
}
内容来源于网络,如有侵权,请联系作者删除!