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

org.apache.maven.archiva.scheduled
Class DefaultArchivaTaskScheduler

Package class diagram package DefaultArchivaTaskScheduler
java.lang.Object
  extended by org.apache.maven.archiva.scheduled.DefaultArchivaTaskScheduler
All Implemented Interfaces:
ConfigurationListener, ArchivaTaskScheduler, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable

public class DefaultArchivaTaskScheduler
extends java.lang.Object
implements ArchivaTaskScheduler, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable, ConfigurationListener

Default implementation of a scheduling component for archiva.


Field Summary
static java.lang.String CRON_HOURLY
           
 
Fields inherited from interface org.apache.maven.archiva.scheduled.ArchivaTaskScheduler
ROLE
 
Constructor Summary
DefaultArchivaTaskScheduler()
           
 
Method Summary
 void configurationEvent(ConfigurationEvent event)
          Generic event point to notify components that something has happend in the configuration.
 boolean isProcessingDatabaseTask()
          Checks if there is any database scanning task queued.
 boolean isProcessingRepositoryTask(java.lang.String repositoryId)
          Checks if a repository scanning task for the specified repository is queued.
 void queueDatabaseTask(DatabaseTask task)
          Adds the database task to the database scanning queue.
 void queueIndexingTask(ArtifactIndexingTask task)
          Adds the indexing task to the indexing queue.
 void queueRepositoryTask(RepositoryTask task)
          Adds the repository task to the repo scanning queue.
 void scheduleDatabaseTasks()
          Schedules the database tasks using the set cron expression.
 void start()
           
 void startup()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRON_HOURLY

public static final java.lang.String CRON_HOURLY
See Also:
Constant Field Values
Constructor Detail

DefaultArchivaTaskScheduler

public DefaultArchivaTaskScheduler()
Method Detail

startup

public void startup()
             throws ArchivaException
Specified by:
startup in interface ArchivaTaskScheduler
Throws:
ArchivaException

start

public void start()
           throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
Specified by:
start in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException

stop

public void stop()
          throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
Specified by:
stop in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException

scheduleDatabaseTasks

public void scheduleDatabaseTasks()
                           throws org.codehaus.plexus.taskqueue.execution.TaskExecutionException
Description copied from interface: ArchivaTaskScheduler
Schedules the database tasks using the set cron expression.

Specified by:
scheduleDatabaseTasks in interface ArchivaTaskScheduler
Throws:
org.codehaus.plexus.taskqueue.execution.TaskExecutionException
See Also:
ArchivaTaskScheduler.scheduleDatabaseTasks()

isProcessingRepositoryTask

public boolean isProcessingRepositoryTask(java.lang.String repositoryId)
Description copied from interface: ArchivaTaskScheduler
Checks if a repository scanning task for the specified repository is queued.

Specified by:
isProcessingRepositoryTask in interface ArchivaTaskScheduler
Returns:
See Also:
ArchivaTaskScheduler.isProcessingRepositoryTask(String)

isProcessingDatabaseTask

public boolean isProcessingDatabaseTask()
Description copied from interface: ArchivaTaskScheduler
Checks if there is any database scanning task queued.

Specified by:
isProcessingDatabaseTask in interface ArchivaTaskScheduler
Returns:
See Also:
ArchivaTaskScheduler.isProcessingDatabaseTask()

queueRepositoryTask

public void queueRepositoryTask(RepositoryTask task)
                         throws org.codehaus.plexus.taskqueue.TaskQueueException
Description copied from interface: ArchivaTaskScheduler
Adds the repository task to the repo scanning queue.

Specified by:
queueRepositoryTask in interface ArchivaTaskScheduler
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException
See Also:
ArchivaTaskScheduler.queueRepositoryTask(RepositoryTask)

queueDatabaseTask

public void queueDatabaseTask(DatabaseTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
Description copied from interface: ArchivaTaskScheduler
Adds the database task to the database scanning queue.

Specified by:
queueDatabaseTask in interface ArchivaTaskScheduler
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException
See Also:
ArchivaTaskScheduler.queueDatabaseTask(DatabaseTask)

queueIndexingTask

public void queueIndexingTask(ArtifactIndexingTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
Description copied from interface: ArchivaTaskScheduler
Adds the indexing task to the indexing queue.

Specified by:
queueIndexingTask in interface ArchivaTaskScheduler
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException
See Also:
ArchivaTaskScheduler.queueIndexingTask(ArtifactIndexingTask)

configurationEvent

public void configurationEvent(ConfigurationEvent event)
Description copied from interface: ConfigurationListener
Generic event point to notify components that something has happend in the configuration.

Specified by:
configurationEvent in interface ConfigurationListener