public class TaskomaticApi
extends java.lang.Object
| Constructor and Description |
|---|
TaskomaticApi() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
findActiveSchedules(User user)
Return list of active schedules
|
java.util.List |
findRunsByBunch(User user,
java.lang.String bunchName)
Return list of bunch runs
|
java.lang.String |
getRepoSyncSchedule(Channel chan,
User user)
Get the cron format for a single channel
|
boolean |
isRunning()
Returns whether taskomatic is running
|
java.util.List |
listSatBunchSchedules(User user)
Return list of available bunches
|
java.util.Map |
lookupBunchByName(User user,
java.lang.String bunchName)
looks up bunch according to name
|
java.util.Map |
lookupScheduleByBunchAndLabel(User user,
java.lang.String bunchName,
java.lang.String scheduleLabel)
looks up schedule according to label
|
java.util.Map |
lookupScheduleById(User user,
java.lang.Long scheduleId)
looks up schedule according to id
|
boolean |
satScheduleActive(java.lang.String jobLabel,
User user)
Check whether there's an active schedule of given job label
|
java.util.Date |
scheduleRepoSync(Channel chan,
User user,
java.lang.String cron)
Schedule a recurring reposync
|
java.util.Date |
scheduleRepoSync(Channel chan,
User user,
java.lang.String cron,
java.util.Map<java.lang.String,java.lang.String> params)
Schedule a recurring reposync
|
java.util.Date |
scheduleSatBunch(User user,
java.lang.String jobLabel,
java.lang.String bunchName,
java.lang.String cron)
Creates a new schedule, unschedules, if en existing is defined
|
void |
scheduleSingleRepoSync(Channel chan,
User user)
Schedule a single reposync
|
void |
scheduleSingleRepoSync(Channel chan,
User user,
java.util.Map<java.lang.String,java.lang.String> params)
Schedule a single reposync
|
java.util.Date |
scheduleSingleSatBunch(User user,
java.lang.String bunchName)
Creates a new single satellite schedule
|
int |
unscheduleInvalidRepoSyncSchedules(Org orgIn)
unschedule all outdated repo-sync schedules within an org
|
void |
unscheduleRepoSync(Channel chan,
User user)
Unchedule a reposync task
|
void |
unscheduleSatTask(java.lang.String jobLabel,
User user)
unschedule satellite task
|
public boolean isRunning()
public void scheduleSingleRepoSync(Channel chan, User user) throws TaskomaticApiException
chan - the channeluser - the userTaskomaticApiException - if there was an errorpublic void scheduleSingleRepoSync(Channel chan, User user, java.util.Map<java.lang.String,java.lang.String> params) throws TaskomaticApiException
chan - the channeluser - the userparams - parametersTaskomaticApiException - if there was an errorpublic java.util.Date scheduleRepoSync(Channel chan, User user, java.lang.String cron) throws TaskomaticApiException
chan - the channeluser - the usercron - the cron formatTaskomaticApiException - if there was an errorpublic java.util.Date scheduleRepoSync(Channel chan, User user, java.lang.String cron, java.util.Map<java.lang.String,java.lang.String> params) throws TaskomaticApiException
chan - the channeluser - the usercron - the cron formatparams - parametersTaskomaticApiException - if there was an errorpublic java.util.Date scheduleSingleSatBunch(User user, java.lang.String bunchName) throws TaskomaticApiException
user - shall be sat adminbunchName - bunch nameTaskomaticApiException - if there was an errorpublic java.util.Date scheduleSatBunch(User user, java.lang.String jobLabel, java.lang.String bunchName, java.lang.String cron) throws TaskomaticApiException
user - shall be sat adminjobLabel - name of the schedulebunchName - bunch namecron - cron expressionTaskomaticApiException - if there was an errorpublic void unscheduleRepoSync(Channel chan, User user)
chan - the channeluser - the userpublic void unscheduleSatTask(java.lang.String jobLabel,
User user)
jobLabel - schedule nameuser - shall be satellite adminpublic java.util.List findActiveSchedules(User user)
user - shall be sat adminpublic java.util.List findRunsByBunch(User user, java.lang.String bunchName)
user - shall be sat adminbunchName - name of the bunchpublic boolean satScheduleActive(java.lang.String jobLabel,
User user)
jobLabel - job labeluser - the userpublic java.lang.String getRepoSyncSchedule(Channel chan, User user)
chan - the channeluser - the userpublic java.util.List listSatBunchSchedules(User user)
user - shall be sat adminpublic java.util.Map lookupScheduleById(User user, java.lang.Long scheduleId)
user - shall be sat adminscheduleId - schedule idpublic java.util.Map lookupScheduleByBunchAndLabel(User user, java.lang.String bunchName, java.lang.String scheduleLabel)
user - shall be sat adminbunchName - bunch namescheduleLabel - schedule labelpublic java.util.Map lookupBunchByName(User user, java.lang.String bunchName)
user - shall be sat adminbunchName - bunch namepublic int unscheduleInvalidRepoSyncSchedules(Org orgIn)
orgIn - organization