@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class FolderCron extends PeriodicWork
Trigger.Cron
analogue for ComputedFolder
.
TODO should introduce a core API defining an Item
with a public Map<TriggerDescriptor,Trigger<?>>
getTriggers()
interface
(retrofit ParameterizedJobMixIn.ParameterizedJob
and ComputedFolder
to extend it,
and use it from Trigger.Cron
).ExtensionPoint.LegacyInstancesAreScopedToHudson
DAY, HOUR, logger, MIN
Constructor and Description |
---|
FolderCron()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkTriggers(Calendar cal)
Checks the triggers.
|
void |
doRun() |
long |
getInitialDelay() |
long |
getRecurrencePeriod() |
all, init
getLogsRoot, run
cancel, scheduledExecutionTime
public FolderCron() throws NoSuchFieldException
NoSuchFieldException
- if we cannot access the tabs field of Trigger
.public long getRecurrencePeriod()
getRecurrencePeriod
in class PeriodicWork
public long getInitialDelay()
getInitialDelay
in class PeriodicWork
public void doRun()
doRun
in class SafeTimerTask
public void checkTriggers(Calendar cal)
cal
- the date to check for.Copyright © 2016–2020. All rights reserved.