@Extension @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class MissingClassTelemetry extends Telemetry
MOVED_PACKAGES
.Telemetry.TelemetryReporter
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
MissingClassTelemetry() |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONObject |
createContent()
Returns the content to be sent to the telemetry service.
|
static boolean |
enabled()
This telemetry is only enabled when running on Java versions newer than Java 8.
|
String |
getDisplayName()
User friendly display name for this telemetry collector, ideally localized.
|
LocalDate |
getEnd()
End date for the collection.
|
LocalDate |
getStart()
Start date for the collection.
|
static void |
reportException(String name,
Throwable e)
Store the exception if it's from a split package of Java.
|
static void |
reportExceptionInside(Throwable e)
Report the class not found if this exception or any of its causes or suppressed exceptions is related to missed
classes.
|
all, getId, isActivePeriod, isDisabled
@NonNull public String getDisplayName()
Telemetry
getDisplayName
in class Telemetry
@NonNull public LocalDate getStart()
Telemetry
@NonNull public LocalDate getEnd()
Telemetry
public static boolean enabled()
@CheckForNull public net.sf.json.JSONObject createContent()
Telemetry
createContent
in class Telemetry
public static void reportException(@NonNull String name, @NonNull Throwable e)
reportExceptionInside(Throwable)
name
- the name of the classe
- the throwable to report if neededpublic static void reportExceptionInside(@NonNull Throwable e)
e
- the exception to look intoCopyright © 2004–2021. All rights reserved.