@Extension public class UsageStatistics extends PageDecorator implements PersistentDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
UsageStatistics.CombinedCipherInputStream
The opposite of the
UsageStatistics.CombinedCipherOutputStream . |
static class |
UsageStatistics.CombinedCipherOutputStream
Asymmetric cipher is slow and in case of Sun RSA implementation it can only encrypt the first block.
|
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static boolean |
DISABLED |
ALL
clazz
Constructor and Description |
---|
UsageStatistics() |
UsageStatistics(String keyImage)
Creates an instance with a specific public key image.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Invoked when the global configuration page is submitted.
|
Permission |
getRequiredGlobalConfigPagePermission()
Returns the permission type needed in order to access the
Descriptor.getGlobalConfigPage() for this descriptor. |
String |
getStatData()
Gets the encrypted usage stat data to be sent to the Hudson server.
|
boolean |
isDue()
Returns true if it's time for us to check for new version.
|
all, getDescriptor, getUrl
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
public UsageStatistics()
public UsageStatistics(String keyImage)
public boolean isDue()
public String getStatData() throws IOException
IOException
@NonNull public Permission getRequiredGlobalConfigPagePermission()
Descriptor
Descriptor.getGlobalConfigPage()
for this descriptor.
By default, requires Jenkins.ADMINISTER
permission.
For now this only applies to descriptors configured through the global (GlobalConfigurationCategory.Unclassified
) configuration.
Override to return something different if appropriate. The only currently supported alternative return value is Jenkins.MANAGE
.getRequiredGlobalConfigPagePermission
in class Descriptor<PageDecorator>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
Descriptor
configure
in class Descriptor<PageDecorator>
json
- The JSON object that captures the configuration data for this Descriptor
.
See https://www.jenkins.io/doc/developer/forms/structured-form-submission/Descriptor.FormException
Copyright © 2004–2022. All rights reserved.