protected static class NonBlockingLockManager.Counters extends Object
NonBlockingLockManager
.Modifier and Type | Field and Description |
---|---|
int |
maxRunning
The maximum observed value of
nrunning . |
long |
naccepted
The #of tasks that were accepted by the service (running total).
|
long |
ncancel
The #of tasks that were cancelled (running total).
|
long |
ndeadlock
The #of tasks that deadlocked when they attempted to acquire their
locks (running total).
|
long |
nended
The #of tasks that whose execution on the delegate
Executor
is complete (either by normal completion or by error, but only for
tasks which were executed on the delegate) (running total). |
long |
nerror
The #of tasks whose exception was set (running total).
|
long |
nrejected
The #of tasks that were rejected by the service (running total).
|
int |
nrunning
#of tasks that have acquired their locks and are concurrently
executing.
|
long |
nstarted
The #of tasks that have been started on the delegate
Executor
(running total). |
long |
ntimeout
The #of tasks that timed out when they attempted to acquire their
locks (running total).
|
int |
nwaiting
#of tasks that are currently waiting on locks.
|
Modifier | Constructor and Description |
---|---|
protected |
NonBlockingLockManager.Counters() |
public long naccepted
public long nrejected
public long nstarted
Executor
(running total).public long nended
Executor
is complete (either by normal completion or by error, but only for
tasks which were executed on the delegate) (running total).public long ncancel
public long nerror
public long ndeadlock
public long ntimeout
public int nwaiting
NonBlockingLockManager
. To get the
actual queue length you need to add this to the length of the queue
for the delegate Executor
.
FIXME This counter can be off since a task does not "know" when it is
placed onto the [waitingTasks] queue and therefore can not decrement
the counter conditionally if the task is cancelled or if an exception
is set. Right now the counter is only decremented if the task begins
to execute. This is a problem since this is the primary indication of
the total size of the NonBlockingLockManager
as a queue
feeding its delegate Executor
.public int nrunning
public int maxRunning
nrunning
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.