public abstract class AsynchronousAdministrativeMonitor extends AdministrativeMonitor
AdministrativeMonitor
that involves a background "fixing" action
once the user opts in for the execution of it.
A subclass defines what that background fixing actually does in fix(TaskListener)
. The logging output
from it gets persisted, and this class provides a "/log" view that allows the administrator to monitor its progress.
See RekeySecretAdminMonitor
for an example of how to subtype this class.
Modifier and Type | Class and Description |
---|---|
protected class |
AsynchronousAdministrativeMonitor.FixThread |
ExtensionPoint.LegacyInstancesAreScopedToHudson
id
Constructor and Description |
---|
AsynchronousAdministrativeMonitor() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
fix(TaskListener listener)
Run on a separate thread in the background to fix up stuff.
|
protected File |
getBaseDir() |
abstract String |
getDisplayName() |
protected File |
getLogFile()
Rewrite log file.
|
AnnotatedLargeText |
getLogText()
Used to URL-bind
AnnotatedLargeText . |
boolean |
isFixingActive()
Is there an active execution process going on?
|
protected Thread |
start(boolean forceRestart)
Starts the background fixing activity.
|
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isActivated, isEnabled, isSecurity
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public boolean isFixingActive()
public AnnotatedLargeText getLogText()
AnnotatedLargeText
.protected File getLogFile()
protected File getBaseDir()
public abstract String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class AdministrativeMonitor
protected Thread start(boolean forceRestart)
forceRestart
- If true, any ongoing fixing activity gets interrupted and the new one starts right away.protected abstract void fix(TaskListener listener) throws Exception
Exception
Copyright © 2004–2022. All rights reserved.