public final class SessionStatsAlert extends AbstractAlert<session_stats_alert>
SessionStatsAlert is posted when the user requests session
statistics by calling SessionHandle.postSessionStats()
on the session object. Its category is
alert.status_notification,
but it is not subject to filtering, since it's only manually posted anyway.alertALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, DEBUG_NOTIFICATION, DHT_LOG_NOTIFICATION, DHT_NOTIFICATION, DHT_OPERATION_NOTIFICATION, ERROR_NOTIFICATION, FILE_PROGRESS_NOTIFICATION, INCOMING_REQUEST_NOTIFICATION, IP_BLOCK_NOTIFICATION, PEER_LOG_NOTIFICATION, PEER_NOTIFICATION, PERFORMANCE_WARNING, PICKER_LOG_NOTIFICATION, PIECE_PROGRESS_NOTIFICATION, PORT_MAPPING_LOG_NOTIFICATION, PORT_MAPPING_NOTIFICATION, SESSION_LOG_NOTIFICATION, STATS_NOTIFICATION, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION| Modifier and Type | Method and Description |
|---|---|
long |
value(int index)
The internal values are a mix of counters and gauges, which
meanings can be queries via the
LibTorrent.sessionStatsMetrics() function. |
public long value(int index)
LibTorrent.sessionStatsMetrics() function.
The mapping from a specific metric to an index into this array is constant for a
specific version of libtorrent, but may differ for other versions. The intended
usage is to request the mapping, i.e. call
LibTorrent.sessionStatsMetrics(), once
on startup, and then use that mapping to interpret these values throughout
the process's runtime.