hudson.model
Class UsageStatistics

java.lang.Object
  extended by hudson.model.Descriptor<PageDecorator>
      extended by hudson.model.PageDecorator
          extended by hudson.model.UsageStatistics
All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable

@Extension
public class UsageStatistics
extends PageDecorator

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class UsageStatistics.CombinedCipherInputStream
          The opposite of the UsageStatistics.CombinedCipherOutputStream.
static class UsageStatistics.CombinedCipherOutputStream
          Assymetric cipher is slow and in case of Sun RSA implementation it can only encyrypt the first block.
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean DISABLED
           
 
Fields inherited from class hudson.model.PageDecorator
ALL
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
UsageStatistics()
           
UsageStatistics(String keyImage)
          Creates an instance with a specific public key image.
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
          Invoked when the global configuration page is submitted.
 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.
 
Methods inherited from class hudson.model.PageDecorator
all, getDescriptor, getDisplayName, getUrl
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLED

public static boolean DISABLED
Constructor Detail

UsageStatistics

public UsageStatistics()

UsageStatistics

public UsageStatistics(String keyImage)
Creates an instance with a specific public key image.

Method Detail

isDue

public boolean isDue()
Returns true if it's time for us to check for new version.


getStatData

public String getStatData()
                   throws IOException
Gets the encrypted usage stat data to be sent to the Hudson server.

Throws:
IOException

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws Descriptor.FormException
Description copied from class: Descriptor
Invoked when the global configuration page is submitted. Can be overriden to store descriptor-specific information.

Overrides:
configure in class Descriptor<PageDecorator>
json - The JSON object that captures the configuration data for this Descriptor. See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+Submission
Returns:
false to keep the client in the same config page.
Throws:
Descriptor.FormException


Copyright © 2004-2013. All Rights Reserved.