@ERQSMyJobListener(value="er.quartzscheduler.foundation.ERQSJobListener") @ERQSMySupervisor(value="er.quartzscheduler.foundation.ERQSJobSupervisor") public class ERQSSchedulerFP4Test extends ERQSSchedulerServiceFrameworkPrincipal
ERXFrameworkPrincipal.Observer
INSTANCE_KEY
initializedFrameworks, launchingFrameworks
Constructor and Description |
---|
ERQSSchedulerFP4Test() |
Modifier and Type | Method and Description |
---|---|
NSArray<ERQSJobDescription> |
getListOfJobDescription(com.webobjects.eocontrol.EOEditingContext editingContext)
Expects that this method never returns null but an empty array if there is no job
|
com.webobjects.eocontrol.EOEditingContext |
newEditingContext()
This method is used by a job that subclasses ERQSAbstractJob.
|
com.webobjects.eocontrol.EOEditingContext |
newEditingContext(com.webobjects.eocontrol.EOObjectStore parent)
This method is used by a job that subclasses ERQSAbstractJob.
|
addJobListener, deleteAllJobs, finishInitialization, getAllJobs, getDefaultJobListener, getScheduler, getSharedInstance, getTriggerOfJob, getTriggerState, hasRunningJobs, instantiateJobSupervisor, schedulerMustRun, setSharedInstance, stopScheduler, supervisorSleepDuration, triggerNow
didFinishInitialization, hasFrameworkInstalled, initialize, setUpFrameworkPrincipalClass, sharedInstance, toString
public NSArray<ERQSJobDescription> getListOfJobDescription(com.webobjects.eocontrol.EOEditingContext editingContext)
ERQSSchedulerServiceFrameworkPrincipal
getListOfJobDescription
in class ERQSSchedulerServiceFrameworkPrincipal
public com.webobjects.eocontrol.EOEditingContext newEditingContext()
ERQSSchedulerServiceFrameworkPrincipal
private static ERXEC.Factory manualLockingEditingContextFactory = new ERXEC.DefaultFactory() { protected EOEditingContext _createEditingContext(final EOObjectStore parent) { return new MyEditingContext(parent == null ? EOEditingContext.defaultParentObjectStore() : parent) { public boolean useAutoLock() {return false;} public boolean coalesceAutoLocks() {return false;} }; }Then implement newEditingContext() as follow:
public EOEditingContext newEditingContext() { EOObjectStoreCoordinator osc = ERXTaskObjectStoreCoordinatorPool.objectStoreCoordinator(); return COEditingContextFactory.newManualLockingEditingContext(osc); }
newEditingContext
in class ERQSSchedulerServiceFrameworkPrincipal
public com.webobjects.eocontrol.EOEditingContext newEditingContext(com.webobjects.eocontrol.EOObjectStore parent)
ERQSSchedulerServiceFrameworkPrincipal
newEditingContext
in class ERQSSchedulerServiceFrameworkPrincipal
Copyright © 2002 – 2020 Project Wonder.