private static Registration registerMBeans(BundleContext context, DataStoreBlobStore ds, BlobStoreStats stats){ Whiteboard wb = new OsgiWhiteboard(context); return new CompositeRegistration( registerMBean(wb, BlobStoreStatsMBean.class, stats, BlobStoreStatsMBean.TYPE, ds.getClass().getSimpleName()), registerMBean(wb, CacheStatsMBean.class, ds.getCacheStats(), CacheStatsMBean.TYPE, ds.getCacheStats().getName()) ); } }
private static Registration registerMBeans(BundleContext context, DataStoreBlobStore ds, BlobStoreStats stats){ Whiteboard wb = new OsgiWhiteboard(context); return new CompositeRegistration( registerMBean(wb, BlobStoreStatsMBean.class, stats, BlobStoreStatsMBean.TYPE, ds.getClass().getSimpleName()), registerMBean(wb, CacheStatsMBean.class, ds.getCacheStats(), CacheStatsMBean.TYPE, ds.getCacheStats().getName()) ); } }
private static Registration registerMBeans(BundleContext context, DataStoreBlobStore ds, BlobStoreStats stats){ Whiteboard wb = new OsgiWhiteboard(context); return new CompositeRegistration( registerMBean(wb, BlobStoreStatsMBean.class, stats, BlobStoreStatsMBean.TYPE, ds.getClass().getSimpleName()), registerMBean(wb, CacheStatsMBean.class, ds.getCacheStats(), CacheStatsMBean.TYPE, ds.getCacheStats().getName()) ); } }