|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectjobs.IndexingJob
class IndexingJob
A Quartz Scheduler job to regenerate Wikis. Scheduling is done by Bootstrap and WikiController, based on Wiki.regenerateTime
Property Summary | |
---|---|
static String |
LOCK
lock |
static Map |
beingIndexed
indicates that the items are being indexed |
static boolean |
indexingScheduled
|
static Logger |
log
Logger |
static Map |
requestsQueue
queue for indexing jobs. |
Constructor Summary | |
IndexingJob()
|
Method Summary | |
---|---|
static boolean
|
addToQueue(String wikiId, String url, int cmd, String cmdDesc)
Adds a new url to queue for indexing/deletion Id of the wiki area, this url belongs to Url of the file/directory that should be indexed (one of INDEX_CMD, DELETE_CMD, or UPDATE_CMD) in the queue or being indexed. |
void
|
execute(JobExecutionContext context)
Execute an indexing job |
static Map
|
getIndexingStatus()
puts both queues, requeustsQueue and beingIndexed in a single map and returns |
static boolean
|
isBeingIndexed(String url, String wikiId)
Method returns true if the given url is being indexed. |
static void
|
scheduleIndexing()
Schedule indexing job every 5 mins |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
static String LOCK
static Map beingIndexed
static boolean indexingScheduled
static Logger log
static Map requestsQueue
Constructor Detail |
---|
IndexingJob()
Method Detail |
---|
public static boolean addToQueue(String wikiId, String url, int cmd, String cmdDesc)
void execute(JobExecutionContext context)
public static Map getIndexingStatus()
public static boolean isBeingIndexed(String url, String wikiId)
public static void scheduleIndexing()
Groovy Documentation