interface StorageListener
This interface is used by Storage to report:
Storage| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message) |
void |
setWantedPieces(Storage storage)
Reset the peer's wanted pieces table Call after the storage double-check fails
|
void |
storageAllChecked(Storage storage)
Called when all pieces in the storage have been checked.
|
void |
storageAllocated(Storage storage,
long length)
Called to indicate that length bytes have been allocated.
|
void |
storageChecked(Storage storage,
int num,
boolean checked)
Called when storage is being checked and the num piece of that total pieces has been checked.
|
void |
storageCompleted(Storage storage)
Called the one time when the data is completely received and checked.
|
void |
storageCreateFile(Storage storage,
String name,
long length)
Called when the storage creates a new file of a given length.
|
void addMessage(String message)
void setWantedPieces(Storage storage)
void storageAllChecked(Storage storage)
void storageAllocated(Storage storage, long length)
void storageChecked(Storage storage, int num, boolean checked)
void storageCompleted(Storage storage)