ePOST API

rice.pastry
Interface NetworkListener

All Known Implementing Classes:
MessageDistributionPanelCreator, NetworkActivityPanelCreator, RecentMessagesPanelCreator, VisualizationServer.NetworkActivityChecker

public interface NetworkListener

Represents a listener to pastry network activity

Version:
$Id: NetworkListener.java 2834 2005-12-13 14:14:38Z jeffh $
Author:
Peter Druschel

Field Summary
static int REASON_ACC_BOOTSTRAP
           
static int REASON_ACC_NORMAL
           
static int REASON_ACC_SR
           
static int REASON_BOOTSTRAP
           
static int REASON_NORMAL
           
static int REASON_SR
           
static int TYPE_SR_TCP
           
static int TYPE_SR_UDP
           
static int TYPE_TCP
           
static int TYPE_UDP
           
 
Method Summary
 void channelClosed(java.net.InetSocketAddress addr)
           
 void channelOpened(java.net.InetSocketAddress addr, int reason)
           
 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)
           
 

Field Detail

TYPE_UDP

static final int TYPE_UDP
See Also:
Constant Field Values

TYPE_TCP

static final int TYPE_TCP
See Also:
Constant Field Values

TYPE_SR_UDP

static final int TYPE_SR_UDP
See Also:
Constant Field Values

TYPE_SR_TCP

static final int TYPE_SR_TCP
See Also:
Constant Field Values

REASON_NORMAL

static final int REASON_NORMAL
See Also:
Constant Field Values

REASON_SR

static final int REASON_SR
See Also:
Constant Field Values

REASON_BOOTSTRAP

static final int REASON_BOOTSTRAP
See Also:
Constant Field Values

REASON_ACC_NORMAL

static final int REASON_ACC_NORMAL
See Also:
Constant Field Values

REASON_ACC_SR

static final int REASON_ACC_SR
See Also:
Constant Field Values

REASON_ACC_BOOTSTRAP

static final int REASON_ACC_BOOTSTRAP
See Also:
Constant Field Values
Method Detail

channelOpened

void channelOpened(java.net.InetSocketAddress addr,
                   int reason)

channelClosed

void channelClosed(java.net.InetSocketAddress addr)

dataSent

void dataSent(java.lang.Object message,
              java.net.InetSocketAddress address,
              int size,
              int type)

dataReceived

void dataReceived(java.lang.Object message,
                  java.net.InetSocketAddress address,
                  int size,
                  int type)

ePOST API

Copyright © 2001-2005 - Rice Pastry.