|
|||||||||
| 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.maven.archiva.reporting.artifact.DuplicateArtifactsConsumer
public class DuplicateArtifactsConsumer
Search the database of known SHA1 Checksums for potential duplicate artifacts.
| Constructor Summary | |
|---|---|
DuplicateArtifactsConsumer()
|
|
| Method Summary | |
|---|---|
void |
afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
|
void |
beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
|
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. |
void |
initialize()
|
boolean |
isPermanent()
Flag indicating permanance of consumer. |
void |
processArchivaArtifact(ArchivaArtifact artifact)
Event indicating an ArchivaArtifact is to be processed by this consumer. |
| 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 DuplicateArtifactsConsumer()
| Method Detail |
|---|
public java.lang.String getId()
Consumer
getId in interface Consumerpublic java.lang.String getDescription()
Consumer
getDescription in interface Consumerpublic boolean isPermanent()
Consumer
isPermanent in interface Consumerpublic void beginScan()
ArchivaArtifactConsumerEvent 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 ArchivaArtifactConsumerpublic void completeScan()
ArchivaArtifactConsumerEvent 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 ArchivaArtifactConsumerpublic java.util.List<java.lang.String> getIncludedTypes()
ArchivaArtifactConsumer
getIncludedTypes in interface ArchivaArtifactConsumerString) 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 ArchivaArtifactConsumerConsumerException - if there was a problem processing this file.
public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
afterConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener
public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
beforeConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializableorg.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||