com.atlassian.bamboo.user
Class BambooUserRefreshJobScheduler

java.lang.Object
  extended by com.atlassian.bamboo.user.BambooUserRefreshJobScheduler
All Implemented Interfaces:
BambooScheduler

public class BambooUserRefreshJobScheduler
extends java.lang.Object
implements BambooScheduler

When user management is through Crowd we need to schedule a background refresh of the local cache. The Crowd client knows whether or not a refresh is necessary, and this job calls RestCrowdClientSingleton#refreshCacheIfNecessary() at regular intervals to check.

If there is no need to refresh, either because we are not using Crowd or because the current snapshot is fresh enough, then this call will return without performing any work.


Nested Class Summary
static class BambooUserRefreshJobScheduler.BambooUserRefreshJob
           
 
Field Summary
static java.lang.String JOB_NAME
           
 
Constructor Summary
BambooUserRefreshJobScheduler(org.quartz.Scheduler scheduler, int refreshCheckSeconds)
           
 
Method Summary
 void initialiseSchedule()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_NAME

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

BambooUserRefreshJobScheduler

public BambooUserRefreshJobScheduler(org.quartz.Scheduler scheduler,
                                     int refreshCheckSeconds)
Method Detail

initialiseSchedule

public void initialiseSchedule()
Specified by:
initialiseSchedule in interface BambooScheduler


Copyright © 2012 Atlassian. All Rights Reserved.