java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.TorrentActivityScan
- Enclosing class:
I2PSnarkServlet
Peer/rate activity flags scanned across one rendered page slice; drives which optional header cells render. Package-visible for testing.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final booleanSome torrent on the page has a connected peer.(package private) final booleanSome torrent on the page has a non-zero download rate.(package private) final booleanSome torrent on the page has a non-zero upload rate.Constructor Summary
ConstructorsConstructorDescriptionTorrentActivityScan(boolean hasPeers, boolean isDownloading, boolean isUploading) Records the flags the scan found.Method Summary
Field Details
hasPeers
final boolean hasPeersSome torrent on the page has a connected peer.isDownloading
final boolean isDownloadingSome torrent on the page has a non-zero download rate.isUploading
final boolean isUploadingSome torrent on the page has a non-zero upload rate.
Constructor Details
TorrentActivityScan
TorrentActivityScan(boolean hasPeers, boolean isDownloading, boolean isUploading) Records the flags the scan found.- Parameters:
hasPeers- some torrent on the page has a connected peerisDownloading- some torrent on the page has a non-zero download rateisUploading- some torrent on the page has a non-zero upload rate