Interface CompleteListener

All Known Implementing Classes:
SnarkManager, UpdateRunner

public interface CompleteListener
Callback for Snark events.
Since:
0.9.4 moved from Snark.java
  • Method Details

    • torrentComplete

      void torrentComplete(Snark snark)
    • updateStatus

      void updateStatus(Snark snark)
    • gotMetaInfo

      String gotMetaInfo(Snark snark)
      We transitioned from magnet mode, we have now initialized our metainfo and storage. The listener should now call getMetaInfo() and save the data to disk.
      Returns:
      the new name for the torrent or null on error
      Since:
      0.8.4
    • fatal

      void fatal(Snark snark, String error)
      Since:
      0.9
    • addMessage

      void addMessage(Snark snark, String message)
      Since:
      0.9.2
    • gotPiece

      void gotPiece(Snark snark)
      Since:
      0.9.4
    • getSavedTorrentTime

      long getSavedTorrentTime(Snark snark)
      not really listeners but the easiest way to get back to an optional SnarkManager
    • getSavedTorrentBitField

      BitField getSavedTorrentBitField(Snark snark)
    • getSavedPreserveNamesSetting

      boolean getSavedPreserveNamesSetting(Snark snark)
      Since:
      0.9.15
    • getSavedUploaded

      long getSavedUploaded(Snark snark)
      Since:
      0.9.15
    • getSavedComments

      CommentSet getSavedComments(Snark snark)
      Since:
      0.9.31
    • locked_saveComments

      void locked_saveComments(Snark snark, CommentSet comments)
      Since:
      0.9.31
    • shouldAutoStart

      boolean shouldAutoStart()
      Since:
      0.9.42