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

org.apache.maven.archiva.scheduled
Interface ArchivaTaskScheduler

Package class diagram package ArchivaTaskScheduler
All Known Implementing Classes:
DefaultArchivaTaskScheduler

public interface ArchivaTaskScheduler

The component that takes care of scheduling in the application.


Field Summary
static java.lang.String ROLE
          The Plexus component role.
 
Method Summary
 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 startup()
           
 

Field Detail

ROLE

static final java.lang.String ROLE
The Plexus component role.

Method Detail

isProcessingDatabaseTask

boolean isProcessingDatabaseTask()
Checks if there is any database scanning task queued.

Returns:
Throws:
ArchivaException

isProcessingRepositoryTask

boolean isProcessingRepositoryTask(java.lang.String repositoryId)
Checks if a repository scanning task for the specified repository is queued.

Parameters:
repositoryId -
Returns:
Throws:
ArchivaException

queueDatabaseTask

void queueDatabaseTask(DatabaseTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
Adds the database task to the database scanning queue.

Parameters:
task -
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException

queueRepositoryTask

void queueRepositoryTask(RepositoryTask task)
                         throws org.codehaus.plexus.taskqueue.TaskQueueException
Adds the repository task to the repo scanning queue.

Parameters:
task -
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException

queueIndexingTask

void queueIndexingTask(ArtifactIndexingTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
Adds the indexing task to the indexing queue.

Parameters:
task -
Throws:
org.codehaus.plexus.taskqueue.TaskQueueException

scheduleDatabaseTasks

void scheduleDatabaseTasks()
                           throws org.codehaus.plexus.taskqueue.execution.TaskExecutionException
Schedules the database tasks using the set cron expression.

Throws:
org.codehaus.plexus.taskqueue.execution.TaskExecutionException

startup

void startup()
             throws ArchivaException
Throws:
ArchivaException