Class ClientStatsView
java.lang.Object
com.biglybt.ui.swt.views.table.impl.TableViewTab<ClientStatsDataSource>
com.biglybt.ui.swt.views.clientstats.ClientStatsView
- All Implemented Interfaces:
DownloadManagerPeerListener
,GlobalManagerListener
,AEDiagnosticsEvidenceGenerator
,TableLifeCycleListener
,TableViewFilterCheck<ClientStatsDataSource>
,ObfuscateImage
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class ClientStatsView
extends TableViewTab<ClientStatsDataSource>
implements TableLifeCycleListener, GlobalManagerListener, DownloadManagerPeerListener, TableViewFilterCheck<ClientStatsDataSource>
This view needs to be reworked so that the data collection is separate
from UI
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BloomFilter
private static final int
private static final int
private BloomFilter
private GregorianCalendar
private boolean
private static final String
private static final String
private Core
private long
private int
private final Map
<String, ClientStatsDataSource> private ClientStatsOverall
private org.eclipse.swt.widgets.Composite
private static boolean
private long
private static final String
private long
private TableViewSWT
<ClientStatsDataSource> Fields inherited from interface com.biglybt.ui.common.table.TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
void
void
void
boolean
filterCheck
(ClientStatsDataSource ds, String filter, boolean regex, boolean confusable) void
private String
private void
private void
initColumns
(Core core) org.eclipse.swt.widgets.Composite
initComposite
(org.eclipse.swt.widgets.Composite composite) void
void
peerManagerAdded
(PEPeerManager manager) void
peerManagerRemoved
(PEPeerManager manager) void
peerManagerWillBeAdded
(PEPeerManager manager) Called when a peer manager is created but not yet startedvoid
peerRemoved
(PEPeer peer) protected void
private void
void
seedingStatusChanged
(boolean seedingOnlyMode, boolean potentiallySeedingOnlyMode) Notification of global seeding status changes.void
tableLifeCycleEventOccurred
(TableView tv, int eventype, Map<String, Object> data) void
Methods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, updateLanguage, viewActivated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.global.GlobalManagerListener
destroyInitiated
Methods inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
filterCheck
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
informOfDuplicates
-
Field Details
-
CONFIG_FILE
- See Also:
-
CONFIG_FILE_ARCHIVE
- See Also:
-
BLOOMFILTER_SIZE
private static final int BLOOMFILTER_SIZE- See Also:
-
BLOOMFILTER_PEERID_SIZE
private static final int BLOOMFILTER_PEERID_SIZE- See Also:
-
TABLEID
- See Also:
-
core
-
tv
-
columnsAdded
private boolean columnsAdded -
mapData
-
parent
private org.eclipse.swt.widgets.Composite parent -
bloomFilter
-
bloomFilterPeerId
-
overall
-
startedListeningOn
private long startedListeningOn -
totalTime
private long totalTime -
lastAdd
private long lastAdd -
calendar
-
lastAddMonth
private int lastAddMonth -
registered
private static boolean registered
-
-
Constructor Details
-
ClientStatsView
public ClientStatsView()
-
-
Method Details
-
initComposite
public org.eclipse.swt.widgets.Composite initComposite(org.eclipse.swt.widgets.Composite composite) - Overrides:
initComposite
in classTableViewTab<ClientStatsDataSource>
-
tableViewTabInitComplete
public void tableViewTabInitComplete()- Overrides:
tableViewTabInitComplete
in classTableViewTab<ClientStatsDataSource>
-
initYourTableView
- Specified by:
initYourTableView
in classTableViewTab<ClientStatsDataSource>
-
initColumns
-
initAndLoad
private void initAndLoad() -
filterCheck
public boolean filterCheck(ClientStatsDataSource ds, String filter, boolean regex, boolean confusable) - Specified by:
filterCheck
in interfaceTableViewFilterCheck<ClientStatsDataSource>
-
filterSet
- Specified by:
filterSet
in interfaceTableViewFilterCheck<ClientStatsDataSource>
-
save
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
register
-
destroyInitiated
public void destroyInitiated()- Specified by:
destroyInitiated
in interfaceGlobalManagerListener
-
destroyed
public void destroyed()- Specified by:
destroyed
in interfaceGlobalManagerListener
-
downloadManagerAdded
- Specified by:
downloadManagerAdded
in interfaceGlobalManagerListener
-
downloadManagerRemoved
- Specified by:
downloadManagerRemoved
in interfaceGlobalManagerListener
-
seedingStatusChanged
public void seedingStatusChanged(boolean seedingOnlyMode, boolean potentiallySeedingOnlyMode) Description copied from interface:GlobalManagerListener
Notification of global seeding status changes.- Specified by:
seedingStatusChanged
in interfaceGlobalManagerListener
- Parameters:
seedingOnlyMode
- true if only seeding torrents (no downloads), false otherwisepotentiallySeedingOnlyMode
- - as above but true if queued seeds
-
peerAdded
- Specified by:
peerAdded
in interfaceDownloadManagerPeerListener
-
addPeer
-
peerManagerAdded
- Specified by:
peerManagerAdded
in interfaceDownloadManagerPeerListener
-
peerManagerRemoved
- Specified by:
peerManagerRemoved
in interfaceDownloadManagerPeerListener
-
peerManagerWillBeAdded
Description copied from interface:DownloadManagerPeerListener
Called when a peer manager is created but not yet started- Specified by:
peerManagerWillBeAdded
in interfaceDownloadManagerPeerListener
- Parameters:
manager
-
-
peerRemoved
- Specified by:
peerRemoved
in interfaceDownloadManagerPeerListener
-
getID
-