Package cz.muni.fi.xkozubi1
Class ShutdownQueueConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- cz.muni.fi.xkozubi1.ShutdownQueueConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class ShutdownQueueConfiguration extends GlobalConfiguration
Settings for the plugin. Can be found in Jenkins global settings.- Author:
- Dominik Kozubik
-
-
Nested Class Summary
-
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
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description ShutdownQueueConfiguration()
ShutdownQueueConfiguration(boolean pluginOn, boolean sorterOn, String strategyOption, long periodRunnable, double permeability, long timeOpenQueueMillis)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
FormValidation
doCheckPeriodRunnable(String value)
FormValidation
doCheckPermeability(String value)
ListBoxModel
doFillStrategyTypeItems()
static ShutdownQueueConfiguration
getInstance()
long
getPeriodRunnable()
double
getPermeability()
boolean
getPluginOn()
boolean
getSorterOn()
String
getStrategyOption()
long
getTimeOpenQueueMillis()
boolean
isPluginOn()
boolean
isSorterOn()
void
setPeriodRunnable(long periodRunnable)
void
setPermeability(double permeability)
void
setPluginOn(boolean pluginOn)
void
setSorterOn(boolean sorterOn)
void
setStrategyOption(String strategyOption)
void
setTimeOpenQueueMillis(long timeOpenQueueMillis)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
-
-
-
Constructor Detail
-
ShutdownQueueConfiguration
public ShutdownQueueConfiguration()
-
ShutdownQueueConfiguration
@DataBoundConstructor public ShutdownQueueConfiguration(boolean pluginOn, boolean sorterOn, String strategyOption, long periodRunnable, double permeability, long timeOpenQueueMillis)
-
-
Method Detail
-
getInstance
public static ShutdownQueueConfiguration getInstance()
-
doFillStrategyTypeItems
public ListBoxModel doFillStrategyTypeItems()
-
getPluginOn
public boolean getPluginOn()
-
isPluginOn
public boolean isPluginOn()
-
getStrategyOption
public String getStrategyOption()
-
getPeriodRunnable
public long getPeriodRunnable()
-
getPermeability
public double getPermeability()
-
getTimeOpenQueueMillis
public long getTimeOpenQueueMillis()
-
isSorterOn
public boolean isSorterOn()
-
getSorterOn
public boolean getSorterOn()
-
setPluginOn
@DataBoundSetter public void setPluginOn(boolean pluginOn)
-
setSorterOn
@DataBoundSetter public void setSorterOn(boolean sorterOn)
-
setStrategyOption
@DataBoundSetter public void setStrategyOption(String strategyOption)
-
setPermeability
@DataBoundSetter public void setPermeability(double permeability)
-
setPeriodRunnable
@DataBoundSetter public void setPeriodRunnable(long periodRunnable)
-
setTimeOpenQueueMillis
@DataBoundSetter public void setTimeOpenQueueMillis(long timeOpenQueueMillis)
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doCheckPermeability
public FormValidation doCheckPermeability(@QueryParameter String value)
-
doCheckPeriodRunnable
public FormValidation doCheckPeriodRunnable(@QueryParameter String value)
-
-