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.
131132133134135136137138139140141
{ Iterator it = consumers.iterator(); while ( it.hasNext() ) { ArchivaArtifactConsumer consumer = (ArchivaArtifactConsumer) it.next(); consumer.beginScan(); } } public void updateUnprocessed( ArchivaArtifact artifact ) throws ArchivaDatabaseException
133134135136137138139140141142143
146147148149150151152153154155156
throws Exception { List artifacts = dao.getArtifactDAO().queryArtifacts( null ); ArchivaArtifactConsumer consumer = (ArchivaArtifactConsumer) lookup( ArchivaArtifactConsumer.class.getName(), "duplicate-artifacts" ); consumer.beginScan(); try { Iterator it = artifacts.iterator(); while ( it.hasNext() ) {
148149150151152153154155156157158