public interface ArchivaIndexManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INDEX_PATH |
static String |
DEFAULT_PACKED_INDEX_PATH |
Modifier and Type | Method and Description |
---|---|
void |
addArtifactsToIndex(ArchivaIndexingContext context,
Collection<URI> artifactReference)
Adds a list of artifacts to the index.
|
ArchivaIndexingContext |
createContext(Repository repository)
Creates the indexing context for the given repository.
|
ArchivaIndexingContext |
mergeContexts(Repository destinationRepo,
List<ArchivaIndexingContext> contexts,
boolean packIndex)
Merges a list of contexts into a single one.
|
ArchivaIndexingContext |
move(ArchivaIndexingContext context,
Repository repo)
Moves the context to a new directory.
|
void |
pack(ArchivaIndexingContext context)
Compresses the index to a more dense packed format.
|
void |
removeArtifactsFromIndex(ArchivaIndexingContext context,
Collection<URI> artifactReference)
Removes a list of artifacts from the index.
|
ArchivaIndexingContext |
reset(ArchivaIndexingContext context)
Reinitializes the index.
|
void |
scan(ArchivaIndexingContext context)
Rescans the whole repository, this index is associated to.
|
boolean |
supportsRepository(RepositoryType type)
Returns true, if this manager is able to apply the index actions for the given repository type.
|
void |
update(ArchivaIndexingContext context,
boolean fullUpdate)
Updates the index from the remote url.
|
void |
updateLocalIndexPath(Repository repo)
Updates the local path where the index is stored using the repository information.
|
static final String DEFAULT_INDEX_PATH
static final String DEFAULT_PACKED_INDEX_PATH
void pack(ArchivaIndexingContext context) throws IndexUpdateFailedException
context
- IndexUpdateFailedException
void scan(ArchivaIndexingContext context) throws IndexUpdateFailedException
context
- IndexUpdateFailedException
void update(ArchivaIndexingContext context, boolean fullUpdate) throws IndexUpdateFailedException
context
- fullUpdate
- IndexUpdateFailedException
void addArtifactsToIndex(ArchivaIndexingContext context, Collection<URI> artifactReference) throws IndexUpdateFailedException
context
- artifactReference
- IndexUpdateFailedException
void removeArtifactsFromIndex(ArchivaIndexingContext context, Collection<URI> artifactReference) throws IndexUpdateFailedException
context
- artifactReference
- IndexUpdateFailedException
boolean supportsRepository(RepositoryType type)
type
- ArchivaIndexingContext createContext(Repository repository) throws IndexCreationFailedException
repository
- the repository for which the index context should be createdIndexCreationFailedException
ArchivaIndexingContext reset(ArchivaIndexingContext context) throws IndexUpdateFailedException
context
- IndexUpdateFailedException
ArchivaIndexingContext move(ArchivaIndexingContext context, Repository repo) throws IndexCreationFailedException
context
- The current contextrepo
- The repositoryIndexCreationFailedException
void updateLocalIndexPath(Repository repo)
ArchivaIndexingContext mergeContexts(Repository destinationRepo, List<ArchivaIndexingContext> contexts, boolean packIndex) throws UnsupportedOperationException, IndexCreationFailedException
destinationRepo
- The destination repositorycontexts
- The contexts of the indexes that should be merged.packIndex
- True, if the merged index should be packed, otherwise false.UnsupportedOperationException
- if the underlying implementation does not allow to merge indexing contextsIndexCreationFailedException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.