@Extension @Symbol(value="rekeySecret") public class RekeySecretAdminMonitor extends AsynchronousAdministrativeMonitor
SecretRewriter
AsynchronousAdministrativeMonitor.FixThread
ExtensionPoint.LegacyInstancesAreScopedToHudson
id
Constructor and Description |
---|
RekeySecretAdminMonitor() |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doScan(org.kohsuke.stapler.StaplerRequest req) |
protected void |
fix(TaskListener listener)
Run on a separate thread in the background to fix up stuff.
|
String |
getDisplayName() |
protected File |
getLogFile()
Rewrite log file.
|
boolean |
isActivated()
Returns true if this monitor is activated and
wants to produce a warning message.
|
boolean |
isDone()
Indicates that the re-keying has run to the completion.
|
boolean |
isScanOnBoot() |
boolean |
isSecurity()
Returns true if this monitor is security related.
|
void |
scanOnReboot() |
void |
setNeeded() |
getBaseDir, getLogText, isFixingActive, start
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public RekeySecretAdminMonitor() throws IOException
IOException
public boolean isActivated()
AdministrativeMonitor
This method is called from the HTML rendering thread, so it should run efficiently.
isActivated
in class AdministrativeMonitor
public boolean isDone()
public void setNeeded()
public boolean isScanOnBoot()
public boolean isSecurity()
AdministrativeMonitor
isSecurity
in class AdministrativeMonitor
public org.kohsuke.stapler.HttpResponse doScan(org.kohsuke.stapler.StaplerRequest req) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
@Initializer(fatal=false, after=PLUGINS_STARTED, before=EXTENSIONS_AUGMENTED) public void scanOnReboot() throws InterruptedException, IOException, GeneralSecurityException
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class AsynchronousAdministrativeMonitor
protected File getLogFile()
getLogFile
in class AsynchronousAdministrativeMonitor
protected void fix(TaskListener listener) throws Exception
AsynchronousAdministrativeMonitor
fix
in class AsynchronousAdministrativeMonitor
Exception
Copyright © 2004–2022. All rights reserved.