Class DHTControlStatsImpl
java.lang.Object
com.biglybt.core.dht.control.impl.DHTControlStatsImpl
- All Implemented Interfaces:
DHTControlStats, DHTTransportFullStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Averageprivate final Average(package private) final DHTControlImplprivate final Averageprivate final Averageprivate long[]private DHTTransportStatsprivate static final intprivate static final intprivate int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglonglonglonglonglonglonglonglonglonglonglongintNumber of routers instantiated - new one created if our external IP changeslonglonglongUptime of the latest router instancelonglonglonglonglonglonglonglonglongprotected int[]protected voidupdate()
-
Field Details
-
UPDATE_INTERVAL
private static final int UPDATE_INTERVAL- See Also:
-
UPDATE_PERIOD
private static final int UPDATE_PERIOD- See Also:
-
control
-
packets_in_average
-
packets_out_average
-
bytes_in_average
-
bytes_out_average
-
transport_snapshot
-
router_snapshot
private long[] router_snapshot -
value_details_snapshot
private int[] value_details_snapshot
-
-
Constructor Details
-
DHTControlStatsImpl
-
-
Method Details
-
update
protected void update() -
getTotalBytesReceived
public long getTotalBytesReceived()- Specified by:
getTotalBytesReceivedin interfaceDHTTransportFullStats
-
getTotalBytesSent
public long getTotalBytesSent()- Specified by:
getTotalBytesSentin interfaceDHTTransportFullStats
-
getTotalPacketsReceived
public long getTotalPacketsReceived()- Specified by:
getTotalPacketsReceivedin interfaceDHTTransportFullStats
-
getTotalPacketsSent
public long getTotalPacketsSent()- Specified by:
getTotalPacketsSentin interfaceDHTTransportFullStats
-
getTotalPingsReceived
public long getTotalPingsReceived()- Specified by:
getTotalPingsReceivedin interfaceDHTTransportFullStats
-
getTotalFindNodesReceived
public long getTotalFindNodesReceived()- Specified by:
getTotalFindNodesReceivedin interfaceDHTTransportFullStats
-
getTotalFindValuesReceived
public long getTotalFindValuesReceived()- Specified by:
getTotalFindValuesReceivedin interfaceDHTTransportFullStats
-
getTotalStoresReceived
public long getTotalStoresReceived()- Specified by:
getTotalStoresReceivedin interfaceDHTTransportFullStats
-
getTotalKeyBlocksReceived
public long getTotalKeyBlocksReceived()- Specified by:
getTotalKeyBlocksReceivedin interfaceDHTTransportFullStats
-
getAverageBytesReceived
public long getAverageBytesReceived()- Specified by:
getAverageBytesReceivedin interfaceDHTTransportFullStats
-
getAverageBytesSent
public long getAverageBytesSent()- Specified by:
getAverageBytesSentin interfaceDHTTransportFullStats
-
getAveragePacketsReceived
public long getAveragePacketsReceived()- Specified by:
getAveragePacketsReceivedin interfaceDHTTransportFullStats
-
getAveragePacketsSent
public long getAveragePacketsSent()- Specified by:
getAveragePacketsSentin interfaceDHTTransportFullStats
-
getIncomingRequests
public long getIncomingRequests()- Specified by:
getIncomingRequestsin interfaceDHTTransportFullStats
-
getValueDetails
protected int[] getValueDetails() -
getDBValuesStored
public long getDBValuesStored()- Specified by:
getDBValuesStoredin interfaceDHTTransportFullStats
-
getDBKeyCount
public long getDBKeyCount()- Specified by:
getDBKeyCountin interfaceDHTTransportFullStats
-
getDBValueCount
public long getDBValueCount()- Specified by:
getDBValueCountin interfaceDHTTransportFullStats
-
getDBKeysBlocked
public long getDBKeysBlocked()- Specified by:
getDBKeysBlockedin interfaceDHTTransportFullStats
-
getDBKeyDivSizeCount
public long getDBKeyDivSizeCount()- Specified by:
getDBKeyDivSizeCountin interfaceDHTTransportFullStats
-
getDBKeyDivFreqCount
public long getDBKeyDivFreqCount()- Specified by:
getDBKeyDivFreqCountin interfaceDHTTransportFullStats
-
getDBStoreSize
public long getDBStoreSize()- Specified by:
getDBStoreSizein interfaceDHTTransportFullStats
-
getRouterNodes
public long getRouterNodes()- Specified by:
getRouterNodesin interfaceDHTTransportFullStats
-
getRouterLeaves
public long getRouterLeaves()- Specified by:
getRouterLeavesin interfaceDHTTransportFullStats
-
getRouterContacts
public long getRouterContacts()- Specified by:
getRouterContactsin interfaceDHTTransportFullStats
-
getRouterUptime
public long getRouterUptime()Description copied from interface:DHTControlStatsUptime of the latest router instance- Specified by:
getRouterUptimein interfaceDHTControlStats- Specified by:
getRouterUptimein interfaceDHTTransportFullStats- Returns:
-
getRouterCount
public int getRouterCount()Description copied from interface:DHTControlStatsNumber of routers instantiated - new one created if our external IP changes- Specified by:
getRouterCountin interfaceDHTControlStats- Specified by:
getRouterCountin interfaceDHTTransportFullStats- Returns:
-
getVersion
- Specified by:
getVersionin interfaceDHTTransportFullStats
-
getEstimatedDHTSize
public long getEstimatedDHTSize()- Specified by:
getEstimatedDHTSizein interfaceDHTControlStats
-
getString
- Specified by:
getStringin interfaceDHTTransportFullStats
-