org.gudy.azureus2.core3.history.impl
Class DownloadHistoryManagerImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.history.impl.DownloadHistoryManagerImpl
All Implemented Interfaces:
DownloadHistoryManager

public class DownloadHistoryManagerImpl
extends Object
implements DownloadHistoryManager


Constructor Summary
DownloadHistoryManagerImpl()
           
 
Method Summary
 void addListener(DownloadHistoryListener listener, boolean fire_for_existing)
           
 long[] getDates(byte[] hash)
           
 int getHistoryCount()
           
 boolean isEnabled()
           
 void removeHistory(List<DownloadHistory> to_remove)
           
 void removeListener(DownloadHistoryListener listener)
           
 void resetHistory()
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadHistoryManagerImpl

public DownloadHistoryManagerImpl()
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface DownloadHistoryManager

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface DownloadHistoryManager

getHistoryCount

public int getHistoryCount()
Specified by:
getHistoryCount in interface DownloadHistoryManager

removeHistory

public void removeHistory(List<DownloadHistory> to_remove)
Specified by:
removeHistory in interface DownloadHistoryManager

resetHistory

public void resetHistory()
Specified by:
resetHistory in interface DownloadHistoryManager

getDates

public long[] getDates(byte[] hash)
Specified by:
getDates in interface DownloadHistoryManager
Returns:
[ added, completed, removed, redownloaded (transient)]

addListener

public void addListener(DownloadHistoryListener listener,
                        boolean fire_for_existing)
Specified by:
addListener in interface DownloadHistoryManager

removeListener

public void removeListener(DownloadHistoryListener listener)
Specified by:
removeListener in interface DownloadHistoryManager