Examples of OsgiWhiteboard


Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

        //noinspection unchecked
        osgiConfig = ConfigurationParameters.of(context.getProperties());
        String idpName = osgiConfig.getConfigValue(PARAM_IDP_NAME, "");
        String sncName = osgiConfig.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");

        Whiteboard whiteboard = new OsgiWhiteboard(context.getBundleContext());
        try {
            SyncMBeanImpl bean = new SyncMBeanImpl(repository, syncManager, sncName, idpManager, idpName);
            Hashtable<String, String> table = new Hashtable<String, String>();
            table.put("type", "UserManagement");
            table.put("name", "External Identity Synchronization Management");
            table.put("handler", ObjectName.quote(sncName));
            table.put("idp", ObjectName.quote(idpName));
            mbeanRegistration = whiteboard.register(SynchronizationMBean.class, bean, ImmutableMap.of(
                    "jmx.objectname",
                    new ObjectName("org.apache.jackrabbit.oak", table))
            );
        } catch (MalformedObjectNameException e) {
            log.error("Unable to register SynchronizationMBean.", e);
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    }

    //----------------------------------------------------------------< SCR >---
    @Activate
    protected void activate(BundleContext context) throws Exception {
        whiteboard = new OsgiWhiteboard(context);
        authorizableActionProvider.start(whiteboard);
        restrictionProvider.start(whiteboard);

        initializeConfigurations();
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    private long maxReplicationLagInSecs = DEFAULT_MAX_REPLICATION_LAG;

    @Activate
    protected void activate(ComponentContext context, Map<String, ?> config) throws Exception {
        this.context = context;
        this.whiteboard = new OsgiWhiteboard(context.getBundleContext());
        this.executor = new WhiteboardExecutor();
        executor.start(whiteboard);
        this.maxReplicationLagInSecs = PropertiesUtil.toLong(config.get(PROP_REPLICATION_LAG),
                DEFAULT_MAX_REPLICATION_LAG);
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

            commitRateLimiter = new CommitRateLimiter();
        } else {
            commitRateLimiter = null;
        }

        whiteboard = new OsgiWhiteboard(bundleContext);
        initializers = whiteboard.track(RepositoryInitializer.class);
        editorProvider.start(whiteboard);
        indexEditorProvider.start(whiteboard);
        indexProvider.start(whiteboard);
        executor.start(whiteboard);
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

        //noinspection unchecked
        osgiConfig = ConfigurationParameters.of(context.getProperties());
        String idpName = osgiConfig.getConfigValue(PARAM_IDP_NAME, "");
        String sncName = osgiConfig.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");

        Whiteboard whiteboard = new OsgiWhiteboard(context.getBundleContext());
        try {
            SyncMBeanImpl bean = new SyncMBeanImpl(repository, syncManager, sncName, idpManager, idpName);
            Hashtable<String, String> table = new Hashtable<String, String>();
            table.put("type", "UserManagement");
            table.put("name", "External Identity Synchronization Management");
            table.put("handler", ObjectName.quote(sncName));
            table.put("idp", ObjectName.quote(idpName));
            mbeanRegistration = whiteboard.register(SynchronizationMBean.class, bean, ImmutableMap.of(
                    "jmx.objectname",
                    new ObjectName("org.apache.jackrabbit.oak", table))
            );
        } catch (MalformedObjectNameException e) {
            log.error("Unable to register SynchronizationMBean.", e);
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    private boolean customBlobDataSource;

    @Activate
    protected void activate(ComponentContext context, Map<String, ?> config) throws Exception {
        this.context = context;
        whiteboard = new OsgiWhiteboard(context.getBundleContext());
        executor = new WhiteboardExecutor();
        executor.start(whiteboard);
        maxReplicationLagInSecs = toLong(config.get(PROP_REPLICATION_LAG), DEFAULT_MAX_REPLICATION_LAG);
        customBlobStore = toBoolean(prop(CUSTOM_BLOB_STORE), false);
        customBlobDataSource = toBoolean(prop(CUSTOM_BLOB_DATA_SOURCE), false);
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    }

    //----------------------------------------------------------------< SCR >---
    @Activate
    protected void activate(BundleContext context) throws Exception {
        whiteboard = new OsgiWhiteboard(context);
        authorizableActionProvider.start(whiteboard);
        authorizableNodeName.start(whiteboard);
        restrictionProvider.start(whiteboard);

        initializeConfigurations();
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

        providerRegistration = context.getBundleContext().registerService(SegmentStoreProvider.class.getName(), this, props);
        if (!standby) {
            storeRegistration = context.getBundleContext().registerService(NodeStore.class.getName(), this, props);
        }

        OsgiWhiteboard whiteboard = new OsgiWhiteboard(context.getBundleContext());
        executor = new WhiteboardExecutor();
        executor.start(whiteboard);

        RevisionGC revisionGC = new RevisionGC(new Runnable() {
            @Override
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

        return tds;
    }

    @Activate
    private void activate(BundleContext context){
        Whiteboard wb = new OsgiWhiteboard(context);
        cacheStats = wb.track(CacheStatsMBean.class);
        mbeanReg = registerMBean(wb,
                ConsolidatedCacheStatsMBean.class,
                this,
                ConsolidatedCacheStatsMBean.TYPE,
                "Consolidated Cache statistics");
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    private WhiteboardExecutor executor;

    @Activate
    private void activate(BundleContext bundleContext, Map<String, ?> config)
            throws NotCompliantMBeanException {
        whiteboard = new OsgiWhiteboard(bundleContext);

        indexProvider = new LuceneIndexProvider(createTracker(bundleContext, config));
        initializeLogging(config);
        initialize();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.