java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.TorrentActivityScan
Enclosing class:
I2PSnarkServlet

static class I2PSnarkServlet.TorrentActivityScanextends Object
Peer/rate activity flags scanned across one rendered page slice; drives which optional header cells render. Package-visible for testing.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final boolean
    Some torrent on the page has a connected peer.
    (package private) final boolean
    Some torrent on the page has a non-zero download rate.
    (package private) final boolean
    Some torrent on the page has a non-zero upload rate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TorrentActivityScan(boolean hasPeers, boolean isDownloading, boolean isUploading)
    Records the flags the scan found.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hasPeers

      final boolean hasPeers
      Some torrent on the page has a connected peer.
    • isDownloading

      final boolean isDownloading
      Some torrent on the page has a non-zero download rate.
    • isUploading

      final boolean isUploading
      Some 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 peer
      isDownloading - some torrent on the page has a non-zero download rate
      isUploading - some torrent on the page has a non-zero upload rate