org.kth.dks.dks_comm
Class ConnectionHandler

java.lang.Object
  extended by org.kth.dks.dks_comm.ConnectionHandler

public class ConnectionHandler
extends java.lang.Object


Constructor Summary
ConnectionHandler(DKSMarshal m, ConnectionManager c)
           
 
Method Summary
 void createConnection(java.net.Socket s, DKSNetAddress na)
           
 void end()
           
 java.util.Set getAllPeers()
           
 int getBytesRec()
           
 int getBytesSent()
           
 DKSMarshal getDKSMarshal()
           
 int getMsgsDelivered()
           
 int getMsgsFailed()
           
 int getMsgsRec()
           
 int getMsgsUnacked()
           
 int getMsgsUnackedNB()
           
 double getNodeRTT(DKSRef node)
           
 int getNumConnections()
           
 int getOpenConnections()
           
 int getTotalConnections()
           
 void removeConnection(DKSNetAddress n)
           
 boolean send(MsgSrcDestWrapper triple)
           
 void statAddBytesReceived(int i)
           
 void statAddBytesSent(int i)
           
 void statAddMsgsDelivered(int i)
           
 void statAddMsgsFailed(int i)
           
 void statAddMsgsReceived(int i)
           
 void statAddMsgsUnacked(int i)
           
 void statAddOpenConnection(int i)
           
 void statAddTotalConnection(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandler

public ConnectionHandler(DKSMarshal m,
                         ConnectionManager c)
Method Detail

statAddMsgsDelivered

public void statAddMsgsDelivered(int i)

statAddMsgsFailed

public void statAddMsgsFailed(int i)

statAddBytesReceived

public void statAddBytesReceived(int i)

statAddMsgsReceived

public void statAddMsgsReceived(int i)

statAddMsgsUnacked

public void statAddMsgsUnacked(int i)

statAddBytesSent

public void statAddBytesSent(int i)

statAddOpenConnection

public void statAddOpenConnection(int i)

statAddTotalConnection

public void statAddTotalConnection(int i)

getBytesRec

public int getBytesRec()

getMsgsRec

public int getMsgsRec()

getBytesSent

public int getBytesSent()

getMsgsDelivered

public int getMsgsDelivered()

getMsgsFailed

public int getMsgsFailed()

getNumConnections

public int getNumConnections()

getOpenConnections

public int getOpenConnections()

getTotalConnections

public int getTotalConnections()

getMsgsUnackedNB

public int getMsgsUnackedNB()

getMsgsUnacked

public int getMsgsUnacked()

getDKSMarshal

public final DKSMarshal getDKSMarshal()

getNodeRTT

public double getNodeRTT(DKSRef node)

createConnection

public void createConnection(java.net.Socket s,
                             DKSNetAddress na)
                      throws DKSRefNoResponse
Throws:
DKSRefNoResponse

removeConnection

public void removeConnection(DKSNetAddress n)

getAllPeers

public java.util.Set getAllPeers()

send

public boolean send(MsgSrcDestWrapper triple)

end

public void end()


Copyright © 2010. All Rights Reserved.