@Override public StatisticsImplementor initiateService( SessionFactoryImplementor sessionFactory, Configuration configuration, ServiceRegistryImplementor registry) { final Object configValue = configuration.getProperties().get( STATS_BUILDER ); return initiateServiceInternal( sessionFactory, configValue, registry ); }
@Override public StatisticsImplementor initiateService( SessionFactoryImplementor sessionFactory, MetadataImplementor metadata, ServiceRegistryImplementor registry) { ConfigurationService configurationService = registry.getService( ConfigurationService.class ); final Object configValue = configurationService.getSetting( STATS_BUILDER, null ); return initiateServiceInternal( sessionFactory, configValue, registry ); }
public StatisticsImplementor getStatisticsImplementor() { return sessionFactoryImplementor.getStatisticsImplementor(); }
@Override public Class<StatisticsImplementor> getServiceInitiated() { return StatisticsImplementor.class; }
@Override public StatisticsImplementor buildStatistics(SessionFactoryImplementor sessionFactory) { return new ConcurrentStatisticsImpl( sessionFactory ); }
@Override public StatisticsImplementor getStatisticsImplementor() { return statisticsImplementor; }
public StatisticsImplementor getStatisticsImplementor() { return serviceRegistry.getService( StatisticsImplementor.class ); }
@Override public StatisticsImplementor buildStatistics( SessionFactoryImplementor sessionFactory) { return new TransactionStatistics(); }
public StatisticsImplementor getStatisticsImplementor() { return serviceRegistry.getService(StatisticsImplementor.class); }
/** * Get access to the statistics collector * * @return The statistics collector */ public StatisticsImplementor getStatisticsImplementor();
/** * Statistics SPI */ public StatisticsImplementor getStatisticsImplementor();