Class DelegatedDirectoryPruningJob
java.lang.Object
com.atlassian.labs.crowd.directory.pruning.jobs.DelegatedDirectoryPruningJob
- All Implemented Interfaces:
com.atlassian.scheduler.JobRunner
@Named
public class DelegatedDirectoryPruningJob
extends Object
implements com.atlassian.scheduler.JobRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.atlassian.scheduler.config.JobRunnerKey
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatedDirectoryPruningJob
(com.atlassian.scheduler.SchedulerService schedulerService, DirectoryManager directoryManager, DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.event.api.EventPublisher eventPublisher, PruningJobStatusService pruningJobStatusService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
com.atlassian.scheduler.JobRunnerResponse
runJob
(com.atlassian.scheduler.JobRunnerRequest request)
-
Field Details
-
PRUNING_JOBRUNNER_KEY
public static final com.atlassian.scheduler.config.JobRunnerKey PRUNING_JOBRUNNER_KEY
-
-
Constructor Details
-
DelegatedDirectoryPruningJob
@Inject public DelegatedDirectoryPruningJob(com.atlassian.scheduler.SchedulerService schedulerService, DirectoryManager directoryManager, DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.event.api.EventPublisher eventPublisher, PruningJobStatusService pruningJobStatusService)
-
-
Method Details
-
registerPruningJob
@PostConstruct public void registerPruningJob() throws com.atlassian.scheduler.SchedulerServiceException- Throws:
com.atlassian.scheduler.SchedulerServiceException
-
onDestroy
@PreDestroy public void onDestroy() -
runJob
@Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request) - Specified by:
runJob
in interfacecom.atlassian.scheduler.JobRunner
-