public class Scheduler extends java.lang.Object implements IScheduler, IRecordingListener
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String domainName,
java.lang.String jid) |
java.util.Set<java.lang.String> |
checkLockedResources(java.lang.String domain,
IScheduledJob bj) |
void |
error(IScheduledJobRunId rid,
java.lang.String locale,
java.lang.String logEntry) |
void |
finish(IScheduledJobRunId irid,
JobExitStatus status)
Called by jobs at the end of the tick method when no exception occured.
|
static Scheduler |
get() |
IScheduledJobRunId |
getActiveSlot(java.lang.String domainName,
java.lang.String jid) |
java.util.Map<java.lang.String,RunIdImpl> |
getActiveSlots()
Returns a copy of the running jobs list
|
void |
info(IScheduledJobRunId rid,
java.lang.String locale,
java.lang.String logEntry) |
void |
recordingComplete(RunIdImpl rid) |
void |
reportProgress(IScheduledJobRunId rid,
int percent) |
IScheduledJobRunId |
requestSlot(java.lang.String domainName,
IScheduledJob bj,
java.util.Date startDate)
Request an execution id to start a job.
|
void |
setActiveGroup(java.lang.String execGroup) |
void |
tryRun(JobTicker runner) |
void |
unregister(java.lang.String domainName,
IScheduledJob bj) |
void |
warn(IScheduledJobRunId rid,
java.lang.String locale,
java.lang.String logEntry) |
public IScheduledJobRunId requestSlot(java.lang.String domainName, IScheduledJob bj, java.util.Date startDate) throws ServerFault
IScheduler
requestSlot
in interface IScheduler
ServerFault
public void info(IScheduledJobRunId rid, java.lang.String locale, java.lang.String logEntry)
info
in interface IScheduler
public void warn(IScheduledJobRunId rid, java.lang.String locale, java.lang.String logEntry)
warn
in interface IScheduler
public void error(IScheduledJobRunId rid, java.lang.String locale, java.lang.String logEntry)
error
in interface IScheduler
public void reportProgress(IScheduledJobRunId rid, int percent)
reportProgress
in interface IScheduler
public void finish(IScheduledJobRunId irid, JobExitStatus status)
IScheduler
finish
in interface IScheduler
public void recordingComplete(RunIdImpl rid)
recordingComplete
in interface IRecordingListener
public static Scheduler get()
public IScheduledJobRunId getActiveSlot(java.lang.String domainName, java.lang.String jid)
public void tryRun(JobTicker runner)
public void cancel(java.lang.String domainName, java.lang.String jid)
public void setActiveGroup(java.lang.String execGroup)
public java.util.Map<java.lang.String,RunIdImpl> getActiveSlots()
public java.util.Set<java.lang.String> checkLockedResources(java.lang.String domain, IScheduledJob bj)
public void unregister(java.lang.String domainName, IScheduledJob bj)
Copyright © 2021. All Rights Reserved.