Package ca.uhn.fhir.batch2.api
Interface IJobMaintenanceService
- All Known Implementing Classes:
JobMaintenanceServiceImpl
public interface IJobMaintenanceService
-
Method Summary
Modifier and TypeMethodDescriptionvoidenableMaintenancePass(boolean thetoEnable) This is only to be called in a testing environment to ensure state changes are controlled.voidForces a second maintenance run.voidbooleanDo not wait for the next scheduled time for maintenance.
-
Method Details
-
triggerMaintenancePass
boolean triggerMaintenancePass()Do not wait for the next scheduled time for maintenance. Trigger it immediately.- Returns:
- true if a request to run a maintenance pass was fired, false if there was already a trigger request in queue so we can just use that one
-
runMaintenancePass
void runMaintenancePass() -
forceMaintenancePass
void forceMaintenancePass()Forces a second maintenance run. Only to be used in tests to simulate a long running maintenance step -
enableMaintenancePass
This is only to be called in a testing environment to ensure state changes are controlled.
-