You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Robert A. Decker" <de...@robdecker.com> on 2014/04/20 16:09:29 UTC

getting the datastoregarbagecollector

This used to work for me:
https://issues.apache.org/jira/browse/SLING-2501

But I now only seem to get null back from calling createDataStoreGarbageCollector on the repository manager. This is with a recent sling build (couple of days ago)

In the javadoc for RepositoryManager (jackrabbit):
returns the data store garbage collector if the data store is enabled, null otherwise

I’m pretty sure my repository is running - the bundle is active, I’m able to use the explorer, etc. Below is the console output for the jackrabbit status.

Here’s the method in org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository:

    public DataStoreGarbageCollector createDataStoreGarbageCollector() throws RepositoryException {
        final Repository base = this.getRepository();
        if (base instanceof RepositoryManager) {
            return ((RepositoryManager) base).createDataStoreGarbageCollector();
        }

        return null;
    }

Should it instead be calling this.getSlingRepositoryManager()? Or can Repository be an instance of RepositoryManager?


In the parent class for SlingServerRepository (AbstractSlingRepository2):
    protected final AbstractSlingRepositoryManager getSlingRepositoryManager() {
        return this.manager;
    }
    protected final Repository getRepository() {
        return this.getSlingRepositoryManager().getRepository();
    }



Rob


Repository Properties:
identifier.stability: identifier.stability.indefinite.duration
jcr.repository.name: Jackrabbit
jcr.repository.vendor: Apache Software Foundation
jcr.repository.vendor.url: http://jackrabbit.apache.org/
jcr.repository.version: 2.4.2
jcr.specification.name: Content Repository API for Java(TM) Technology Specification
jcr.specification.version: 2.0
level.1.supported: true
level.2.supported: true
node.type.management.autocreated.definitions.supported: true
node.type.management.inheritance: node.type.management.inheritance.multiple
node.type.management.multiple.binary.properties.supported: true
node.type.management.multivalued.properties.supported: true
node.type.management.orderable.child.nodes.supported: true
node.type.management.overrides.supported: false
node.type.management.primary.item.name.supported: true
node.type.management.property.types: -
node.type.management.residual.definitions.supported: true
node.type.management.same.name.siblings.supported: true
node.type.management.update.in.use.suported: false
node.type.management.value.constraints.supported: true
option.access.control.supported: true
option.activities.supported: true
option.baselines.supported: true
option.journaled.observation.supported: true
option.lifecycle.supported: true
option.locking.supported: true
option.node.and.property.with.same.name.supported: true
option.node.type.management.supported: true
option.observation.supported: true
option.query.sql.supported: true
option.retention.supported: true
option.shareable.nodes.supported: true
option.simple.versioning.supported: true
option.transactions.supported: true
option.unfiled.content.supported: false
option.update.mixin.node.types.supported: true
option.update.primary.node.type.supported: true
option.versioning.supported: true
option.workspace.management.supported: true
option.xml.export.supported: true
option.xml.import.supported: true
org.apache.jackrabbit.spi.commons.AdditionalEventInfo: true
query.full.text.search.supported: true
query.joins: query.joins.inner.outer
query.languages: -
query.stored.queries.supported: true
query.xpath.doc.order: false
query.xpath.pos.index: true
write.supported: true