Package org.jenkinsci.plugins.saml
Class UpdateMetadataFromURLPeriodicWork
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.AperiodicWork
hudson.model.AsyncAperiodicWork
org.jenkinsci.plugins.saml.UpdateMetadataFromURLPeriodicWork
- All Implemented Interfaces:
ExtensionPoint,Runnable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final Stringproperty to set the initial delay of the AsyncAperiodicWork.Fields inherited from class hudson.model.AsyncAperiodicWork
nameFields inherited from class hudson.model.AperiodicWork
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.AsyncAperiodicWork
createListener, doAperiodicRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevelMethods inherited from class hudson.model.AperiodicWork
all, doRun, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
INITIAL_DELAY_PROPERTY
property to set the initial delay of the AsyncAperiodicWork. -Dorg.jenkinsci.plugins.saml.UpdateMetadataFromURLPeriodicWork.initialDelay=MILLISECONDS -
INITIAL_DELAY
public static final long INITIAL_DELAY
-
-
Constructor Details
-
UpdateMetadataFromURLPeriodicWork
public UpdateMetadataFromURLPeriodicWork()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classAperiodicWork- Returns:
- the configured period, if the configured period is 0 return 10 minutes, if we are starting the Jenkins instance schedule an execution after 10 seconds.
-
getInitialDelay
public long getInitialDelay()- Overrides:
getInitialDelayin classAperiodicWork
-
getNewInstance
- Specified by:
getNewInstancein classAperiodicWork
-
execute
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.
- Specified by:
executein classAsyncAperiodicWork
-