hudson.plugins.logfilesizechecker
Class LogfilesizecheckerWrapper.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapperDescriptor
          extended by hudson.plugins.logfilesizechecker.LogfilesizecheckerWrapper.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
LogfilesizecheckerWrapper

public static final class LogfilesizecheckerWrapper.DescriptorImpl
extends hudson.tasks.BuildWrapperDescriptor

The Descriptor for the BuildWrapper.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          
 int getDefaultLogSize()
          Returns maximum log size set in global configuration.
 String getDisplayName()
          Returns caption for our part of the config page.
 boolean isApplicable(hudson.model.AbstractProject<?,?> item)
          Certainly does something.
 hudson.tasks.BuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 void setDefaultLogSize(int size)
          Allows changing the global log file size - used for testing only.
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDisplayName

public String getDisplayName()
Returns caption for our part of the config page.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Returns:
caption

isApplicable

public boolean isApplicable(hudson.model.AbstractProject<?,?> item)
Certainly does something.

Specified by:
isApplicable in class hudson.tasks.BuildWrapperDescriptor
Parameters:
item - Some item, I guess
Returns:
true

getDefaultLogSize

public int getDefaultLogSize()
Returns maximum log size set in global configuration.

Returns:
the globally set max log size

setDefaultLogSize

public void setDefaultLogSize(int size)
Allows changing the global log file size - used for testing only.

Parameters:
size - new default max log size

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject formData)
                  throws hudson.model.Descriptor.FormException

Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Throws:
hudson.model.Descriptor.FormException

newInstance

public hudson.tasks.BuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req,
                                             net.sf.json.JSONObject formData)
                                      throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Throws:
hudson.model.Descriptor.FormException


Copyright © 2004-2012. All Rights Reserved.