use of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard in project jackrabbit-oak by apache.
the class S3DataStoreStats method activate.
@Activate
private void activate(BundleContext context) {
Whiteboard wb = new OsgiWhiteboard(context);
mbeanReg = registerMBean(wb, S3DataStoreStatsMBean.class, this, S3DataStoreStatsMBean.TYPE, "S3 DataStore statistics");
}
use of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard in project jackrabbit-oak by apache.
the class AbstractLoginModuleTest method testGetWhiteboardFromCallback.
@Test
public void testGetWhiteboardFromCallback() {
AbstractLoginModule loginModule = initLoginModule(TestCredentials.class, new TestCallbackHandler(new DefaultWhiteboard()));
Whiteboard wb = loginModule.getWhiteboard();
assertNotNull(wb);
// whiteboard is stored as field -> second access returns the same object
assertSame(wb, loginModule.getWhiteboard());
}
use of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard in project jackrabbit-oak by apache.
the class ConsolidatedListenerMBeanImpl method activate.
//~---------------------------------------< OSGi >
@Activate
private void activate(BundleContext context) {
Whiteboard wb = new OsgiWhiteboard(context);
mbeanReg = registerMBean(wb, ConsolidatedListenerMBean.class, this, ConsolidatedListenerMBean.TYPE, "Consolidated Event Listener statistics");
}
use of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard in project jackrabbit-oak by apache.
the class ConsolidatedDataStoreCacheStats method activate.
@Activate
private void activate(BundleContext context) {
Whiteboard wb = new OsgiWhiteboard(context);
List<DataStoreCacheStatsMBean> allStats = cachingDataStore.getStats();
for (DataStoreCacheStatsMBean stat : allStats) {
registrations.add(registerMBean(wb, CacheStatsMBean.class, stat, CacheStatsMBean.TYPE, stat.getName()));
cacheStats.add(stat);
}
registrations.add(registerMBean(wb, ConsolidatedDataStoreCacheStatsMBean.class, this, ConsolidatedDataStoreCacheStatsMBean.TYPE, "Consolidated DataStore Cache statistics"));
}
use of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard in project jackrabbit-oak by apache.
the class BlobMigration method activate.
@Activate
private void activate(BundleContext ctx) {
Whiteboard wb = new OsgiWhiteboard(ctx);
migrator = new BlobMigrator((SplitBlobStore) splitBlobStore, nodeStore);
mbeanReg = registerMBean(wb, BlobMigrationMBean.class, this, BlobMigrationMBean.TYPE, OP_NAME);
}
Aggregations