Class TRHostTorrentPublishImpl
java.lang.Object
com.biglybt.core.tracker.host.impl.TRHostTorrentPublishImpl
- All Implemented Interfaces:
TRHostTorrent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMap
private final long
private final TRHostImpl
private List
private int
private TRHostPeer[]
private boolean
private final List
private int
private static final int
protected final AEMonitor
private TOTorrent
Fields inherited from interface com.biglybt.core.tracker.host.TRHostTorrent
TS_FAILED, TS_PUBLISHED, TS_STARTED, TS_STOPPED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TRHostTorrentPublishImpl
(TRHostImpl _host, TOTorrent _torrent, long _date_added) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
doesn't guarantee that removal will be successful as conditions may changevoid
long
long
long
long
long
long
long
int
long
To retreive arbitrary objects against this object.long
int
getPeers()
int
getPort()
long
int
int
long
long
long
long
long
boolean
boolean
boolean
protected void
protected void
void
remove()
void
void
void
To store arbitrary objects against this object.void
setPassive
(boolean passive) void
setPersistent
(boolean _persistent) void
void
start()
void
stop()
protected void
-
Field Details
-
host
-
torrent
-
date_added
private final long date_added -
status
private static final int status- See Also:
-
persistent
private boolean persistent -
seed_count
private int seed_count -
peer_count
private int peer_count -
peers
-
listeners_cow
-
removal_listeners
-
data
-
this_mon
-
-
Constructor Details
-
TRHostTorrentPublishImpl
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceTRHostTorrent
-
stop
public void stop()- Specified by:
stop
in interfaceTRHostTorrent
-
remove
- Specified by:
remove
in interfaceTRHostTorrent
- Throws:
TRHostTorrentRemovalVetoException
-
canBeRemoved
Description copied from interface:TRHostTorrent
doesn't guarantee that removal will be successful as conditions may change- Specified by:
canBeRemoved
in interfaceTRHostTorrent
- Returns:
- true if OK, exception thrown otherwise
- Throws:
TRHostTorrentRemovalVetoException
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceTRHostTorrent
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceTRHostTorrent
-
setPersistent
public void setPersistent(boolean _persistent) -
isPassive
public boolean isPassive()- Specified by:
isPassive
in interfaceTRHostTorrent
-
setPassive
public void setPassive(boolean passive) - Specified by:
setPassive
in interfaceTRHostTorrent
-
isExternal
public boolean isExternal()- Specified by:
isExternal
in interfaceTRHostTorrent
-
getDateAdded
public long getDateAdded()- Specified by:
getDateAdded
in interfaceTRHostTorrent
-
getTorrent
- Specified by:
getTorrent
in interfaceTRHostTorrent
-
setTorrent
- Specified by:
setTorrent
in interfaceTRHostTorrent
-
getTrackerTorrent
- Specified by:
getTrackerTorrent
in interfaceTRHostTorrent
-
getPort
public int getPort()- Specified by:
getPort
in interfaceTRHostTorrent
-
getPeers
- Specified by:
getPeers
in interfaceTRHostTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCount
in interfaceTRHostTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCount
in interfaceTRHostTorrent
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCount
in interfaceTRHostTorrent
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCount
in interfaceTRHostTorrent
-
getCompletedCount
public long getCompletedCount()- Specified by:
getCompletedCount
in interfaceTRHostTorrent
-
updateStats
protected void updateStats() -
getSeedCount
public int getSeedCount()- Specified by:
getSeedCount
in interfaceTRHostTorrent
-
getLeecherCount
public int getLeecherCount()- Specified by:
getLeecherCount
in interfaceTRHostTorrent
-
getBadNATCount
public int getBadNATCount()- Specified by:
getBadNATCount
in interfaceTRHostTorrent
-
getTotalUploaded
public long getTotalUploaded()- Specified by:
getTotalUploaded
in interfaceTRHostTorrent
-
getTotalDownloaded
public long getTotalDownloaded()- Specified by:
getTotalDownloaded
in interfaceTRHostTorrent
-
getTotalLeft
public long getTotalLeft()- Specified by:
getTotalLeft
in interfaceTRHostTorrent
-
getAverageUploaded
public long getAverageUploaded()- Specified by:
getAverageUploaded
in interfaceTRHostTorrent
-
getAverageDownloaded
public long getAverageDownloaded()- Specified by:
getAverageDownloaded
in interfaceTRHostTorrent
-
getTotalBytesIn
public long getTotalBytesIn()- Specified by:
getTotalBytesIn
in interfaceTRHostTorrent
-
getTotalBytesOut
public long getTotalBytesOut()- Specified by:
getTotalBytesOut
in interfaceTRHostTorrent
-
getAverageBytesIn
public long getAverageBytesIn()- Specified by:
getAverageBytesIn
in interfaceTRHostTorrent
-
getAverageBytesOut
public long getAverageBytesOut()- Specified by:
getAverageBytesOut
in interfaceTRHostTorrent
-
disableReplyCaching
public void disableReplyCaching()- Specified by:
disableReplyCaching
in interfaceTRHostTorrent
-
preProcess
- Throws:
TRHostException
-
postProcess
- Throws:
TRHostException
-
addListener
- Specified by:
addListener
in interfaceTRHostTorrent
-
removeListener
- Specified by:
removeListener
in interfaceTRHostTorrent
-
addRemovalListener
- Specified by:
addRemovalListener
in interfaceTRHostTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListener
in interfaceTRHostTorrent
-
getData
To retreive arbitrary objects against this object.- Specified by:
getData
in interfaceTRHostTorrent
-
setData
To store arbitrary objects against this object.- Specified by:
setData
in interfaceTRHostTorrent
-