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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BloomFilterprivate static final intprivate static final intprivate BloomFilterprivate GregorianCalendarprivate booleanprivate static final Stringprivate static final Stringprivate Coreprivate longprivate intprivate final Map<String, ClientStatsDataSource> private ClientStatsOverallprivate org.eclipse.swt.widgets.Compositeprivate static booleanprivate longprivate static final Stringprivate longprivate TableViewSWT<ClientStatsDataSource> Fields inherited from interface TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoidvoidvoidbooleanfilterCheck(ClientStatsDataSource ds, String filter, boolean regex, boolean confusable) voidprivate Stringprivate voidprivate voidinitColumns(Core core) org.eclipse.swt.widgets.CompositeinitComposite(org.eclipse.swt.widgets.Composite composite) voidvoidpeerManagerAdded(PEPeerManager manager) voidpeerManagerRemoved(PEPeerManager manager) voidpeerManagerWillBeAdded(PEPeerManager manager) Called when a peer manager is created but not yet startedvoidpeerRemoved(PEPeer peer) protected voidprivate voidvoidseedingStatusChanged(boolean seedingOnlyMode, boolean potentiallySeedingOnlyMode) Notification of global seeding status changes.voidtableLifeCycleEventOccurred(TableView tv, int eventype, Map<String, Object> data) voidMethods inherited from class TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, updateLanguage, viewActivatedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GlobalManagerListener
destroyInitiatedMethods inherited from interface TableViewFilterCheck
filterCheck, filterSet, setRefilterCache, viewChangedMethods inherited from interface UISWTViewEventListener
builderNotRequired, 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:
initCompositein classTableViewTab<ClientStatsDataSource>
-
tableViewTabInitComplete
public void tableViewTabInitComplete()- Overrides:
tableViewTabInitCompletein classTableViewTab<ClientStatsDataSource>
-
initYourTableView
- Specified by:
initYourTableViewin classTableViewTab<ClientStatsDataSource>
-
initColumns
-
initAndLoad
private void initAndLoad() -
filterCheck
public boolean filterCheck(ClientStatsDataSource ds, String filter, boolean regex, boolean confusable) - Specified by:
filterCheckin interfaceTableViewFilterCheck<ClientStatsDataSource>
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<ClientStatsDataSource>
-
save
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurredin interfaceTableLifeCycleListener
-
register
-
destroyInitiated
public void destroyInitiated()- Specified by:
destroyInitiatedin interfaceGlobalManagerListener
-
destroyed
public void destroyed()- Specified by:
destroyedin interfaceGlobalManagerListener
-
downloadManagerAdded
- Specified by:
downloadManagerAddedin interfaceGlobalManagerListener
-
downloadManagerRemoved
- Specified by:
downloadManagerRemovedin interfaceGlobalManagerListener
-
seedingStatusChanged
public void seedingStatusChanged(boolean seedingOnlyMode, boolean potentiallySeedingOnlyMode) Description copied from interface:GlobalManagerListenerNotification of global seeding status changes.- Specified by:
seedingStatusChangedin interfaceGlobalManagerListener- Parameters:
seedingOnlyMode- true if only seeding torrents (no downloads), false otherwisepotentiallySeedingOnlyMode- - as above but true if queued seeds
-
peerAdded
- Specified by:
peerAddedin interfaceDownloadManagerPeerListener
-
addPeer
-
peerManagerAdded
- Specified by:
peerManagerAddedin interfaceDownloadManagerPeerListener
-
peerManagerRemoved
- Specified by:
peerManagerRemovedin interfaceDownloadManagerPeerListener
-
peerManagerWillBeAdded
Description copied from interface:DownloadManagerPeerListenerCalled when a peer manager is created but not yet started- Specified by:
peerManagerWillBeAddedin interfaceDownloadManagerPeerListener- Parameters:
manager-
-
peerRemoved
- Specified by:
peerRemovedin interfaceDownloadManagerPeerListener
-
getID
-