@Extension @Symbol(value="oldData") public class OldDataMonitor extends AdministrativeMonitor
Modifier and Type | Class and Description |
---|---|
static class |
OldDataMonitor.ManagementLinkImpl |
static class |
OldDataMonitor.VersionRange |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static SaveableListener |
changeListener |
static ItemListener |
itemDeleteListener |
static RunListener<Run> |
runDeleteListener |
id
Constructor and Description |
---|
OldDataMonitor() |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doAct(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Depending on whether the user said "yes" or "no", send him to the right place.
|
org.kohsuke.stapler.HttpResponse |
doDiscard(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Save all files containing only unreadable data (no data upgrades), which discards this data.
|
org.kohsuke.stapler.HttpResponse |
doIndex(org.kohsuke.stapler.StaplerResponse rsp) |
org.kohsuke.stapler.HttpResponse |
doUpgrade(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Save all or some of the files to persist data in the new forms.
|
Map<Saveable,OldDataMonitor.VersionRange> |
getData() |
String |
getDisplayName() |
Iterator<VersionNumber> |
getVersionList()
Sorted list of unique max-versions in the data set.
|
boolean |
isActivated()
Returns true if this monitor is activated and
wants to produce a warning message.
|
static void |
report(Saveable obj,
Collection<Throwable> errors)
Inform monitor that some unreadable data was found while loading.
|
static void |
report(Saveable obj,
String version)
Inform monitor that some data in a deprecated format has been loaded,
and converted in-memory to a new structure.
|
static void |
report(com.thoughtworks.xstream.converters.UnmarshallingContext context,
String version)
Inform monitor that some data in a deprecated format has been loaded, during
XStream unmarshalling when the Saveable containing this object is not available.
|
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled, isSecurity
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
@Extension public static final SaveableListener changeListener
@Extension public static final ItemListener itemDeleteListener
@Extension public static final RunListener<Run> runDeleteListener
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class AdministrativeMonitor
public boolean isActivated()
AdministrativeMonitor
This method is called from the HTML rendering thread, so it should run efficiently.
isActivated
in class AdministrativeMonitor
public Map<Saveable,OldDataMonitor.VersionRange> getData()
public static void report(Saveable obj, String version)
obj
- Saveable object; calling save() on this object will persist
the data in its new format to disk.version
- Hudson release when the data structure changed.public static void report(com.thoughtworks.xstream.converters.UnmarshallingContext context, String version)
context
- XStream unmarshalling contextversion
- Hudson release when the data structure changed.public static void report(Saveable obj, Collection<Throwable> errors)
obj
- Saveable object; calling save() on this object will discard the unreadable data.errors
- Exception(s) thrown while loading, regarding the unreadable classes/fields.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Iterator<VersionNumber> getVersionList()
public org.kohsuke.stapler.HttpResponse doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doUpgrade(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public org.kohsuke.stapler.HttpResponse doDiscard(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public org.kohsuke.stapler.HttpResponse doIndex(org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
Copyright © 2004–2021. All rights reserved.