public class InfluxDbDestination extends AbstractDestination
Constructor and Description |
---|
InfluxDbDestination() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the destination.
|
String |
getDatabase()
Gets the name of InfluxDb database.
|
String |
getKeyStore()
Gets the SSL key store location.
|
String |
getKeyStorePassword()
Gets the SSL key store password.
|
String |
getMeasurement()
Gets the name of the measurement in InfluxDb, serves as a database table.
|
String |
getPassword()
Gets the InfluxDb user password.
|
String |
getServerUrl()
Gets InfluxDb server including protocol and port number.
|
String |
getTags()
Gets a comma separated list of tags to be added to results.
|
String |
getTrustStore()
Gets the SSL trust store location.
|
String |
getTrustStorePassword()
Gets the SSL trust store password.
|
String |
getUserName()
Gets the name of InfluxDb user.
|
boolean |
isCreateDatabase()
Should the database be created upon connecting to InfluxDb?
|
void |
open()
Opens the destination for reporting.
|
void |
report(Measurement measurement)
Reports a new
Measurement to the destination. |
InfluxDbDestination |
setCreateDatabase(boolean createDatabase)
Sets whether the database should be created upon connecting to InfluxDb.
|
InfluxDbDestination |
setDatabase(String database)
Sets the name of InfluxDb database.
|
InfluxDbDestination |
setKeyStore(String keyStore)
Sets the SSL key store location.
|
InfluxDbDestination |
setKeyStorePassword(String keyStorePassword)
Sets the SSL key store password.
|
InfluxDbDestination |
setMeasurement(String measurement)
Sets the name of the measurement in InfluxDb, serves as a database table.
|
InfluxDbDestination |
setPassword(String password)
Sets the InfluxDb user password.
|
InfluxDbDestination |
setServerUrl(String serverUrl)
Sets InfluxDb server including protocol and port number.
|
InfluxDbDestination |
setTags(String tags)
Sets a comma separated list of tags to be added to results.
|
InfluxDbDestination |
setTrustStore(String trustStore)
Sets the SSL trust store location.
|
InfluxDbDestination |
setTrustStorePassword(String trustStorePassword)
Sets the SSL trust store password.
|
InfluxDbDestination |
setUserName(String userName)
Sets the name of InfluxDb user.
|
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 InfluxDbDestination setServerUrl(String serverUrl)
serverUrl
- InfluxDb server including protocol and port number.public String getDatabase()
public InfluxDbDestination setDatabase(String database)
database
- The name of InfluxDb database.public boolean isCreateDatabase()
public InfluxDbDestination setCreateDatabase(boolean createDatabase)
createDatabase
- True if and only if the database should be created when connected to InfluxDb.public String getMeasurement()
public InfluxDbDestination setMeasurement(String measurement)
measurement
- The name of the measurement in InfluxDb, serves as a database table.public String getUserName()
public InfluxDbDestination setUserName(String userName)
userName
- The name of InfluxDb user.public String getPassword()
public InfluxDbDestination setPassword(String password)
password
- The InfluxDb user password.public String getTags()
public InfluxDbDestination setTags(String tags)
tags
- The comma separated list of tags to be added to results.public String getKeyStore()
public InfluxDbDestination setKeyStore(String keyStore)
keyStore
- The SSL key store location.public String getKeyStorePassword()
public InfluxDbDestination setKeyStorePassword(String keyStorePassword)
keyStorePassword
- The SSL key store password.public String getTrustStore()
public InfluxDbDestination setTrustStore(String trustStore)
trustStore
- The SSL trust store location.public String getTrustStorePassword()
public InfluxDbDestination setTrustStorePassword(String trustStorePassword)
trustStorePassword
- The SSL trust store password.Copyright © 2010–2017 PerfCake Community. All rights reserved.