p2pMapReduce.networkModule
Interface ConnectionIF

All Known Implementing Classes:
JxtaBidiPipeConnection, JxtaBidiPipeConnection_old

public interface ConnectionIF

A connection between two nodes. Only Serializable object can be sent through ConnectionIF object.


Method Summary
 void close()
          Close the connection
 NodeInfo getRemoteNodeInfo()
           
 boolean isBroken()
          Indicate if the connection is no longer capable to send message and receive messages
 java.io.Serializable receive()
          Deprecated. not used
 void send(java.io.Serializable o)
          Used to send a serializable object through this connection
 

Method Detail

close

void close()
           throws java.io.IOException
Close the connection

Throws:
java.io.IOException

send

void send(java.io.Serializable o)
          throws java.io.IOException
Used to send a serializable object through this connection

Parameters:
o -
Throws:
java.io.IOException

receive

java.io.Serializable receive()
                             throws java.io.IOException
Deprecated. not used

Returns:
Throws:
java.io.IOException

getRemoteNodeInfo

NodeInfo getRemoteNodeInfo()

isBroken

boolean isBroken()
Indicate if the connection is no longer capable to send message and receive messages

Returns: