Package com.biglybt.core.history.impl
Class DownloadHistoryManagerImpl.DownloadHistoryImpl
- java.lang.Object
-
- com.biglybt.core.history.impl.DownloadHistoryManagerImpl.DownloadHistoryImpl
-
- All Implemented Interfaces:
DownloadHistory
- Enclosing class:
- DownloadHistoryManagerImpl
private class DownloadHistoryManagerImpl.DownloadHistoryImpl extends java.lang.Object implements DownloadHistory
-
-
Field Summary
Fields Modifier and Type Field Description private long
add_time
private long
complete_time
private byte[]
hash
private byte[]
hash_v2
private java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl>
history_ref
private java.lang.String
name
private long
remove_time
private java.lang.String
save_location
private long
size
private java.lang.String[]
tags
private long
uid
-
Constructor Summary
Constructors Constructor Description DownloadHistoryImpl(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> _history_ref, DownloadManager dm)
DownloadHistoryImpl(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> _history_ref, java.util.Map<java.lang.String,java.lang.Object> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.Map<java.lang.String,java.lang.Object>
exportToMap()
long
getAddTime()
long
getCompleteTime()
java.lang.String
getName()
long
getRemoveTime()
java.lang.String
getSaveLocation()
long
getSize()
java.lang.String[]
getTags()
byte[]
getTorrentHash()
byte[]
getTorrentV2Hash()
long
getUID()
(package private) void
setHistoryReference(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> ref)
void
setRedownloading()
(package private) void
setRemoved(java.util.List<Tag> removal_tags)
(package private) boolean
updateCompleteTime(DownloadManagerState dms)
(package private) boolean
updateName(DownloadManager dm)
(package private) boolean
updateSaveLocation(DownloadManager dm)
-
-
-
Field Detail
-
uid
private final long uid
-
hash
private final byte[] hash
-
hash_v2
private final byte[] hash_v2
-
size
private final long size
-
add_time
private final long add_time
-
name
private java.lang.String name
-
save_location
private java.lang.String save_location
-
tags
private java.lang.String[] tags
-
complete_time
private long complete_time
-
remove_time
private long remove_time
-
history_ref
private java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> history_ref
-
-
Constructor Detail
-
DownloadHistoryImpl
DownloadHistoryImpl(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> _history_ref, DownloadManager dm)
-
DownloadHistoryImpl
DownloadHistoryImpl(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> _history_ref, java.util.Map<java.lang.String,java.lang.Object> map) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setHistoryReference
void setHistoryReference(java.util.Map<java.lang.Long,DownloadHistoryManagerImpl.DownloadHistoryImpl> ref)
-
exportToMap
java.util.Map<java.lang.String,java.lang.Object> exportToMap() throws java.io.IOException
- Throws:
java.io.IOException
-
updateCompleteTime
boolean updateCompleteTime(DownloadManagerState dms)
-
updateSaveLocation
boolean updateSaveLocation(DownloadManager dm)
-
updateName
boolean updateName(DownloadManager dm)
-
getUID
public long getUID()
- Specified by:
getUID
in interfaceDownloadHistory
-
getTorrentHash
public byte[] getTorrentHash()
- Specified by:
getTorrentHash
in interfaceDownloadHistory
-
getTorrentV2Hash
public byte[] getTorrentV2Hash()
- Specified by:
getTorrentV2Hash
in interfaceDownloadHistory
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceDownloadHistory
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceDownloadHistory
-
getSaveLocation
public java.lang.String getSaveLocation()
- Specified by:
getSaveLocation
in interfaceDownloadHistory
-
getAddTime
public long getAddTime()
- Specified by:
getAddTime
in interfaceDownloadHistory
-
getCompleteTime
public long getCompleteTime()
- Specified by:
getCompleteTime
in interfaceDownloadHistory
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTags
in interfaceDownloadHistory
-
setRemoved
void setRemoved(java.util.List<Tag> removal_tags)
-
getRemoveTime
public long getRemoveTime()
- Specified by:
getRemoveTime
in interfaceDownloadHistory
-
setRedownloading
public void setRedownloading()
- Specified by:
setRedownloading
in interfaceDownloadHistory
-
-