Package com.biglybt.ui.swt.views.stats
Class DHTView
- java.lang.Object
-
- com.biglybt.ui.swt.views.stats.DHTView
-
- All Implemented Interfaces:
UISWTViewEventListener
,IViewRequiresPeriodicUpdates
public class DHTView extends java.lang.Object implements UISWTViewEventListener, IViewRequiresPeriodicUpdates
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DHTControlActivity[]
activities
(package private) boolean
activityChanged
(package private) org.eclipse.swt.widgets.Table
activityTable
private boolean
auto_dht
(package private) DHTControlListener
controlListener
protected Core
core
(package private) DHT
dht
private int
dht_type
static int
DHT_TYPE_BIGLYBT
static int
DHT_TYPE_CVS
static int
DHT_TYPE_MAIN
static int
DHT_TYPE_MAIN_V6
private java.lang.String
id
(package private) org.eclipse.swt.widgets.Canvas
in
(package private) SpeedGraphic
inGraph
(package private) org.eclipse.swt.widgets.Label
lblContacts
(package private) org.eclipse.swt.widgets.Label[]
lblData
(package private) org.eclipse.swt.widgets.Label
lblDirect
(package private) org.eclipse.swt.widgets.Label
lblDivFreq
(package private) org.eclipse.swt.widgets.Label
lblDivSize
(package private) org.eclipse.swt.widgets.Label
lblDying
(package private) org.eclipse.swt.widgets.Label[]
lblFindNodes
(package private) org.eclipse.swt.widgets.Label[]
lblFindValues
(package private) org.eclipse.swt.widgets.Label
lblIndirect
(package private) org.eclipse.swt.widgets.Label
lblKeys
(package private) org.eclipse.swt.widgets.Label
lblLeaves
(package private) org.eclipse.swt.widgets.Label
lblLive
(package private) org.eclipse.swt.widgets.Label
lblLocal
(package private) org.eclipse.swt.widgets.Label
lblNodes
(package private) org.eclipse.swt.widgets.Label
lblNumberOfUsers
(package private) org.eclipse.swt.widgets.Label[]
lblPings
(package private) org.eclipse.swt.widgets.Label
lblReachable
(package private) org.eclipse.swt.widgets.Label
lblReceivedBytes
(package private) org.eclipse.swt.widgets.Label
lblReceivedPackets
(package private) org.eclipse.swt.widgets.Label
lblRendezvous
(package private) org.eclipse.swt.widgets.Label
lblReplacements
(package private) org.eclipse.swt.widgets.Label
lblSentBytes
(package private) org.eclipse.swt.widgets.Label
lblSentPackets
(package private) org.eclipse.swt.widgets.Label
lblSize
(package private) org.eclipse.swt.widgets.Label
lblSkew
(package private) org.eclipse.swt.widgets.Label[]
lblStores
(package private) BufferedLabel
lblTransportAddress
(package private) org.eclipse.swt.widgets.Label
lblUnknown
(package private) org.eclipse.swt.widgets.Label
lblUpTime
(package private) org.eclipse.swt.widgets.Label
lblValues
static java.lang.String
MSGID_PREFIX
(package private) java.lang.String
no_str
(package private) org.eclipse.swt.widgets.Canvas
out
(package private) SpeedGraphic
outGraph
(package private) org.eclipse.swt.widgets.Composite
panel
private int
refreshIter
(package private) org.eclipse.swt.widgets.Canvas
rtt
static org.eclipse.swt.graphics.Color[]
rttColours
(package private) PingGraphic
rttGraph
private UISWTView
swtView
private static java.util.Map<java.lang.String,int[]>
table_col_map
(package private) java.lang.String
yes_str
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate org.eclipse.swt.widgets.Composite
getComposite()
private java.lang.String
getTitleID()
private void
init(Core core)
private void
initialiseActivityGroup()
private void
initialiseDBGroup()
private void
initialiseGeneralGroup()
private void
initialiseOperationDetailsGroup()
private void
initialiseTransportDetailsGroup()
void
initialize(org.eclipse.swt.widgets.Composite composite)
void
periodicUpdate()
private void
refresh()
private void
refreshActivity()
private void
refreshDB()
private void
refreshGeneral()
private void
refreshOperationDetails()
private void
refreshTransportDetails()
void
setDHT(DHT _dht)
-
-
-
Field Detail
-
DHT_TYPE_MAIN
public static final int DHT_TYPE_MAIN
- See Also:
- Constant Field Values
-
DHT_TYPE_CVS
public static final int DHT_TYPE_CVS
- See Also:
- Constant Field Values
-
DHT_TYPE_MAIN_V6
public static final int DHT_TYPE_MAIN_V6
- See Also:
- Constant Field Values
-
DHT_TYPE_BIGLYBT
public static final int DHT_TYPE_BIGLYBT
- See Also:
- Constant Field Values
-
MSGID_PREFIX
public static final java.lang.String MSGID_PREFIX
- See Also:
- Constant Field Values
-
rttColours
public static org.eclipse.swt.graphics.Color[] rttColours
-
table_col_map
private static java.util.Map<java.lang.String,int[]> table_col_map
-
auto_dht
private boolean auto_dht
-
dht
DHT dht
-
panel
org.eclipse.swt.widgets.Composite panel
-
yes_str
java.lang.String yes_str
-
no_str
java.lang.String no_str
-
lblUpTime
org.eclipse.swt.widgets.Label lblUpTime
-
lblNumberOfUsers
org.eclipse.swt.widgets.Label lblNumberOfUsers
-
lblNodes
org.eclipse.swt.widgets.Label lblNodes
-
lblLeaves
org.eclipse.swt.widgets.Label lblLeaves
-
lblContacts
org.eclipse.swt.widgets.Label lblContacts
-
lblReplacements
org.eclipse.swt.widgets.Label lblReplacements
-
lblLive
org.eclipse.swt.widgets.Label lblLive
-
lblUnknown
org.eclipse.swt.widgets.Label lblUnknown
-
lblDying
org.eclipse.swt.widgets.Label lblDying
-
lblSkew
org.eclipse.swt.widgets.Label lblSkew
-
lblRendezvous
org.eclipse.swt.widgets.Label lblRendezvous
-
lblReachable
org.eclipse.swt.widgets.Label lblReachable
-
lblKeys
org.eclipse.swt.widgets.Label lblKeys
-
lblValues
org.eclipse.swt.widgets.Label lblValues
-
lblSize
org.eclipse.swt.widgets.Label lblSize
-
lblLocal
org.eclipse.swt.widgets.Label lblLocal
-
lblDirect
org.eclipse.swt.widgets.Label lblDirect
-
lblIndirect
org.eclipse.swt.widgets.Label lblIndirect
-
lblDivFreq
org.eclipse.swt.widgets.Label lblDivFreq
-
lblDivSize
org.eclipse.swt.widgets.Label lblDivSize
-
lblTransportAddress
BufferedLabel lblTransportAddress
-
lblReceivedPackets
org.eclipse.swt.widgets.Label lblReceivedPackets
-
lblReceivedBytes
org.eclipse.swt.widgets.Label lblReceivedBytes
-
lblSentPackets
org.eclipse.swt.widgets.Label lblSentPackets
-
lblSentBytes
org.eclipse.swt.widgets.Label lblSentBytes
-
lblPings
org.eclipse.swt.widgets.Label[] lblPings
-
lblFindNodes
org.eclipse.swt.widgets.Label[] lblFindNodes
-
lblFindValues
org.eclipse.swt.widgets.Label[] lblFindValues
-
lblStores
org.eclipse.swt.widgets.Label[] lblStores
-
lblData
org.eclipse.swt.widgets.Label[] lblData
-
in
org.eclipse.swt.widgets.Canvas in
-
out
org.eclipse.swt.widgets.Canvas out
-
rtt
org.eclipse.swt.widgets.Canvas rtt
-
inGraph
SpeedGraphic inGraph
-
outGraph
SpeedGraphic outGraph
-
rttGraph
PingGraphic rttGraph
-
activityChanged
boolean activityChanged
-
controlListener
DHTControlListener controlListener
-
activityTable
org.eclipse.swt.widgets.Table activityTable
-
activities
DHTControlActivity[] activities
-
id
private java.lang.String id
-
dht_type
private int dht_type
-
core
protected Core core
-
refreshIter
private int refreshIter
-
swtView
private UISWTView swtView
-
-
Method Detail
-
init
private void init(Core core)
-
setDHT
public void setDHT(DHT _dht)
-
initialize
public void initialize(org.eclipse.swt.widgets.Composite composite)
-
initialiseGeneralGroup
private void initialiseGeneralGroup()
-
initialiseDBGroup
private void initialiseDBGroup()
-
initialiseTransportDetailsGroup
private void initialiseTransportDetailsGroup()
-
initialiseOperationDetailsGroup
private void initialiseOperationDetailsGroup()
-
initialiseActivityGroup
private void initialiseActivityGroup()
-
delete
public void delete()
-
getTitleID
private java.lang.String getTitleID()
-
getComposite
private org.eclipse.swt.widgets.Composite getComposite()
-
refresh
private void refresh()
-
refreshGeneral
private void refreshGeneral()
-
refreshDB
private void refreshDB()
-
refreshTransportDetails
private void refreshTransportDetails()
-
refreshOperationDetails
private void refreshOperationDetails()
-
refreshActivity
private void refreshActivity()
-
periodicUpdate
public void periodicUpdate()
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
-