rice.visualization.server
Class NetworkActivityPanelCreator
java.lang.Object
rice.visualization.server.NetworkActivityPanelCreator
-
All Implemented Interfaces:
-
NetworkListener, PanelCreator
-
public class NetworkActivityPanelCreator
- extends java.lang.Object
- implements PanelCreator, NetworkListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_DATA_POINTS
public static int NUM_DATA_POINTS
NUM_MESSAGES
public static int NUM_MESSAGES
UPDATE_TIME
public static int UPDATE_TIME
sent
protected java.util.Vector sent
received
protected java.util.Vector received
times
protected java.util.Vector times
addresses
protected java.util.Vector addresses
addressSizes
protected java.util.Vector addressSizes
sentTotal
protected double sentTotal
receivedTotal
protected double receivedTotal
environment
protected Environment environment
NetworkActivityPanelCreator
public NetworkActivityPanelCreator(Environment env)
createPanel
public DataPanel createPanel(java.lang.Object[] objects)
-
- Specified by:
-
createPanel
in interface PanelCreator
-
getTimeArray
protected double[] getTimeArray()
-
-
getSentArray
protected double[] getSentArray()
-
-
getReceivedArray
protected double[] getReceivedArray()
-
-
updateData
protected void updateData()
-
-
addMessage
protected void addMessage(java.net.InetSocketAddress address,
int size)
-
-
getAddresses
protected java.net.InetSocketAddress[] getAddresses()
-
-
getSizes
protected java.lang.Integer[] getSizes()
-
-
resetSentTotal
protected double resetSentTotal()
-
-
resetReceivedTotal
protected double resetReceivedTotal()
-
-
dataSent
public void dataSent(java.lang.Object message,
java.net.InetSocketAddress address,
int size,
int type)
-
- Specified by:
-
dataSent
in interface NetworkListener
-
dataReceived
public void dataReceived(java.lang.Object message,
java.net.InetSocketAddress address,
int size,
int type)
-
- Specified by:
-
dataReceived
in interface NetworkListener
-
channelOpened
public void channelOpened(java.net.InetSocketAddress addr,
int reason)
-
- Specified by:
-
channelOpened
in interface NetworkListener
-
channelClosed
public void channelClosed(java.net.InetSocketAddress addr)
-
- Specified by:
-
channelClosed
in interface NetworkListener
-
Copyright © 2001-2005 - Rice Pastry.