Interface Alert<T extends alert>
- All Known Implementing Classes:
AbstractAlert,AddTorrentAlert,AlertsDroppedAlert,BlockDownloadingAlert,BlockFinishedAlert,BlockTimeoutAlert,BlockUploadedAlert,CacheFlushedAlert,DhtAnnounceAlert,DhtBootstrapAlert,DhtDirectResponseAlert,DhtErrorAlert,DhtGetPeersAlert,DhtGetPeersReplyAlert,DhtImmutableItemAlert,DhtLiveNodesAlert,DhtLogAlert,DhtMutableItemAlert,DhtOutgoingGetPeersAlert,DhtPktAlert,DhtPutAlert,DhtReplyAlert,DhtSampleInfohashesAlert,DhtStatsAlert,ExternalIpAlert,FastresumeRejectedAlert,FileCompletedAlert,FileErrorAlert,FileRenamedAlert,FileRenameFailedAlert,HashFailedAlert,I2pAlert,IncomingConnectionAlert,IncomingRequestAlert,InvalidRequestAlert,ListenFailedAlert,ListenSucceededAlert,LogAlert,LsdErrorAlert,LsdPeerAlert,MetadataFailedAlert,MetadataReceivedAlert,PeerAlert,PeerBanAlert,PeerBlockedAlert,PeerConnectAlert,PeerDisconnectedAlert,PeerErrorAlert,PeerLogAlert,PeerSnubbedAlert,PeerUnsnubbedAlert,PerformanceAlert,PickerLogAlert,PieceFinishedAlert,PortmapAlert,PortmapErrorAlert,PortmapLogAlert,ReadPieceAlert,RequestDroppedAlert,SaveResumeDataAlert,SaveResumeDataFailedAlert,ScrapeFailedAlert,ScrapeReplyAlert,SessionErrorAlert,SessionStatsAlert,SessionStatsHeaderAlert,StateChangedAlert,StateUpdateAlert,StorageMovedAlert,StorageMovedFailedAlert,TorrentAlert,TorrentCheckedAlert,TorrentDeletedAlert,TorrentDeleteFailedAlert,TorrentErrorAlert,TorrentFinishedAlert,TorrentLogAlert,TorrentNeedCertAlert,TorrentPausedAlert,TorrentRemovedAlert,TorrentResumedAlert,TrackerAlert,TrackerAnnounceAlert,TrackerErrorAlert,TrackeridAlert,TrackerReplyAlert,TrackerWarningAlert,UdpErrorAlert,UnwantedBlockAlert,UrlSeedAlert
public interface Alert<T extends alert>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_tstatic final alert_category_t -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns a bitmask specifying which categories this alert belong to.message()Generate a string describing the alert and the information bundled with it.swig()longA timestamp is automatically created in the constructor (in milliseconds).type()what()Returns a string literal describing the type of the alert.
-
Field Details
-
ERROR_NOTIFICATION
-
PEER_NOTIFICATION
-
PORT_MAPPING_NOTIFICATION
-
STORAGE_NOTIFICATION
-
TRACKER_NOTIFICATION
-
CONNECT_NOTIFICATION
-
STATUS_NOTIFICATION
-
IP_BLOCK_NOTIFICATION
-
PERFORMANCE_WARNING
-
DHT_NOTIFICATION
-
SESSION_LOG_NOTIFICATION
-
TORRENT_LOG_NOTIFICATION
-
PEER_LOG_NOTIFICATION
-
INCOMING_REQUEST_NOTIFICATION
-
DHT_LOG_NOTIFICATION
-
DHT_OPERATION_NOTIFICATION
-
PORT_MAPPING_LOG_NOTIFICATION
-
PICKER_LOG_NOTIFICATION
-
FILE_PROGRESS_NOTIFICATION
-
PIECE_PROGRESS_NOTIFICATION
-
UPLOAD_NOTIFICATION
-
BLOCK_PROGRESS_NOTIFICATION
-
ALL_CATEGORIES
-
-
Method Details
-
swig
T swig() -
timestamp
long timestamp()A timestamp is automatically created in the constructor (in milliseconds).- Returns:
- the timestamp
-
type
AlertType type() -
what
String what()Returns a string literal describing the type of the alert. It does not include any information that might be bundled with the alert.- Returns:
-
message
String message()Generate a string describing the alert and the information bundled with it. This is mainly intended for debug and development use. It is not suitable to use this for applications that may be localized. Instead, handle each alert type individually and extract and render the information from the alert depending on the locale.- Returns:
-
category
alert_category_t category()Returns a bitmask specifying which categories this alert belong to.- Returns:
- the alert category
-