ePOST API

rice.visualization.server
Class NetworkActivityPanelCreator

java.lang.Object
  extended by rice.visualization.server.NetworkActivityPanelCreator
All Implemented Interfaces:
NetworkListener, PanelCreator

public class NetworkActivityPanelCreator
extends java.lang.Object
implements PanelCreator, NetworkListener


Field Summary
protected  java.util.Vector addresses
           
protected  java.util.Vector addressSizes
           
protected  Environment environment
           
static int NUM_DATA_POINTS
           
static int NUM_MESSAGES
           
protected  java.util.Vector received
           
protected  double receivedTotal
           
protected  java.util.Vector sent
           
protected  double sentTotal
           
protected  java.util.Vector times
           
static int UPDATE_TIME
           
 
Fields inherited from interface rice.pastry.NetworkListener
REASON_ACC_BOOTSTRAP, REASON_ACC_NORMAL, REASON_ACC_SR, REASON_BOOTSTRAP, REASON_NORMAL, REASON_SR, TYPE_SR_TCP, TYPE_SR_UDP, TYPE_TCP, TYPE_UDP
 
Constructor Summary
NetworkActivityPanelCreator(Environment env)
           
 
Method Summary
protected  void addMessage(java.net.InetSocketAddress address, int size)
           
 void channelClosed(java.net.InetSocketAddress addr)
           
 void channelOpened(java.net.InetSocketAddress addr, int reason)
           
 DataPanel createPanel(java.lang.Object[] objects)
           
 void dataReceived(java.lang.Object message, java.net.InetSocketAddress address, int size, int type)
           
 void dataSent(java.lang.Object message, java.net.InetSocketAddress address, int size, int type)
           
protected  java.net.InetSocketAddress[] getAddresses()
           
protected  double[] getReceivedArray()
           
protected  double[] getSentArray()
           
protected  java.lang.Integer[] getSizes()
           
protected  double[] getTimeArray()
           
protected  double resetReceivedTotal()
           
protected  double resetSentTotal()
           
protected  void updateData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NetworkActivityPanelCreator

public NetworkActivityPanelCreator(Environment env)
Method Detail

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.