class StoreSizeBean extends ManagementBeanProvider {

    @VisibleForTesting
    static StoreSizeMBean createBean( ManagementData management, boolean isMxBean, long updateInterval, Clock clock )
    {
        final StoreSizeMBean bean = new StoreSizeMBean( management, isMxBean, updateInterval, clock );
        final DataSourceManager dataSourceManager = management.getKernelData().getDataSourceManager();
        dataSourceManager.addListener( bean );
        return bean;
    }

    @SuppressWarnings( "WeakerAccess" ) // Bean needs public constructor public  StoreSizeBean();

}