This project has retired. For details please refer to its Attic page.
DatabaseConsumers

org.apache.maven.archiva.database.updater
Class DatabaseConsumers

Package class diagram package DatabaseConsumers
java.lang.Object
  extended by org.apache.maven.archiva.database.updater.DatabaseConsumers
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class DatabaseConsumers
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

DatabaseConsumers


Constructor Summary
DatabaseConsumers(ArchivaConfiguration archivaConfiguration)
           
 
Method Summary
 void executeCleanupConsumer(ArchivaArtifact artifact)
          Execute the cleanup consumers to cleanup the specified artifact from the database and index.
 java.util.List<DatabaseCleanupConsumer> getAvailableCleanupConsumers()
          Get the complete List of DatabaseCleanupConsumer objects that are available in the system, regardless of configuration.
 java.util.List<DatabaseUnprocessedArtifactConsumer> getAvailableUnprocessedConsumers()
          Get the complete List of DatabaseUnprocessedArtifactConsumer objects that are available in the system, regardless of configuration.
 java.util.List<ArchivaArtifactConsumer> getSelectedCleanupConsumers()
          Get the List of DatabaseCleanupConsumer objects for those consumers selected due to the configuration.
 java.util.List<ArchivaArtifactConsumer> getSelectedUnprocessedConsumers()
          Get the List of DatabaseUnprocessedArtifactConsumer objects for those consumers selected due to the configuration.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseConsumers

public DatabaseConsumers(ArchivaConfiguration archivaConfiguration)
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getSelectedUnprocessedConsumers

public java.util.List<ArchivaArtifactConsumer> getSelectedUnprocessedConsumers()
Get the List of DatabaseUnprocessedArtifactConsumer objects for those consumers selected due to the configuration.

Returns:
the list of selected DatabaseUnprocessedArtifactConsumer objects.

getSelectedCleanupConsumers

public java.util.List<ArchivaArtifactConsumer> getSelectedCleanupConsumers()
Get the List of DatabaseCleanupConsumer objects for those consumers selected due to the configuration.

Returns:
the list of selected DatabaseCleanupConsumer objects.

getAvailableUnprocessedConsumers

public java.util.List<DatabaseUnprocessedArtifactConsumer> getAvailableUnprocessedConsumers()
Get the complete List of DatabaseUnprocessedArtifactConsumer objects that are available in the system, regardless of configuration.

Returns:
the list of all available DatabaseUnprocessedArtifactConsumer objects.

getAvailableCleanupConsumers

public java.util.List<DatabaseCleanupConsumer> getAvailableCleanupConsumers()
Get the complete List of DatabaseCleanupConsumer objects that are available in the system, regardless of configuration.

Returns:
the list of all available DatabaseCleanupConsumer objects.

executeCleanupConsumer

public void executeCleanupConsumer(ArchivaArtifact artifact)
Execute the cleanup consumers to cleanup the specified artifact from the database and index.

Parameters:
artifact -