ePOST API

rice.visualization.server
Class RecentMessagesPanelCreator

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

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


Field Summary
static int NUM_MESSAGES
           
protected  java.util.Vector receivedMessageAddresses
           
protected  java.util.Vector receivedMessages
           
protected  java.util.Vector receivedMessageSizes
           
protected  java.util.Vector sentMessageAddresses
           
protected  java.util.Vector sentMessages
           
protected  java.util.Vector sentMessageSizes
           
static java.lang.String[] TYPE_PREFIXES
           
static java.lang.String[] TYPES
           
 
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
RecentMessagesPanelCreator()
           
 
Method Summary
protected  void addMessage(java.lang.Object obj, java.net.InetSocketAddress address, int size, java.util.Vector location, java.util.Vector locationAddresses, java.util.Vector locationSizes)
           
 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.lang.String getType(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_MESSAGES

public static int NUM_MESSAGES

TYPES

public static java.lang.String[] TYPES

TYPE_PREFIXES

public static java.lang.String[] TYPE_PREFIXES

sentMessages

protected java.util.Vector sentMessages

sentMessageAddresses

protected java.util.Vector sentMessageAddresses

sentMessageSizes

protected java.util.Vector sentMessageSizes

receivedMessages

protected java.util.Vector receivedMessages

receivedMessageAddresses

protected java.util.Vector receivedMessageAddresses

receivedMessageSizes

protected java.util.Vector receivedMessageSizes
Constructor Detail

RecentMessagesPanelCreator

public RecentMessagesPanelCreator()
Method Detail

createPanel

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

getType

protected java.lang.String getType(java.lang.String message)

addMessage

protected void addMessage(java.lang.Object obj,
                          java.net.InetSocketAddress address,
                          int size,
                          java.util.Vector location,
                          java.util.Vector locationAddresses,
                          java.util.Vector locationSizes)

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.