Class TRHostConfigImpl
- java.lang.Object
-
- com.biglybt.core.tracker.host.impl.TRHostConfigImpl
-
public class TRHostConfigImpl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
BACKUP_RETENTION_PERIOD
private boolean
config_exists
private TRHostImpl
host
private boolean
loading
private java.lang.String
log_dir
static java.lang.String
LOG_FILE_NAME
private AEMonitor
save_lock_mon
private boolean
save_outstanding
private java.util.Map
saved_stats
private java.util.List
saved_stats_to_delete
private AEMonitor
this_mon
-
Constructor Summary
Constructors Modifier Constructor Description protected
TRHostConfigImpl(TRHostImpl _host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadConfig(TRHostTorrentFinder finder)
protected void
recoverStats(TRHostTorrentHostImpl host_torrent)
private void
recoverStats(TRHostTorrentHostImpl host_torrent, java.util.Map t_map)
protected void
saveConfig(boolean immediate)
protected void
saveRequired()
-
-
-
Field Detail
-
LOG_FILE_NAME
public static final java.lang.String LOG_FILE_NAME
- See Also:
- Constant Field Values
-
BACKUP_RETENTION_PERIOD
public static final long BACKUP_RETENTION_PERIOD
- See Also:
- Constant Field Values
-
host
private final TRHostImpl host
-
save_lock_mon
private final AEMonitor save_lock_mon
-
log_dir
private final java.lang.String log_dir
-
loading
private volatile boolean loading
-
save_outstanding
private volatile boolean save_outstanding
-
saved_stats
private java.util.Map saved_stats
-
saved_stats_to_delete
private final java.util.List saved_stats_to_delete
-
config_exists
private boolean config_exists
-
this_mon
private final AEMonitor this_mon
-
-
Constructor Detail
-
TRHostConfigImpl
protected TRHostConfigImpl(TRHostImpl _host)
-
-
Method Detail
-
loadConfig
protected void loadConfig(TRHostTorrentFinder finder)
-
recoverStats
protected void recoverStats(TRHostTorrentHostImpl host_torrent)
-
recoverStats
private void recoverStats(TRHostTorrentHostImpl host_torrent, java.util.Map t_map)
-
saveConfig
protected void saveConfig(boolean immediate)
-
saveRequired
protected void saveRequired()
-
-