public class ModelJobDb extends SimpleService implements FlowControlJobDb
FlowControlJobDb.Builder, FlowControlJobDb.RequestException, FlowControlJobDb.ServiceExceptionService.FailedToStart| Constructor and Description |
|---|
ModelJobDb(ServiceContainer sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
FlowControlJobDb.Builder |
createJob(FlowControlCallContext fccc) |
FlowControlJob |
getJob(FlowControlCallContext fccc,
String name)
Get a flow control job or return null if it does not exist for the calling user.
|
FlowControlJob |
getJobAsAdmin(String name)
Get a job (or return null) without checking access rights.
|
Collection<FlowControlJob> |
getJobsFor(FlowControlCallContext fccc) |
void |
removeJob(FlowControlCallContext fccc,
String name)
Remove the given job
|
void |
storeJob(FlowControlCallContext fccc,
String name,
FlowControlJob job)
Store the give job
|
isRunning, onStartRequested, onStopRequested, requestFinish, requestFinishAndWait, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitjobExistspublic ModelJobDb(ServiceContainer sc, org.json.JSONObject config) throws Builder.BuildFailure
Builder.BuildFailurepublic FlowControlJobDb.Builder createJob(FlowControlCallContext fccc)
createJob in interface FlowControlJobDbpublic Collection<FlowControlJob> getJobsFor(FlowControlCallContext fccc) throws FlowControlJobDb.ServiceException
getJobsFor in interface FlowControlJobDbFlowControlJobDb.ServiceExceptionpublic FlowControlJob getJob(FlowControlCallContext fccc, String name) throws FlowControlJobDb.ServiceException, AccessException
FlowControlJobDbgetJob in interface FlowControlJobDbFlowControlJobDb.ServiceExceptionAccessExceptionpublic FlowControlJob getJobAsAdmin(String name) throws FlowControlJobDb.ServiceException
FlowControlJobDbgetJobAsAdmin in interface FlowControlJobDbFlowControlJobDb.ServiceExceptionpublic void storeJob(FlowControlCallContext fccc, String name, FlowControlJob job) throws FlowControlJobDb.ServiceException, AccessException
FlowControlJobDbstoreJob in interface FlowControlJobDbFlowControlJobDb.ServiceExceptionAccessExceptionpublic void removeJob(FlowControlCallContext fccc, String name) throws FlowControlJobDb.ServiceException, AccessException
FlowControlJobDbremoveJob in interface FlowControlJobDbFlowControlJobDb.ServiceExceptionAccessExceptionCopyright © 2022 continual.io. All rights reserved.