public class ElasticsearchDestination extends AbstractDestination
Constructor and Description |
---|
ElasticsearchDestination() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the destination.
|
String |
getIndex()
Gets the Elasticsearch index name.
|
String |
getKeyStore()
Gets the SSL key store location.
|
String |
getKeyStorePassword()
Gets the SSL key store password.
|
String |
getPassword()
Gets the Elasticsearch password.
|
String |
getServerUrl()
Gets the comma separated list of Elasticsearch servers including protocol and port number.
|
String |
getTags()
Gets the comma separated list of tags to be added to results.
|
int |
getTimeout()
Gets the Elasticsearch client timeout.
|
String |
getTrustStore()
Gets the SSL trust store location.
|
String |
getTrustStorePassword()
Gets the SSL trust store password.
|
String |
getType()
Gets the Elasticsearch type name.
|
String |
getUserName()
Gets the Elasticsearch user name.
|
boolean |
isConfigureMapping()
Gets whether the mapping of data should be configured prior to writing.
|
void |
open()
Opens the destination for reporting.
|
void |
report(Measurement measurement)
Reports a new
Measurement to the destination. |
ElasticsearchDestination |
setConfigureMapping(boolean configureMapping)
Sets whether the mapping of data should be configured prior to writing.
|
ElasticsearchDestination |
setIndex(String index)
Sets the Elasticsearch index name.
|
ElasticsearchDestination |
setKeyStore(String keyStore)
Sets the SSL key store location.
|
ElasticsearchDestination |
setKeyStorePassword(String keyStorePassword)
Sets the SSL key store password.
|
ElasticsearchDestination |
setPassword(String password)
Sets the Elasticsearch password.
|
ElasticsearchDestination |
setServerUrl(String serverUrl)
Sets the comma separated list of Elasticsearch servers including protocol and port number.
|
ElasticsearchDestination |
setTags(String tags)
Sets the comma separated list of tags to be added to results.
|
ElasticsearchDestination |
setTimeout(int timeout)
Sets the Elasticsearch client timeout.
|
ElasticsearchDestination |
setTrustStore(String trustStore)
Sets the SSL trust store location.
|
ElasticsearchDestination |
setTrustStorePassword(String trustStorePassword)
Sets the SSL trust store password.
|
ElasticsearchDestination |
setType(String type)
Sets the Elasticsearch type name.
|
ElasticsearchDestination |
setUserName(String userName)
Sets the Elasticsearch user name.
|
getParentReporter, open
public void open()
AbstractDestination
open
in class AbstractDestination
public void close()
Destination
public void report(Measurement measurement) throws ReportingException
Destination
Measurement
to the destination.measurement
- A measurement to be reported.ReportingException
- When an error occurred during reporting the measurement like no space left on device. The root cause should be encapsulated.public String getServerUrl()
public ElasticsearchDestination setServerUrl(String serverUrl)
serverUrl
- The comma separated list of Elasticsearch servers including protocol and port number.public String getIndex()
public ElasticsearchDestination setIndex(String index)
index
- The Elasticsearch index name.public String getType()
public ElasticsearchDestination setType(String type)
type
- the Elasticsearch type name.public String getTags()
public ElasticsearchDestination setTags(String tags)
tags
- The comma separated list of tags to be added to results.public String getUserName()
public ElasticsearchDestination setUserName(String userName)
userName
- The Elasticsearch user name.public String getPassword()
public ElasticsearchDestination setPassword(String password)
password
- The Elasticsearch password.public boolean isConfigureMapping()
public ElasticsearchDestination setConfigureMapping(boolean configureMapping)
configureMapping
- True if the mapping should be configured prior to writing.public int getTimeout()
public ElasticsearchDestination setTimeout(int timeout)
timeout
- The Elasticsearch client timeout.public String getKeyStore()
public ElasticsearchDestination setKeyStore(String keyStore)
keyStore
- The SSL key store location.public String getKeyStorePassword()
public ElasticsearchDestination setKeyStorePassword(String keyStorePassword)
keyStorePassword
- The SSL key store password.public String getTrustStore()
public ElasticsearchDestination setTrustStore(String trustStore)
trustStore
- The SSL trust store location.public String getTrustStorePassword()
public ElasticsearchDestination setTrustStorePassword(String trustStorePassword)
trustStorePassword
- The SSL trust store password.Copyright © 2010–2017 PerfCake Community. All rights reserved.