本文整理了Java中org.hibernate.stat.Statistics.getQueryCachePutCount()
方法的一些代码示例,展示了Statistics.getQueryCachePutCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Statistics.getQueryCachePutCount()
方法的具体详情如下:
包路径:org.hibernate.stat.Statistics
类名称:Statistics
方法名:getQueryCachePutCount
[英]Get the global number of cacheable queries put 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.getQueryCachePutCount() : 0 );
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCachePutCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCachePutCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCachePutCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getQueryCachePutCount() : 0);
}
};
代码示例来源:origin: gocd/gocd
json.put("QueryCacheHitCount", statistics.getQueryCacheHitCount());
json.put("QueryCacheMissCount", statistics.getQueryCacheMissCount());
json.put("QueryCachePutCount", statistics.getQueryCachePutCount());
json.put("FlushCount", statistics.getFlushCount());
json.put("ConnectCount", statistics.getConnectCount());
代码示例来源:origin: hibernate/hibernate-orm
q.setParameter( "duration", 14l );
assertEquals( 1, q.list().size() );
assertEquals( 1, stats.getQueryCachePutCount() );
q = s.getNamedQuery( "night.duration" );
q.setParameter( "duration", 14l );
代码示例来源:origin: prometheus/client_java
@Override
public double getValue(Statistics statistics) {
return statistics.getQueryCachePutCount();
}
}
代码示例来源:origin: hibernate/hibernate-orm
List result = q.list();
assertEquals( 1, result.size() );
assertEquals( 1, stats.getQueryCachePutCount() );
q.setCacheable( true );
q.list();
代码示例来源:origin: hibernate/hibernate
public long getQueryCachePutCount() {
return stats.getQueryCachePutCount();
}
/**
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public long getQueryCachePutCount() {
return stats.getQueryCachePutCount();
}
/**
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
public long getQueryCachePutCount() {
return stats.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().getQueryCachePutCount());
}
});
代码示例来源: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.getQueryCachePutCount() : 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.getQueryCachePutCount() : 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.getQueryCachePutCount() : 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.getQueryCachePutCount() : 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.getQueryCachePutCount() : 0);
}
};
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!