Function | Package: net.jlinker | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## jpool-statistics

Arguments: &key new sum error-p slot pool

This function accesses or manages statistics maintained by jlinker about the behavior and performance of the connection pool.

If the sum argument is specified, it must be a pool statistics instance obtained in a previous call to jpool-statistics.

If the slot argument is non-`nil`, it must be one of the following keywords to retrieve the corresponding value from a statistics instance. When slot is non-`nil`, the new argument is ignored. If sum is specified (as a statistics instance), the value returned comes from that instance. If sum is `nil` or unspecified, the value comes from the current pool.

- `:active`: number of Lisp ports to Java in use at some moment.
- `:max`: maximum number of Lisp ports to Java in use.
- `:wait`: number of seconds spent waiting for a Lisp port to Java.
- `:free`: number of times a port was obtained for a call.
- `:busy`: number of times a caller was told all ports are busy.

The following slots refer to non-pool and pool ports combined:

- `:idle-wait`: number of times a port was available after waiting.
- `:idle-free`: number of times a port was available without waiting.
- `:idle-busy`: number of times a port was not available.

If the slot argument is omitted or `nil`, the return value is always a new pool statistics instance in which the values are copied atomically from the current pool. When sum is specified, it is updated from the current value as a side-effect. The `:max` slot is the maximum of two, the other slots are sums. (To be clear: when slot is `nil`, the return value is always a new statistics instance. When sum is also a statistics instance, that instance is updated but not returned.)

If the new argument is non-`nil`, the current pool statistics are reset to zero.

The pool argument is reserved for internal use and must not be specified.

See jlinker.htm for more information on the jLinker facility.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version