public class NetworkStatsTracker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
NetworkStatsTracker.Listener
The listener gets callbacks for interesting events.
|
static interface |
NetworkStatsTracker.RemoteArtifactUploadStats
Stats about remote artifact uploads.
|
Constructor and Description |
---|
NetworkStatsTracker() |
Modifier and Type | Method and Description |
---|---|
CacheRateStatsKeeper.CacheRateStatsUpdateEvent |
getCacheRateStats()
Get the current cache rate stats.
|
NetworkStatsTracker.RemoteArtifactUploadStats |
getRemoteArtifactUploadStats()
Get the current upload stats.
|
NetworkStatsKeeper.RemoteDownloadStats |
getRemoteDownloadStats()
Get the current download stats.
|
boolean |
haveUploadsFinished() |
boolean |
haveUploadsStarted() |
void |
registerListener(NetworkStatsTracker.Listener listener) |
public void registerListener(NetworkStatsTracker.Listener listener)
public NetworkStatsTracker.RemoteArtifactUploadStats getRemoteArtifactUploadStats()
public boolean haveUploadsStarted()
public boolean haveUploadsFinished()
public CacheRateStatsKeeper.CacheRateStatsUpdateEvent getCacheRateStats()
public NetworkStatsKeeper.RemoteDownloadStats getRemoteDownloadStats()