@Extension public class UpdateMetadataFromURLPeriodicWork extends AsyncAperiodicWork
This periodic work update the IdP Metadata File, the periodicof the execution is defined on the SAML Plugin configuration.
If the Preriod is set to 0 the Periodic work is mostly disabled, it will check the changes on config every 10 minutes to see if it is enabled again, if the period change it is re-enabled again.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static long |
INITIAL_DELAY |
static String |
INITIAL_DELAY_PROPERTY
property to set the initial delay of the AsyncAperiodicWork.
|
name
logger
Constructor and Description |
---|
UpdateMetadataFromURLPeriodicWork() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(TaskListener listener) |
long |
getInitialDelay() |
AperiodicWork |
getNewInstance() |
long |
getRecurrencePeriod() |
createListener, doAperiodicRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel
all, doRun, init
getLogsRoot, run
cancel, scheduledExecutionTime
public static final String INITIAL_DELAY_PROPERTY
public static final long INITIAL_DELAY
public long getRecurrencePeriod()
getRecurrencePeriod
in class AperiodicWork
public long getInitialDelay()
getInitialDelay
in class AperiodicWork
public AperiodicWork getNewInstance()
getNewInstance
in class AperiodicWork
protected void execute(TaskListener listener)
Connect to the URL configured on the SAML configuration to get the IdP Metadata, then download it
if the period configured is 0 it returns directly, do nothing.
execute
in class AsyncAperiodicWork
Copyright © 2016–2019. All rights reserved.