Package jenkins.telemetry
Class Correlator
- java.lang.Object
-
- hudson.model.Descriptor<Correlator>
-
- jenkins.telemetry.Correlator
-
- All Implemented Interfaces:
Describable<Correlator>
,Saveable
,OnMaster
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class Correlator extends Descriptor<Correlator> implements Describable<Correlator>
This class stores a UUID identifying this instance for telemetry reporting to allow deduplication or merging of submitted records. We're not using anything derived from instance identity so we cannot connect an instance's public appearance with its submissions. This really only uses Descriptor/Describable to get a Saveable implementation for free.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description Correlator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCorrelationId()
Descriptor<Correlator>
getDescriptor()
Gets the descriptor for this instance.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getCorrelationId
public String getCorrelationId()
-
getDescriptor
public Descriptor<Correlator> getDescriptor()
Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, so ifa.getClass() == b.getClass()
then by defaulta.getDescriptor() == b.getDescriptor()
as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptor
in interfaceDescribable<Correlator>
-
-