|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.impl.networkModule.jxta.JxtaBidiPipeConnection_old
public class JxtaBidiPipeConnection_old
During the creation of a JxtaBidiPipe an exchange of the node info is made between the two connection endpoint. If no nodeinfo is received after a timeout the constructor throws a IOException
Field Summary | |
---|---|
static int |
CHECK_TIMEOUT
|
static int |
CONNECTION_OPENING_TIMEOUT
Time to wait for receiving remote node info. |
static java.lang.String |
MESSAGE_ELEMENT_NAME
|
static java.lang.String |
MESSAGE_NAMESPACE_NAME
|
static int |
RECEIVE_TIMEOUT
|
Fields inherited from interface net.jxta.util.PipeStateListener |
---|
PIPE_CLOSED_EVENT, PIPE_FAILED_EVENT, PIPE_OPENED_EVENT |
Constructor Summary | |
---|---|
JxtaBidiPipeConnection_old(net.jxta.util.JxtaBiDiPipe bipipe,
net.jxta.peergroup.PeerGroup peerGroup,
NodeInfo local,
JxtaNetworkModule netModule,
EventNotifier eventNotifier)
Used when a remote connection is received |
|
JxtaBidiPipeConnection_old(net.jxta.peergroup.PeerGroup peerGroup,
NodeInfo local,
NodeInfo remote,
net.jxta.protocol.PipeAdvertisement pipeADV,
JxtaNetworkModule netModule,
EventNotifier eventNotifier)
Use to open a new connection towards the specified pipe adv |
Method Summary | |
---|---|
void |
close()
Close the connection |
protected void |
finalize()
|
NodeInfo |
getRemoteNodeInfo()
|
boolean |
isBroken()
Indicate if the connection is no longer capable to send message and receive messages |
boolean |
isDisconnected()
|
boolean |
messengerStateChanged(int newState)
|
void |
pipeEvent(int event)
|
void |
pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
|
java.io.Serializable |
receive()
|
void |
send(java.io.Serializable o)
Used to send a serializable object through this connection |
void |
setEventNotifier(EventNotifier eventNotifier)
|
void |
stateEvent(java.lang.Object source,
int event)
Deprecated. non richiamato dal bidipipe quando il pipelistener è gia specificato |
java.lang.String |
toString()
Remote PeerID toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONNECTION_OPENING_TIMEOUT
IOException
is thrown
//TODO tuning this parameter and provide setter method
public static final int RECEIVE_TIMEOUT
public static final int CHECK_TIMEOUT
public static final java.lang.String MESSAGE_ELEMENT_NAME
public static final java.lang.String MESSAGE_NAMESPACE_NAME
Constructor Detail |
---|
public JxtaBidiPipeConnection_old(net.jxta.peergroup.PeerGroup peerGroup, NodeInfo local, NodeInfo remote, net.jxta.protocol.PipeAdvertisement pipeADV, JxtaNetworkModule netModule, EventNotifier eventNotifier) throws java.io.IOException
peerGroup
- pipeADV
-
java.io.IOException
public JxtaBidiPipeConnection_old(net.jxta.util.JxtaBiDiPipe bipipe, net.jxta.peergroup.PeerGroup peerGroup, NodeInfo local, JxtaNetworkModule netModule, EventNotifier eventNotifier) throws java.io.IOException
bipipe
-
java.io.IOException
Method Detail |
---|
public void send(java.io.Serializable o) throws java.io.IOException
ConnectionIF
send
in interface ConnectionIF
java.io.IOException
public void pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
pipeMsgEvent
in interface net.jxta.pipe.PipeMsgListener
public java.io.Serializable receive() throws java.io.IOException
receive
in interface ConnectionIF
java.io.IOException
public void close() throws java.io.IOException
ConnectionIF
close
in interface ConnectionIF
java.io.IOException
public boolean isDisconnected()
public boolean isBroken()
ConnectionIF
isBroken
in interface ConnectionIF
public NodeInfo getRemoteNodeInfo()
getRemoteNodeInfo
in interface ConnectionIF
public void setEventNotifier(EventNotifier eventNotifier)
@Deprecated public void stateEvent(java.lang.Object source, int event)
stateEvent
in interface net.jxta.util.PipeStateListener
source
- event
- public void pipeEvent(int event)
pipeEvent
in interface net.jxta.util.PipeEventListener
public boolean messengerStateChanged(int newState)
messengerStateChanged
in interface net.jxta.endpoint.MessengerStateListener
public java.lang.String toString()
toString
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |