Class StudioClockTask
- java.lang.Object
-
- org.craftercms.studio.impl.v2.job.StudioClockTask
-
- All Implemented Interfaces:
SiteJob
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
StudioAuditLogProcessingTask
,StudioPublisherTask
,StudioSyncRepositoryTask
public abstract class StudioClockTask extends Object implements SiteJob, org.springframework.context.ApplicationContextAware
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected ContentRepository
contentRepository
protected Map<String,Integer>
counters
protected int
executeEveryNCycles
protected int
offset
protected SiteService
siteService
protected StudioConfiguration
studioConfiguration
-
Constructor Summary
Constructors Constructor Description StudioClockTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkCycleCounter(String site)
void
execute(String site)
protected abstract void
executeInternal(String site)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setContentRepository(ContentRepository contentRepository)
protected void
setCycleCounter(String site, int counter)
void
setExecuteEveryNCycles(int executeEveryNCycles)
void
setOffset(int offset)
void
setSiteService(SiteService siteService)
void
setStudioConfiguration(StudioConfiguration studioConfiguration)
-
-
-
Field Detail
-
executeEveryNCycles
protected int executeEveryNCycles
-
offset
protected int offset
-
studioConfiguration
protected StudioConfiguration studioConfiguration
-
siteService
protected SiteService siteService
-
contentRepository
protected ContentRepository contentRepository
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Method Detail
-
checkCycleCounter
protected boolean checkCycleCounter(String site)
-
setCycleCounter
protected void setCycleCounter(String site, int counter)
-
executeInternal
protected abstract void executeInternal(String site)
-
setExecuteEveryNCycles
public void setExecuteEveryNCycles(int executeEveryNCycles)
-
setOffset
public void setOffset(int offset)
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
setSiteService
public void setSiteService(SiteService siteService)
-
setContentRepository
public void setContentRepository(ContentRepository contentRepository)
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
-