ePOST API

rice.visualization.server
Class MessageDistributionPanelCreator

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

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


Field Summary
protected  java.util.Vector messages
           
protected  java.util.Vector messageSizes
           
static int NUM_DATA_POINTS
           
static int NUM_MESSAGES
           
static java.lang.String[] TYPE_PREFIXES
           
static java.lang.String[] TYPES
           
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
MessageDistributionPanelCreator()
           
 
Method Summary
protected  void addMessage(java.lang.Object obj, 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  double[] getMessageCountBreakdown()
           
protected  java.lang.String[] getMessages()
           
protected  double[] getMessageSizeBreakdown()
           
protected  java.lang.Integer[] getMessageSizes()
           
 
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

TYPES

public static java.lang.String[] TYPES

TYPE_PREFIXES

public static java.lang.String[] TYPE_PREFIXES

messages

protected java.util.Vector messages

messageSizes

protected java.util.Vector messageSizes
Constructor Detail

MessageDistributionPanelCreator

public MessageDistributionPanelCreator()
Method Detail

createPanel

public DataPanel createPanel(java.lang.Object[] objects)
Specified by:
createPanel in interface PanelCreator

addMessage

protected void addMessage(java.lang.Object obj,
                          int size)

getMessages

protected java.lang.String[] getMessages()

getMessageSizes

protected java.lang.Integer[] getMessageSizes()

getMessageSizeBreakdown

protected double[] getMessageSizeBreakdown()

getMessageCountBreakdown

protected double[] getMessageCountBreakdown()

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.