|
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
class InputPipeImpl
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 | |
|---|---|
InputPipeImpl(PipeRegistrar 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 |
|---|
InputPipeImpl(PipeRegistrar r,
PipeAdvertisement adv,
PipeMsgListener listener)
throws IOException
r - pipe resolveradv - pipe advertisementlistener - listener to receive messages
IOException| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public Message waitForMessage()
throws InterruptedException
waitForMessage in interface InputPipeInterruptedException
public Message poll(int timeout)
throws InterruptedException
poll in interface InputPipeInterruptedExceptionpublic void close()
close in interface InputPipe
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 | |||||||||