org.apache.archiva.consumers
Class AbstractMonitoredConsumer

java.lang.Object
  extended by org.apache.archiva.consumers.AbstractMonitoredConsumer
All Implemented Interfaces:
Consumer
Direct Known Subclasses:
ArchivaMetadataCreationConsumer, ArtifactMissingChecksumsConsumer, AutoRemoveConsumer, AutoRenameConsumer, DuplicateArtifactsConsumer, LegacyConverterArtifactConsumer, MetadataUpdaterConsumer, NexusIndexerConsumer, RepositoryPurgeConsumer, ValidateChecksumConsumer

public abstract class AbstractMonitoredConsumer
extends Object
implements Consumer

AbstractMonitoredConsumer


Field Summary
private  Set<ConsumerMonitor> monitors
           
 
Constructor Summary
AbstractMonitoredConsumer()
           
 
Method Summary
 void addConsumerMonitor(ConsumerMonitor monitor)
          Add a consumer monitor to the consumer.
protected  List<String> getDefaultArtifactExclusions()
           
 boolean isProcessUnmodified()
           
 void removeConsumerMonitor(ConsumerMonitor monitor)
          Remove a consumer monitor.
protected  void triggerConsumerError(String type, String message)
           
protected  void triggerConsumerInfo(String message)
           
protected  void triggerConsumerWarning(String type, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.archiva.consumers.Consumer
getDescription, getId, isPermanent
 

Field Detail

monitors

private Set<ConsumerMonitor> monitors
Constructor Detail

AbstractMonitoredConsumer

public AbstractMonitoredConsumer()
Method Detail

addConsumerMonitor

public void addConsumerMonitor(ConsumerMonitor monitor)
Description copied from interface: Consumer
Add a consumer monitor to the consumer.

Specified by:
addConsumerMonitor in interface Consumer
Parameters:
monitor - the monitor to add.

removeConsumerMonitor

public void removeConsumerMonitor(ConsumerMonitor monitor)
Description copied from interface: Consumer
Remove a consumer monitor.

Specified by:
removeConsumerMonitor in interface Consumer
Parameters:
monitor - the monitor to remove.

triggerConsumerError

protected void triggerConsumerError(String type,
                                    String message)

triggerConsumerWarning

protected void triggerConsumerWarning(String type,
                                      String message)

triggerConsumerInfo

protected void triggerConsumerInfo(String message)

isProcessUnmodified

public boolean isProcessUnmodified()

getDefaultArtifactExclusions

protected List<String> getDefaultArtifactExclusions()


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.