|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.consumers.AbstractMonitoredConsumer
org.apache.archiva.consumers.lucene.LuceneCleanupRemoveIndexedConsumer
public class LuceneCleanupRemoveIndexedConsumer
LuceneCleanupRemoveIndexedConsumer Clean up the index of artifacts that are no longer existing in the file system (managed repositories).
Constructor Summary | |
---|---|
LuceneCleanupRemoveIndexedConsumer(RepositoryContentFactory repoFactory,
ArchivaTaskScheduler scheduler)
|
Method Summary | |
---|---|
void |
beginScan()
Event that triggers at the beginning of a scan. |
void |
completeScan()
Event that triggers on the completion of a scan. |
java.lang.String |
getDescription()
The human readable description for this consumer. |
java.lang.String |
getId()
This is the id for the consumer. |
java.util.List<java.lang.String> |
getIncludedTypes()
Get the list of included file patterns for this consumer. |
boolean |
isPermanent()
Flag indicating permanance of consumer. |
void |
processArchivaArtifact(ArchivaArtifact artifact)
Event indicating an ArchivaArtifact is to be processed by this consumer. |
void |
setRepositoryContentFactory(RepositoryContentFactory repoFactory)
|
Methods inherited from class org.apache.maven.archiva.consumers.AbstractMonitoredConsumer |
---|
addConsumerMonitor, getDefaultArtifactExclusions, isProcessUnmodified, removeConsumerMonitor, triggerConsumerError, triggerConsumerInfo, triggerConsumerWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.archiva.consumers.Consumer |
---|
addConsumerMonitor, removeConsumerMonitor |
Constructor Detail |
---|
public LuceneCleanupRemoveIndexedConsumer(RepositoryContentFactory repoFactory, ArchivaTaskScheduler scheduler)
Method Detail |
---|
public void beginScan()
ArchivaArtifactConsumer
Event that triggers at the beginning of a scan.
NOTE: This would be a good place to initialize the consumer, to lock any resources, and to generally start tracking the scan as a whole.
beginScan
in interface ArchivaArtifactConsumer
public void completeScan()
ArchivaArtifactConsumer
Event that triggers on the completion of a scan.
NOTE: If the consumer opted to batch up processing requests in the
ArchivaArtifactConsumer.processArchivaArtifact(ArchivaArtifact)
event this would be the last opportunity to drain
any processing queue's.
completeScan
in interface ArchivaArtifactConsumer
public java.util.List<java.lang.String> getIncludedTypes()
ArchivaArtifactConsumer
getIncludedTypes
in interface ArchivaArtifactConsumer
String
) artifact types to process.public void processArchivaArtifact(ArchivaArtifact artifact) throws ConsumerException
ArchivaArtifactConsumer
Event indicating an ArchivaArtifact
is to be processed by this consumer.
NOTE: The consumer does not need to process the artifact immediately, can can opt to queue and/or track
the artifact to be processed in batch. Just be sure to complete the processing by the ArchivaArtifactConsumer.completeScan()
event.
processArchivaArtifact
in interface ArchivaArtifactConsumer
ConsumerException
- if there was a problem processing this file.public java.lang.String getDescription()
Consumer
getDescription
in interface Consumer
public java.lang.String getId()
Consumer
getId
in interface Consumer
public boolean isPermanent()
Consumer
isPermanent
in interface Consumer
public void setRepositoryContentFactory(RepositoryContentFactory repoFactory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |