|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
hudson.plugins.sitemonitor.SiteMonitorDescriptor
@Extension public class SiteMonitorDescriptor
Handles the global and job configuration management.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Field Summary | |
|---|---|
private static java.lang.Integer |
DEFAULT_TIMEOUT_IN_SECS
Default timeout (in seconds), used when global config timeout setting is not set to any value. |
private static java.util.logging.Logger |
LOGGER
Logger. |
private java.util.List<java.lang.Integer> |
mSuccessResponseCodes
The response codes used to indicate that the web site is up. |
private java.lang.Integer |
mTimeout
The HTTP connection timeout value (in seconds). |
private SiteMonitorValidator |
mValidator
The form validator. |
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
SiteMonitorDescriptor()
Constructs SiteMonitorDescriptor. |
|
| Method Summary | |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json)
Handles SiteMonitor global configuration per Hudson instance. |
hudson.util.FormValidation |
doCheckResponseCodes(java.lang.String value)
|
hudson.util.FormValidation |
doCheckTimeout(java.lang.String value)
|
hudson.util.FormValidation |
doCheckUrl(java.lang.String value)
|
java.lang.String |
getDisplayName()
|
java.util.List<java.lang.Integer> |
getSuccessResponseCodes()
|
java.lang.String |
getSuccessResponseCodesCsv()
|
java.lang.Integer |
getTimeout()
|
boolean |
isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> clazz)
Checks whether this descriptor is applicable. |
hudson.tasks.Publisher |
newInstance(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json)
Handles SiteMonitor configuration for each job. |
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
|---|
filter |
| Methods inherited from class hudson.model.Descriptor |
|---|
configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger LOGGER
private static final java.lang.Integer DEFAULT_TIMEOUT_IN_SECS
private SiteMonitorValidator mValidator
private java.util.List<java.lang.Integer> mSuccessResponseCodes
private java.lang.Integer mTimeout
| Constructor Detail |
|---|
public SiteMonitorDescriptor()
SiteMonitorDescriptor.
| Method Detail |
|---|
public final java.lang.String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>public final boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> clazz)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>clazz - the class
public final java.util.List<java.lang.Integer> getSuccessResponseCodes()
public final java.lang.String getSuccessResponseCodesCsv()
public final java.lang.Integer getTimeout()
public final hudson.tasks.Publisher newInstance(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json)
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>request - the stapler requestjson - the JSON data containing job configuration values
public final boolean configure(org.kohsuke.stapler.StaplerRequest request,
net.sf.json.JSONObject json)
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>request - the stapler requestjson - the JSON data containing job configuration values
public final hudson.util.FormValidation doCheckUrl(@QueryParameter
java.lang.String value)
value - the value to validate
public final hudson.util.FormValidation doCheckResponseCodes(@QueryParameter
java.lang.String value)
value - the value to validate
public final hudson.util.FormValidation doCheckTimeout(@QueryParameter
java.lang.String value)
value - the value to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||