Package jenkins.plugins.logstash
Class LogstashConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- jenkins.plugins.logstash.LogstashConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class LogstashConfiguration extends GlobalConfiguration
-
-
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 LogstashConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject json)
org.apache.commons.lang.time.FastDateFormat
getDateFormatter()
LogstashIndexerDao
getIndexerInstance()
Returns the actual instance of the logstash dao.List<?>
getIndexerTypes()
static LogstashConfiguration
getInstance()
LogstashIndexer<?>
getLogstashIndexer()
Returns the current logstash indexer configuration.boolean
isEnabled()
boolean
isEnableGlobally()
boolean
isMilliSecondTimestamps()
void
migrateData()
void
setEnabled(boolean enabled)
void
setEnableGlobally(boolean enableGlobally)
void
setLogstashIndexer(LogstashIndexer<?> logstashIndexer)
void
setMilliSecondTimestamps(boolean milliSecondTimestamps)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
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, 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
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnableGlobally
public boolean isEnableGlobally()
-
setEnableGlobally
public void setEnableGlobally(boolean enableGlobally)
-
isMilliSecondTimestamps
public boolean isMilliSecondTimestamps()
-
setMilliSecondTimestamps
public void setMilliSecondTimestamps(boolean milliSecondTimestamps)
-
getDateFormatter
public org.apache.commons.lang.time.FastDateFormat getDateFormatter()
-
getLogstashIndexer
public LogstashIndexer<?> getLogstashIndexer()
Returns the current logstash indexer configuration.- Returns:
- configuration instance
-
setLogstashIndexer
public void setLogstashIndexer(LogstashIndexer<?> logstashIndexer)
-
getIndexerInstance
@CheckForNull public LogstashIndexerDao getIndexerInstance()
Returns the actual instance of the logstash dao.- Returns:
- dao instance
-
getIndexerTypes
public List<?> getIndexerTypes()
-
migrateData
@Initializer(after=JOB_LOADED) public void migrateData()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
getInstance
public static LogstashConfiguration getInstance()
-
-