|
|||||||||
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.dependencytree.DependencyTreeGeneratorConsumer
public class DependencyTreeGeneratorConsumer
Constructor Summary | |
---|---|
DependencyTreeGeneratorConsumer()
|
Method Summary | |
---|---|
void |
beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
java.util.Date whenGathered)
Event that triggers at the beginning of a scan. |
void |
beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
java.util.Date whenGathered,
boolean executeOnEntireRepo)
Event that triggers at the beginning of a scan, where you can also indicate whether the consumers will be executed on an entire repository or on a specific resource. |
void |
completeScan()
Event that triggers on the completion of a scan. |
void |
completeScan(boolean executeOnEntireRepo)
|
java.lang.String |
getDescription()
The human readable description for this consumer. |
java.util.List<java.lang.String> |
getExcludes()
Get the list of excluded file patterns for this consumer. |
java.lang.String |
getId()
This is the id for the consumer. |
java.util.List<java.lang.String> |
getIncludes()
Get the list of included file patterns for this consumer. |
boolean |
isPermanent()
Flag indicating permanance of consumer. |
void |
processFile(java.lang.String path)
Event indicating a file is to be processed by this consumer. |
void |
processFile(java.lang.String path,
boolean executeOnEntireRepo)
|
void |
setGeneratedRepositoryLocation(java.io.File generatedRepositoryLocation)
|
void |
setIncludes(java.util.List<java.lang.String> includes)
|
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.RepositoryContentConsumer |
---|
isProcessUnmodified |
Methods inherited from interface org.apache.maven.archiva.consumers.Consumer |
---|
addConsumerMonitor, removeConsumerMonitor |
Constructor Detail |
---|
public DependencyTreeGeneratorConsumer()
Method Detail |
---|
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 setGeneratedRepositoryLocation(java.io.File generatedRepositoryLocation)
public void beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository, java.util.Date whenGathered) throws ConsumerException
RepositoryContentConsumer
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 RepositoryContentConsumer
repository
- the repository that this consumer is being used for.whenGathered
- the start of the repository scan
ConsumerException
- if there was a problem with using the provided repository with the consumer.public void beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository, java.util.Date whenGathered, boolean executeOnEntireRepo) throws ConsumerException
RepositoryContentConsumer
Event that triggers at the beginning of a scan, where you can also indicate whether the consumers will be executed on an entire repository or on a specific resource.
beginScan
in interface RepositoryContentConsumer
repository
- the repository that this consumer is being used for.whenGathered
- the start of the repository scanexecuteOnEntireRepo
- flags whether the consumer will be executed on an entire repository or just on a specific resource
ConsumerException
- if there was a problem with using the provided repository with the consumer.RepositoryContentConsumer.beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration, java.util.Date )
public void completeScan()
RepositoryContentConsumer
Event that triggers on the completion of a scan.
NOTE: If the consumer opted to batch up processing requests in the RepositoryContentConsumer.processFile(String)
event
this would be the last opportunity to drain any processing queue's.
completeScan
in interface RepositoryContentConsumer
public void completeScan(boolean executeOnEntireRepo)
completeScan
in interface RepositoryContentConsumer
public java.util.List<java.lang.String> getExcludes()
RepositoryContentConsumer
getExcludes
in interface RepositoryContentConsumer
String
patterns. (example: "**/*.pom"
) - (can be null for no exclusions)public java.util.List<java.lang.String> getIncludes()
RepositoryContentConsumer
getIncludes
in interface RepositoryContentConsumer
String
patterns. (example: "**/*.pom"
)public void processFile(java.lang.String path) throws ConsumerException
RepositoryContentConsumer
Event indicating a file is to be processed by this consumer.
NOTE: The consumer does not need to process the file immediately, can can opt to queue and/or track
the files to be processed in batch. Just be sure to complete the processing by the RepositoryContentConsumer.completeScan()
event.
processFile
in interface RepositoryContentConsumer
path
- the relative file path (in the repository) to process.
ConsumerException
- if there was a problem processing this file.public void processFile(java.lang.String path, boolean executeOnEntireRepo) throws ConsumerException
processFile
in interface RepositoryContentConsumer
ConsumerException
public void setIncludes(java.util.List<java.lang.String> includes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |