Class TRHostTorrentPublishImpl
java.lang.Object
com.biglybt.core.tracker.host.impl.TRHostTorrentPublishImpl
- All Implemented Interfaces:
TRHostTorrent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMapprivate final longprivate final TRHostImplprivate Listprivate intprivate TRHostPeer[]private booleanprivate final Listprivate intprivate static final intprotected final AEMonitorprivate TOTorrentFields inherited from interface TRHostTorrent
TS_FAILED, TS_PUBLISHED, TS_STARTED, TS_STOPPED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTRHostTorrentPublishImpl(TRHostImpl _host, TOTorrent _torrent, long _date_added) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleandoesn't guarantee that removal will be successful as conditions may changevoidlonglonglonglonglonglonglongintlongTo retreive arbitrary objects against this object.longintgetPeers()intgetPort()longintintlonglonglonglonglongbooleanbooleanbooleanprotected voidprotected voidvoidremove()voidvoidvoidTo store arbitrary objects against this object.voidsetPassive(boolean passive) voidsetPersistent(boolean _persistent) voidvoidstart()voidstop()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:
startin interfaceTRHostTorrent
-
stop
public void stop()- Specified by:
stopin interfaceTRHostTorrent
-
remove
- Specified by:
removein interfaceTRHostTorrent- Throws:
TRHostTorrentRemovalVetoException
-
canBeRemoved
Description copied from interface:TRHostTorrentdoesn't guarantee that removal will be successful as conditions may change- Specified by:
canBeRemovedin interfaceTRHostTorrent- Returns:
- true if OK, exception thrown otherwise
- Throws:
TRHostTorrentRemovalVetoException
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceTRHostTorrent
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceTRHostTorrent
-
setPersistent
public void setPersistent(boolean _persistent) -
isPassive
public boolean isPassive()- Specified by:
isPassivein interfaceTRHostTorrent
-
setPassive
public void setPassive(boolean passive) - Specified by:
setPassivein interfaceTRHostTorrent
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceTRHostTorrent
-
getDateAdded
public long getDateAdded()- Specified by:
getDateAddedin interfaceTRHostTorrent
-
getTorrent
- Specified by:
getTorrentin interfaceTRHostTorrent
-
setTorrent
- Specified by:
setTorrentin interfaceTRHostTorrent
-
getTrackerTorrent
- Specified by:
getTrackerTorrentin interfaceTRHostTorrent
-
getPort
public int getPort()- Specified by:
getPortin interfaceTRHostTorrent
-
getPeers
- Specified by:
getPeersin interfaceTRHostTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCountin interfaceTRHostTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCountin interfaceTRHostTorrent
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCountin interfaceTRHostTorrent
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCountin interfaceTRHostTorrent
-
getCompletedCount
public long getCompletedCount()- Specified by:
getCompletedCountin interfaceTRHostTorrent
-
updateStats
protected void updateStats() -
getSeedCount
public int getSeedCount()- Specified by:
getSeedCountin interfaceTRHostTorrent
-
getLeecherCount
public int getLeecherCount()- Specified by:
getLeecherCountin interfaceTRHostTorrent
-
getBadNATCount
public int getBadNATCount()- Specified by:
getBadNATCountin interfaceTRHostTorrent
-
getTotalUploaded
public long getTotalUploaded()- Specified by:
getTotalUploadedin interfaceTRHostTorrent
-
getTotalDownloaded
public long getTotalDownloaded()- Specified by:
getTotalDownloadedin interfaceTRHostTorrent
-
getTotalLeft
public long getTotalLeft()- Specified by:
getTotalLeftin interfaceTRHostTorrent
-
getAverageUploaded
public long getAverageUploaded()- Specified by:
getAverageUploadedin interfaceTRHostTorrent
-
getAverageDownloaded
public long getAverageDownloaded()- Specified by:
getAverageDownloadedin interfaceTRHostTorrent
-
getTotalBytesIn
public long getTotalBytesIn()- Specified by:
getTotalBytesInin interfaceTRHostTorrent
-
getTotalBytesOut
public long getTotalBytesOut()- Specified by:
getTotalBytesOutin interfaceTRHostTorrent
-
getAverageBytesIn
public long getAverageBytesIn()- Specified by:
getAverageBytesInin interfaceTRHostTorrent
-
getAverageBytesOut
public long getAverageBytesOut()- Specified by:
getAverageBytesOutin interfaceTRHostTorrent
-
disableReplyCaching
public void disableReplyCaching()- Specified by:
disableReplyCachingin interfaceTRHostTorrent
-
preProcess
- Throws:
TRHostException
-
postProcess
- Throws:
TRHostException
-
addListener
- Specified by:
addListenerin interfaceTRHostTorrent
-
removeListener
- Specified by:
removeListenerin interfaceTRHostTorrent
-
addRemovalListener
- Specified by:
addRemovalListenerin interfaceTRHostTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListenerin interfaceTRHostTorrent
-
getData
To retreive arbitrary objects against this object.- Specified by:
getDatain interfaceTRHostTorrent
-
setData
To store arbitrary objects against this object.- Specified by:
setDatain interfaceTRHostTorrent
-