
Package ca.uhn.fhir.jpa.sched
Class BaseHapiScheduler
- java.lang.Object
-
- ca.uhn.fhir.jpa.sched.BaseHapiScheduler
-
- All Implemented Interfaces:
IHapiScheduler
- Direct Known Subclasses:
ClusteredHapiScheduler
,LocalHapiScheduler
public abstract class BaseHapiScheduler extends Object implements IHapiScheduler
-
-
Constructor Summary
Constructors Constructor Description BaseHapiScheduler(String theThreadNamePrefix, AutowiringSpringBeanJobFactory theSpringBeanJobFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProperty(String key, String value)
void
clear()
Set<org.quartz.JobKey>
getJobKeysForUnitTest()
void
init()
boolean
isStarted()
void
logStatusForUnitTest()
protected void
massageJobFactory(org.springframework.scheduling.quartz.SchedulerFactoryBean theFactory)
void
scheduleJob(long theIntervalMillis, ScheduledJobDefinition theJobDefinition)
protected void
setProperties()
void
shutdown()
void
start()
-
-
-
Constructor Detail
-
BaseHapiScheduler
public BaseHapiScheduler(String theThreadNamePrefix, AutowiringSpringBeanJobFactory theSpringBeanJobFactory)
-
-
Method Detail
-
init
public void init() throws org.quartz.SchedulerException
- Specified by:
init
in interfaceIHapiScheduler
- Throws:
org.quartz.SchedulerException
-
massageJobFactory
protected void massageJobFactory(org.springframework.scheduling.quartz.SchedulerFactoryBean theFactory)
-
setProperties
protected void setProperties()
-
addProperty
protected void addProperty(String key, String value)
-
start
public void start()
- Specified by:
start
in interfaceIHapiScheduler
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceIHapiScheduler
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceIHapiScheduler
-
clear
public void clear() throws org.quartz.SchedulerException
- Specified by:
clear
in interfaceIHapiScheduler
- Throws:
org.quartz.SchedulerException
-
logStatusForUnitTest
public void logStatusForUnitTest()
- Specified by:
logStatusForUnitTest
in interfaceIHapiScheduler
-
scheduleJob
public void scheduleJob(long theIntervalMillis, ScheduledJobDefinition theJobDefinition)
- Specified by:
scheduleJob
in interfaceIHapiScheduler
-
getJobKeysForUnitTest
public Set<org.quartz.JobKey> getJobKeysForUnitTest() throws org.quartz.SchedulerException
- Specified by:
getJobKeysForUnitTest
in interfaceIHapiScheduler
- Throws:
org.quartz.SchedulerException
-
-