|
|||||||||
| 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.consumers.database.DatabaseCleanupRemoveProjectConsumer
public class DatabaseCleanupRemoveProjectConsumer
Consumer for removing or deleting from the database the project models fo artifacts that have been deleted/removed from the repository. Maria Odea Ching
| Constructor Summary | |
|---|---|
DatabaseCleanupRemoveProjectConsumer()
|
|
| 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 |
setEffectiveProjectCache(org.codehaus.plexus.cache.Cache effectiveProjectCache)
|
void |
setProjectModelDAO(ProjectModelDAO projectModelDAO)
|
void |
setRepositoryFactory(RepositoryContentFactory repositoryFactory)
|
| 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 DatabaseCleanupRemoveProjectConsumer()
| Method Detail |
|---|
public 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 java.lang.String getDescription()
Consumer
getDescription in interface Consumerpublic java.lang.String getId()
Consumer
getId in interface Consumerpublic boolean isPermanent()
Consumer
isPermanent in interface Consumerpublic void setProjectModelDAO(ProjectModelDAO projectModelDAO)
public void setRepositoryFactory(RepositoryContentFactory repositoryFactory)
public void setEffectiveProjectCache(org.codehaus.plexus.cache.Cache effectiveProjectCache)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||