Package org.klomp.snark
Interface CompleteListener
-
- All Known Implementing Classes:
SnarkManager
,UpdateRunner
public interface CompleteListener
Callback for Snark events.- Since:
- 0.9.4 moved from Snark.java
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMessage(Snark snark, String message)
void
fatal(Snark snark, String error)
CommentSet
getSavedComments(Snark snark)
boolean
getSavedPreserveNamesSetting(Snark snark)
BitField
getSavedTorrentBitField(Snark snark)
long
getSavedTorrentTime(Snark snark)
not really listeners but the easiest way to get back to an optional SnarkManagerlong
getSavedUploaded(Snark snark)
String
gotMetaInfo(Snark snark)
We transitioned from magnet mode, we have now initialized our metainfo and storage.void
gotPiece(Snark snark)
void
locked_saveComments(Snark snark, CommentSet comments)
boolean
shouldAutoStart()
void
torrentComplete(Snark snark)
void
updateStatus(Snark snark)
-
-
-
Method Detail
-
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
-
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
-
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
-
-