Class SessionStatsAlert
java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<session_stats_alert>
com.frostwire.jlibtorrent.alerts.SessionStatsAlert
- All Implemented Interfaces:
Alert<session_stats_alert>
The
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.-
Field Summary
Fields inherited from class com.frostwire.jlibtorrent.alerts.AbstractAlert
alertFields inherited from interface com.frostwire.jlibtorrent.alerts.Alert
ALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, CONNECT_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, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION -
Method Summary
Modifier and TypeMethodDescriptionlongvalue(int index) The internal values are a mix of counters and gauges, which meanings can be queries via theLibTorrent.sessionStatsMetrics()function.
-
Method Details
-
value
public long value(int index) The internal values are a mix of counters and gauges, which meanings can be queries via theLibTorrent.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.- Returns:
- the value
-