Package net.shibboleth.idp.admin.impl
Class ReportUpdateStatus
- All Implemented Interfaces:
Runnable,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class ReportUpdateStatus
extends AbstractIdentifiableInitializableComponent
implements Runnable
A class to reach out and find out whether we are up to date.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe cache (to stop us going offsite if someone already has).private booleanAre we to run?private org.apache.hc.client5.http.classic.HttpClientHow to reach out.private final org.slf4j.LoggerLogger.private HttpClientSecurityParametersany security parameters needed.Where to look for update information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidrun()Do the lookup, but in a different thread so as to not slow down startup.voidSet the cache of information we have phoned home about;voidsetEnabled(boolean on) Are we going to do anything?voidsetHttpClient(org.apache.hc.client5.http.classic.HttpClient client) Set theHttpClientto use.voidSet anyHttpClientSecurityParameters.voidsetUpdateUrls(List<URL> urls) Set where to look.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logLogger. -
updateUrls
Where to look for update information. -
enabled
private boolean enabledAre we to run? -
httpClient
How to reach out. -
securityParams
any security parameters needed. -
cache
The cache (to stop us going offsite if someone already has).
-
-
Constructor Details
-
ReportUpdateStatus
public ReportUpdateStatus()
-
-
Method Details
-
setUpdateUrls
Set where to look.- Parameters:
urls- what to set.
-
setSecurityParams
Set anyHttpClientSecurityParameters.- Parameters:
params- what to set.
-
setHttpClient
public void setHttpClient(@Nonnull org.apache.hc.client5.http.classic.HttpClient client) Set theHttpClientto use.- Parameters:
client- what to set.
-
setEnabled
public void setEnabled(boolean on) Are we going to do anything?- Parameters:
on- are we enabled
-
setCache
Set the cache of information we have phoned home about;- Parameters:
what- what to set
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
run
public void run()Do the lookup, but in a different thread so as to not slow down startup.
-