Class ElasticSearchDao
- java.lang.Object
-
- jenkins.plugins.logstash.persistence.AbstractLogstashIndexerDao
-
- jenkins.plugins.logstash.persistence.ElasticSearchDao
-
- All Implemented Interfaces:
Serializable
,LogstashIndexerDao
public class ElasticSearchDao extends AbstractLogstashIndexerDao
Elastic Search Data Access Object.- Since:
- 1.0.4
- Author:
- Liam Newman
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jenkins.plugins.logstash.persistence.LogstashIndexerDao
LogstashIndexerDao.IndexerType, LogstashIndexerDao.SyslogFormat, LogstashIndexerDao.SyslogProtocol
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchDao(URI uri, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getHost()
String
getKey()
String
getMimeType()
String
getPassword()
int
getPort()
String
getScheme()
URI
getUri()
String
getUsername()
void
push(String data)
Sends the log data to the Logstash indexer.void
setCustomKeyStore(KeyStore customKeyStore, String keyStorePassword)
void
setMimeType(String mimeType)
-
Methods inherited from class jenkins.plugins.logstash.persistence.AbstractLogstashIndexerDao
buildPayload
-
-
-
-
Method Detail
-
getUri
public URI getUri()
-
getHost
public String getHost()
-
getScheme
public String getScheme()
-
getPort
public int getPort()
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getKey
public String getKey()
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
setCustomKeyStore
public void setCustomKeyStore(KeyStore customKeyStore, String keyStorePassword) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException
-
push
public void push(String data) throws IOException
Description copied from interface:LogstashIndexerDao
Sends the log data to the Logstash indexer.- Parameters:
data
- The serialized data, not null- Throws:
IOException
- The data is not written to the server
-
getDescription
public String getDescription()
-
-