use of org.apache.felix.scr.annotations.Activate in project jackrabbit-oak by apache.
the class DefaultSyncHandler method activate.
@SuppressWarnings("UnusedDeclaration")
@Activate
private void activate(Map<String, Object> properties) {
ConfigurationParameters cfg = ConfigurationParameters.of(properties);
config = DefaultSyncConfigImpl.of(cfg);
}
use of org.apache.felix.scr.annotations.Activate 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.felix.scr.annotations.Activate 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.felix.scr.annotations.Activate 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);
}
use of org.apache.felix.scr.annotations.Activate in project jackrabbit-oak by apache.
the class DataStoreTextProviderService method activate.
@Activate
private void activate(BundleContext context, Map<String, ?> config) throws IOException {
String dirPath = PropertiesUtil.toString(config.get(PROP_DIR), null);
checkNotNull(dirPath, "Directory path not configured via '%s", PROP_DIR);
File dir = new File(dirPath);
checkArgument(dir.exists(), "Directory %s does not exist", dir.getAbsolutePath());
textWriter = new DataStoreTextWriter(dir, true);
reg = context.registerService(PreExtractedTextProvider.class.getName(), textWriter, null);
}
Aggregations