public class StartedTxBasedLoadMonitor extends Object implements DatabaseLoadMonitor
DatabaseLoadMonitor returning the database load based on the number of transactions started in a period of time.
The load is measured as the average load in a configurable RunningWindowAverage.
Samples are taken as the monitor is queried.| Constructor and Description |
|---|
StartedTxBasedLoadMonitor(org.neo4j.graphdb.GraphDatabaseService database,
RunningWindowAverage runningWindowAverage)
Construct a new monitor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLoad()
Get the current load of the database in transactions per second.
|
public StartedTxBasedLoadMonitor(org.neo4j.graphdb.GraphDatabaseService database,
RunningWindowAverage runningWindowAverage)
database - to monitor.runningWindowAverage - to use for the monitoring.public long getLoad()
getLoad in interface DatabaseLoadMonitorCopyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.