| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.apache.maven.archiva.scheduled.DefaultArchivaTaskScheduler
public class DefaultArchivaTaskScheduler
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 | 
|---|
public static final java.lang.String CRON_HOURLY
| Constructor Detail | 
|---|
public DefaultArchivaTaskScheduler()
| Method Detail | 
|---|
public void startup()
             throws ArchivaException
startup in interface ArchivaTaskSchedulerArchivaException
public void start()
           throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
start in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startableorg.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
public void stop()
          throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
stop in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startableorg.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
public void scheduleDatabaseTasks()
                           throws org.codehaus.plexus.taskqueue.execution.TaskExecutionException
ArchivaTaskScheduler
scheduleDatabaseTasks in interface ArchivaTaskSchedulerorg.codehaus.plexus.taskqueue.execution.TaskExecutionExceptionArchivaTaskScheduler.scheduleDatabaseTasks()public boolean isProcessingRepositoryTask(java.lang.String repositoryId)
ArchivaTaskScheduler
isProcessingRepositoryTask in interface ArchivaTaskSchedulerArchivaTaskScheduler.isProcessingRepositoryTask(String)public boolean isProcessingDatabaseTask()
ArchivaTaskScheduler
isProcessingDatabaseTask in interface ArchivaTaskSchedulerArchivaTaskScheduler.isProcessingDatabaseTask()
public void queueRepositoryTask(RepositoryTask task)
                         throws org.codehaus.plexus.taskqueue.TaskQueueException
ArchivaTaskScheduler
queueRepositoryTask in interface ArchivaTaskSchedulerorg.codehaus.plexus.taskqueue.TaskQueueExceptionArchivaTaskScheduler.queueRepositoryTask(RepositoryTask)
public void queueDatabaseTask(DatabaseTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
ArchivaTaskScheduler
queueDatabaseTask in interface ArchivaTaskSchedulerorg.codehaus.plexus.taskqueue.TaskQueueExceptionArchivaTaskScheduler.queueDatabaseTask(DatabaseTask)
public void queueIndexingTask(ArtifactIndexingTask task)
                       throws org.codehaus.plexus.taskqueue.TaskQueueException
ArchivaTaskScheduler
queueIndexingTask in interface ArchivaTaskSchedulerorg.codehaus.plexus.taskqueue.TaskQueueExceptionArchivaTaskScheduler.queueIndexingTask(ArtifactIndexingTask)public void configurationEvent(ConfigurationEvent event)
ConfigurationListener
configurationEvent in interface ConfigurationListener
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||