Class ElasticSearch
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<LogstashIndexer<?>>
-
- jenkins.plugins.logstash.configuration.LogstashIndexer<ElasticSearchDao>
-
- jenkins.plugins.logstash.configuration.ElasticSearch
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<LogstashIndexer<?>>
,ReconfigurableDescribable<LogstashIndexer<?>>
public class ElasticSearch extends LogstashIndexer<ElasticSearchDao>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElasticSearch.ElasticSearchDescriptor
-
Nested classes/interfaces inherited from class jenkins.plugins.logstash.configuration.LogstashIndexer
LogstashIndexer.LogstashIndexerDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class jenkins.plugins.logstash.configuration.LogstashIndexer
instance
-
-
Constructor Summary
Constructors Constructor Description ElasticSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticSearchDao
createIndexerInstance()
Creates a newAbstractLogstashIndexerDao
instance corresponding to this configuration.boolean
equals(Object obj)
String
getCustomServerCertificateId()
String
getMimeType()
Secret
getPassword()
URI
getUri()
String
getUsername()
int
hashCode()
void
setCustomServerCertificateId(String customServerCertificateId)
void
setMimeType(String mimeType)
void
setPassword(Secret password)
void
setUri(URI uri)
void
setUri(URL url)
void
setUsername(String username)
void
validate()
Purpose of this method is to validate the inputs (if required) and if found erroneous throw an exception so that it will be bubbled up to the UI.-
Methods inherited from class jenkins.plugins.logstash.configuration.LogstashIndexer
all, getInstance, reconfigure
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Describable
getDescriptor
-
-
-
-
Method Detail
-
getUri
public URI getUri()
-
validate
public void validate() throws javax.activation.MimeTypeParseException
Description copied from class:LogstashIndexer
Purpose of this method is to validate the inputs (if required) and if found erroneous throw an exception so that it will be bubbled up to the UI.- Overrides:
validate
in classLogstashIndexer<ElasticSearchDao>
- Throws:
javax.activation.MimeTypeParseException
-
setUri
@DataBoundSetter public void setUri(URL url) throws URISyntaxException
- Throws:
URISyntaxException
-
setUri
public void setUri(URI uri)
-
getUsername
public String getUsername()
-
setUsername
@DataBoundSetter public void setUsername(String username)
-
getPassword
public Secret getPassword()
-
setPassword
@DataBoundSetter public void setPassword(Secret password)
-
setMimeType
@DataBoundSetter public void setMimeType(String mimeType)
-
getMimeType
public String getMimeType()
-
setCustomServerCertificateId
@DataBoundSetter public void setCustomServerCertificateId(String customServerCertificateId)
-
getCustomServerCertificateId
public String getCustomServerCertificateId()
-
createIndexerInstance
public ElasticSearchDao createIndexerInstance()
Description copied from class:LogstashIndexer
Creates a newAbstractLogstashIndexerDao
instance corresponding to this configuration.- Specified by:
createIndexerInstance
in classLogstashIndexer<ElasticSearchDao>
- Returns:
AbstractLogstashIndexerDao
instance
-
-