Class PluginDescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Publisher>
-
- com.sumologic.jenkins.jenkinssumologicplugin.PluginDescriptorImpl
-
@Extension public final class PluginDescriptorImpl extends BuildStepDescriptor<Publisher>
Sumo Logic plugin for Jenkins model. Provides options to parametrize plugin.Created by deven on 7/8/15. Contributors: lukasz, Sourabh Jain
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description PluginDescriptorImpl()
-
Method Summary
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
-
-
-
-
Method Detail
-
getInstance
public static PluginDescriptorImpl getInstance()
-
getPluginConfiguration
public static PluginConfiguration getPluginConfiguration()
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> aClass)
- Specified by:
isApplicable
in classBuildStepDescriptor<Publisher>
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Publisher>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<Publisher>
- Throws:
Descriptor.FormException
-
shutdown
@Terminator(after=STARTED) @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static void shutdown()
-
doCheckUrl
public FormValidation doCheckUrl(@QueryParameter String value)
-
doTestURL
public FormValidation doTestURL(@QueryParameter("url") String url)
-
getSumoMetricDataPublisher
public SumoMetricDataPublisher getSumoMetricDataPublisher()
-
setSumoMetricDataPublisher
public void setSumoMetricDataPublisher(SumoMetricDataPublisher sumoMetricDataPublisher)
-
getQueryPortal
public String getQueryPortal()
-
setQueryPortal
public void setQueryPortal(String queryPortal)
-
isAuditLogEnabled
public boolean isAuditLogEnabled()
-
setAuditLogEnabled
public void setAuditLogEnabled(boolean auditLogEnabled)
-
isMetricDataEnabled
public boolean isMetricDataEnabled()
-
setMetricDataEnabled
public void setMetricDataEnabled(boolean metricDataEnabled)
-
isPeriodicLogEnabled
public boolean isPeriodicLogEnabled()
-
setPeriodicLogEnabled
public void setPeriodicLogEnabled(boolean periodicLogEnabled)
-
isJobStatusLogEnabled
public boolean isJobStatusLogEnabled()
-
setJobStatusLogEnabled
public void setJobStatusLogEnabled(boolean jobStatusLogEnabled)
-
getEnableProxy
public boolean getEnableProxy()
-
setEnableProxy
public void setEnableProxy(boolean enableProxy)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getProxyPort
public int getProxyPort()
-
setProxyPort
public void setProxyPort(int proxyPort)
-
getEnableProxyAuth
public boolean getEnableProxyAuth()
-
setEnableProxyAuth
public void setEnableProxyAuth(boolean enableProxyAuth)
-
getProxyAuthUsername
public String getProxyAuthUsername()
-
setProxyAuthUsername
public void setProxyAuthUsername(String proxyAuthUsername)
-
getProxyAuthPassword
public String getProxyAuthPassword()
-
setProxyAuthPassword
public void setProxyAuthPassword(String proxyAuthPassword)
-
isJobConsoleLogEnabled
public boolean isJobConsoleLogEnabled()
-
setJobConsoleLogEnabled
public void setJobConsoleLogEnabled(boolean jobConsoleLogEnabled)
-
isScmLogEnabled
public boolean isScmLogEnabled()
-
setScmLogEnabled
public void setScmLogEnabled(boolean scmLogEnabled)
-
getMetricDataPrefix
public String getMetricDataPrefix()
-
setMetricDataPrefix
public void setMetricDataPrefix(String metricDataPrefix)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(Secret url)
-
getSourceCategory
public String getSourceCategory()
-
setSourceCategory
public void setSourceCategory(String sourceCategory)
-
isKeepOldConfigData
public boolean isKeepOldConfigData()
-
setKeepOldConfigData
public void setKeepOldConfigData(boolean keepOldConfigData)
-
isHandlerStarted
public boolean isHandlerStarted()
-
setHandlerStarted
public void setHandlerStarted(boolean handlerStarted)
-
startSumoJenkinsLogHandler
@Initializer(after=JOB_LOADED) public void startSumoJenkinsLogHandler()
-
registerHandler
public void registerHandler()
-
-