|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.pipe.WirePipeImpl
public class WirePipeImpl
This class implements the NetPipe interface.
| Field Summary | |
|---|---|
static String |
WireName
|
static String |
WireServiceName
|
static String |
WireTagName
|
| Constructor Summary | |
|---|---|
WirePipeImpl(PeerGroup group,
PipeResolver pipeResolver)
|
|
| Method Summary | |
|---|---|
(package private) InputPipe |
createInputPipe(PipeAdvertisement adv,
PipeMsgListener listener)
create an InputPipe from a pipe Advertisement |
(package private) NonBlockingWireOutputPipe |
createOutputPipe(PipeAdvertisement adv,
Set peers)
create an OutputPipe from the pipe Advertisement giving a PeerId(s) where the corresponding InputPipe is supposed to be. |
String |
getServiceName()
To support WirePipe.send(Message, Enumeration) |
String |
getServiceParameter()
To support WirePipe.send(Message, Enumeration) |
void |
processIncomingMessage(Message message,
EndpointAddress srcAddr,
EndpointAddress dstAddr)
|
int |
startApp(String[] arg)
Supply arguments and starts this service if it hadn't started by itself. |
void |
stopApp()
Ask this service to stop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WireName
public static final String WireTagName
public static final String WireServiceName
| Constructor Detail |
|---|
WirePipeImpl(PeerGroup group,
PipeResolver pipeResolver)
| Method Detail |
|---|
public String getServiceParameter()
public String getServiceName()
public int startApp(String[] arg)
arg - A table of strings arguments.
public void stopApp()
InputPipe createInputPipe(PipeAdvertisement adv,
PipeMsgListener listener)
throws IOException
adv - is the advertisement of the PipeServiceImpl.listener - PipeMsgListener to receive msgs.
IOException - error creating input pipe
NonBlockingWireOutputPipe createOutputPipe(PipeAdvertisement adv,
Set peers)
adv - is the advertisement of the NetPipe.peers - is an enumeration of the PeerId of the peers where to look
for the corresponding Pipestimeout - the number of milliseconds to wait for during pipe creation
IOException - if none of the peers in the enumeration has the
corresponding OutputPipe
public void processIncomingMessage(Message message,
EndpointAddress srcAddr,
EndpointAddress dstAddr)
processIncomingMessage in interface EndpointListener
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||