|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.concurrent.NonBlockingLockManager.Counters
protected static class NonBlockingLockManager.Counters
Counters for the NonBlockingLockManager.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
NonBlockingLockManager.Counters()
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
protected NonBlockingLockManager.Counters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||