diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-02 03:55:28 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-02 03:55:28 +0000 |
commit | fa2a3efcc7bfd8e15a04d95c8cc05c92fc59066f (patch) | |
tree | b025b65967ae2875392f5e64832bcbe0f1f37970 /archiva-modules/plugins/metadata-store-cassandra/src/main | |
parent | f9c01084da93d2876e1b023b8de1079f835e54bc (diff) | |
download | archiva-fa2a3efcc7bfd8e15a04d95c8cc05c92fc59066f.tar.gz archiva-fa2a3efcc7bfd8e15a04d95c8cc05c92fc59066f.zip |
[MRM-1802] Find a cache solution for browsing part (especially root browsing)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1583867 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/metadata-store-cassandra/src/main')
-rw-r--r-- | archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java index 0241e48a9..fa46ea0fb 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java +++ b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java @@ -61,14 +61,11 @@ import org.apache.archiva.metadata.repository.cassandra.model.Namespace; import org.apache.archiva.metadata.repository.cassandra.model.Project; import org.apache.archiva.metadata.repository.cassandra.model.ProjectVersionMetadataModel; import org.apache.archiva.metadata.repository.cassandra.model.Repository; -import org.apache.archiva.redback.components.cache.Cache; import org.apache.commons.lang.StringUtils; import org.modelmapper.ModelMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.inject.Inject; -import javax.inject.Named; import javax.persistence.PersistenceException; import java.util.ArrayList; import java.util.Collection; @@ -241,7 +238,7 @@ public class CassandraMetadataRepository updateOrAddNamespace( repositoryId, namespaceId ); } - public Namespace updateOrAddNamespace( String repositoryId, String namespaceId ) + private Namespace updateOrAddNamespace( String repositoryId, String namespaceId ) throws MetadataRepositoryException { try @@ -300,8 +297,10 @@ public class CassandraMetadataRepository try { - String key = - new Namespace.KeyBuilder().withNamespace( namespaceId ).withRepositoryId( repositoryId ).build(); + String key = new Namespace.KeyBuilder() // + .withNamespace( namespaceId ) // + .withRepositoryId( repositoryId ) // + .build(); HFactory.createMutator( cassandraArchivaManager.getKeyspace(), new StringSerializer() ) // .addDeletion( key, cassandraArchivaManager.getNamespaceFamilyName() ) // |