Package com.arangodb.entity
Class QueryTrackingPropertiesEntity
- java.lang.Object
-
- com.arangodb.entity.QueryTrackingPropertiesEntity
-
public final class QueryTrackingPropertiesEntity extends Object
- Author:
- Mark Vollmary
-
-
Constructor Summary
Constructors Constructor Description QueryTrackingPropertiesEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getEnabled()
Long
getMaxQueryStringLength()
Long
getMaxSlowQueries()
Long
getSlowQueryThreshold()
Boolean
getTrackSlowQueries()
void
setEnabled(Boolean enabled)
void
setMaxQueryStringLength(Long maxQueryStringLength)
void
setMaxSlowQueries(Long maxSlowQueries)
void
setSlowQueryThreshold(Long slowQueryThreshold)
void
setTrackSlowQueries(Boolean trackSlowQueries)
-
-
-
Method Detail
-
getEnabled
public Boolean getEnabled()
- Returns:
- If set to true, then queries will be tracked. If set to false, neither queries nor slow queries will be tracked
-
setEnabled
public void setEnabled(Boolean enabled)
- Parameters:
enabled
- If set to true, then queries will be tracked. If set to false, neither queries nor slow queries will be tracked
-
getTrackSlowQueries
public Boolean getTrackSlowQueries()
- Returns:
- If set to true, then slow queries will be tracked in the list of slow queries if their runtime exceeds the value set in slowQueryThreshold. In order for slow queries to be tracked, the enabled property must also be set to true.
-
setTrackSlowQueries
public void setTrackSlowQueries(Boolean trackSlowQueries)
- Parameters:
trackSlowQueries
- If set to true, then slow queries will be tracked in the list of slow queries if their runtime exceeds the value set in slowQueryThreshold. In order for slow queries to be tracked, the enabled property must also be set to true.
-
getMaxSlowQueries
public Long getMaxSlowQueries()
- Returns:
- The maximum number of slow queries to keep in the list of slow queries. If the list of slow queries is full, the oldest entry in it will be discarded when additional slow queries occur.
-
setMaxSlowQueries
public void setMaxSlowQueries(Long maxSlowQueries)
- Parameters:
maxSlowQueries
- The maximum number of slow queries to keep in the list of slow queries. If the list of slow queries is full, the oldest entry in it will be discarded when additional slow queries occur.
-
getSlowQueryThreshold
public Long getSlowQueryThreshold()
- Returns:
- The threshold value for treating a query as slow. A query with a runtime greater or equal to this threshold value will be put into the list of slow queries when slow query tracking is enabled. The value for slowQueryThreshold is specified in seconds.
-
setSlowQueryThreshold
public void setSlowQueryThreshold(Long slowQueryThreshold)
- Parameters:
slowQueryThreshold
- The threshold value for treating a query as slow. A query with a runtime greater or equal to this threshold value will be put into the list of slow queries when slow query tracking is enabled. The value for slowQueryThreshold is specified in seconds.
-
getMaxQueryStringLength
public Long getMaxQueryStringLength()
- Returns:
- The maximum query string length to keep in the list of queries. Query strings can have arbitrary lengths, and this property can be used to save memory in case very long query strings are used. The value is specified in bytes.
-
setMaxQueryStringLength
public void setMaxQueryStringLength(Long maxQueryStringLength)
- Parameters:
maxQueryStringLength
- The maximum query string length to keep in the list of queries. Query strings can have arbitrary lengths, and this property can be used to save memory in case very long query strings are used. The value is specified in bytes.
-
-