|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.scheduler.jobs.ContentSourceSyncJob
public class ContentSourceSyncJob
This is a Quartz scheduler job whose job is to synchronize one particular ContentSource. After synchronizing
the metadata, this will also attempt to load the content if the content source is not configured for
lazy loading.
This implements StatefulJob (as opposed to Job) because we do not need nor want this job triggered
concurrently. That is, we don't need multiple instances of this job running at the same time.
| Constructor Summary | |
|---|---|
ContentSourceSyncJob()
|
|
| Method Summary | |
|---|---|
static org.quartz.JobDataMap |
createJobDataMap(ContentSource contentSource,
org.quartz.JobDetail details)
All content source sync jobs must have specified data prepared in their job details data map. |
static java.lang.String |
createJobName(ContentSource cs)
Creates the name for the scheduled content source's sync job. |
static java.lang.String |
createUniqueJobName(ContentSource cs)
Creates a unique name for a new content source sync job. |
void |
execute(org.quartz.JobExecutionContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSourceSyncJob()
| Method Detail |
|---|
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionException
public static org.quartz.JobDataMap createJobDataMap(ContentSource contentSource,
org.quartz.JobDetail details)
null, this will place the
created data map in the details for you. Otherwise, you must ensure
the returned data map gets associated with the job when it is created.
contentSource - the content source whose sync job's details is being prepareddetails - where the job's data map will be stored (may be null)
public static java.lang.String createJobName(ContentSource cs)
cs - the content source whose scheduled job name is to be returned
public static java.lang.String createUniqueJobName(ContentSource cs)
cs - the content source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||