|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.impl.pipe.InputPipeImpl
net.jxta.impl.pipe.UnicastInputPipeImpl
Implements the InputPipe interface by listening on the
endpoint for messages to service "PipeService" and a param of the Pipe ID.
| Field Summary | |
protected boolean |
closed
|
protected PipeMsgListener |
listener
|
protected PipeAdvertisement |
pipeAdv
|
protected PipeID |
pipeID
|
protected UnbiasedQueue |
queue
|
protected static int |
QUEUESIZE
|
protected PipeRegistrar |
registrar
|
| Constructor Summary | |
(package private) |
UnicastInputPipeImpl(PipeResolver r,
PipeAdvertisement adv,
PipeMsgListener listener)
Constructor for the InputPipeImpl object |
| Method Summary | |
void |
close()
|
protected void |
finalize()
Closes the pipe. |
PipeAdvertisement |
getAdvertisement()
Gets the pipe advertisement |
String |
getName()
Gets the pipe name |
ID |
getPipeID()
Gets the pipe id |
String |
getType()
Gets the pipe type |
Message |
poll(int timeout)
|
void |
processIncomingMessage(Message msg,
EndpointAddress srcAddr,
EndpointAddress dstAddr)
|
Message |
waitForMessage()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int QUEUESIZE
protected PipeRegistrar registrar
protected PipeAdvertisement pipeAdv
protected PipeID pipeID
protected volatile boolean closed
protected PipeMsgListener listener
protected UnbiasedQueue queue
| Constructor Detail |
UnicastInputPipeImpl(PipeResolver r,
PipeAdvertisement adv,
PipeMsgListener listener)
throws IOException
r - pipe resolveradv - pipe advertisementlistener - listener to receive messages| Method Detail |
public void close()
close in interface InputPipeclose in class InputPipeImpl
protected void finalize()
throws Throwable
Throwable
public Message waitForMessage()
throws InterruptedException
waitForMessage in interface InputPipeInterruptedException
public Message poll(int timeout)
throws InterruptedException
poll in interface InputPipeInterruptedException
public void processIncomingMessage(Message msg,
EndpointAddress srcAddr,
EndpointAddress dstAddr)
processIncomingMessage in interface EndpointListenerpublic String getType()
getType in interface InputPipepublic ID getPipeID()
getPipeID in interface InputPipepublic String getName()
getName in interface InputPipepublic PipeAdvertisement getAdvertisement()
getAdvertisement in interface InputPipe
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||